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

Unified Diff: src/objects.cc

Issue 2861017: [Isolates] Make statics from BootstrapperActive to be instance members (Closed)
Patch Set: Created 10 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/mips/codegen-mips.cc ('k') | src/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 415f163478705973a6d91a1b5e83f5bf0e995169..6d7a236a643de72a54634b96e14d6c0805bb60ec 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -2656,14 +2656,17 @@ void JSObject::LocalLookup(String* name, LookupResult* result) {
result->DisallowCaching();
}
+ Isolate* isolate = Isolate::Current();
+
// Check __proto__ before interceptor.
- if (name->Equals(HEAP->Proto_symbol()) && !IsJSContextExtensionObject()) {
+ if (name->Equals(isolate->heap()->Proto_symbol()) &&
+ !IsJSContextExtensionObject()) {
result->ConstantResult(this);
return;
}
// Check for lookup interceptor except when bootstrapping.
- if (HasNamedInterceptor() && !Bootstrapper::IsActive()) {
+ if (HasNamedInterceptor() && !isolate->bootstrapper()->IsActive()) {
result->InterceptorResult(this);
return;
}
« no previous file with comments | « src/mips/codegen-mips.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698