Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(566)

Side by Side Diff: src/isolate.cc

Issue 1033653002: Move prototype metadata from internal properties to prototype maps (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: small fixes Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/heap/objects-visiting-inl.h ('k') | src/objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include <fstream> // NOLINT(readability/streams) 7 #include <fstream> // NOLINT(readability/streams)
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/v8.h" 10 #include "src/v8.h"
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 } 749 }
750 750
751 // Leaving JavaScript. 751 // Leaving JavaScript.
752 VMState<EXTERNAL> state(this); 752 VMState<EXTERNAL> state(this);
753 thread_local_top()->failed_access_check_callback_( 753 thread_local_top()->failed_access_check_callback_(
754 v8::Utils::ToLocal(receiver), v8::ACCESS_HAS, v8::Utils::ToLocal(data)); 754 v8::Utils::ToLocal(receiver), v8::ACCESS_HAS, v8::Utils::ToLocal(data));
755 } 755 }
756 756
757 757
758 bool Isolate::IsInternallyUsedPropertyName(Handle<Object> name) { 758 bool Isolate::IsInternallyUsedPropertyName(Handle<Object> name) {
759 return name.is_identical_to(factory()->hidden_string()) || 759 return name.is_identical_to(factory()->hidden_string());
760 name.is_identical_to(factory()->prototype_users_symbol());
761 } 760 }
762 761
763 762
764 bool Isolate::IsInternallyUsedPropertyName(Object* name) { 763 bool Isolate::IsInternallyUsedPropertyName(Object* name) {
765 return name == heap()->hidden_string() || 764 return name == heap()->hidden_string();
766 name == heap()->prototype_users_symbol();
767 } 765 }
768 766
769 767
770 bool Isolate::MayAccess(Handle<JSObject> receiver) { 768 bool Isolate::MayAccess(Handle<JSObject> receiver) {
771 DCHECK(receiver->IsJSGlobalProxy() || receiver->IsAccessCheckNeeded()); 769 DCHECK(receiver->IsJSGlobalProxy() || receiver->IsAccessCheckNeeded());
772 770
773 // Check for compatibility between the security tokens in the 771 // Check for compatibility between the security tokens in the
774 // current lexical context and the accessed object. 772 // current lexical context and the accessed object.
775 DCHECK(context()); 773 DCHECK(context());
776 774
(...skipping 1865 matching lines...) Expand 10 before | Expand all | Expand 10 after
2642 if (prev_ && prev_->Intercept(flag)) return true; 2640 if (prev_ && prev_->Intercept(flag)) return true;
2643 // Then check whether this scope intercepts. 2641 // Then check whether this scope intercepts.
2644 if ((flag & intercept_mask_)) { 2642 if ((flag & intercept_mask_)) {
2645 intercepted_flags_ |= flag; 2643 intercepted_flags_ |= flag;
2646 return true; 2644 return true;
2647 } 2645 }
2648 return false; 2646 return false;
2649 } 2647 }
2650 2648
2651 } } // namespace v8::internal 2649 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap/objects-visiting-inl.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698