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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « src/mips/codegen-mips.cc ('k') | src/parser.cc » ('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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2638 matching lines...) Expand 10 before | Expand all | Expand 10 after
2649 ASSERT(proto->IsJSGlobalObject()); 2649 ASSERT(proto->IsJSGlobalObject());
2650 return JSObject::cast(proto)->LocalLookup(name, result); 2650 return JSObject::cast(proto)->LocalLookup(name, result);
2651 } 2651 }
2652 2652
2653 // Do not use inline caching if the object is a non-global object 2653 // Do not use inline caching if the object is a non-global object
2654 // that requires access checks. 2654 // that requires access checks.
2655 if (!IsJSGlobalProxy() && IsAccessCheckNeeded()) { 2655 if (!IsJSGlobalProxy() && IsAccessCheckNeeded()) {
2656 result->DisallowCaching(); 2656 result->DisallowCaching();
2657 } 2657 }
2658 2658
2659 Isolate* isolate = Isolate::Current();
2660
2659 // Check __proto__ before interceptor. 2661 // Check __proto__ before interceptor.
2660 if (name->Equals(HEAP->Proto_symbol()) && !IsJSContextExtensionObject()) { 2662 if (name->Equals(isolate->heap()->Proto_symbol()) &&
2663 !IsJSContextExtensionObject()) {
2661 result->ConstantResult(this); 2664 result->ConstantResult(this);
2662 return; 2665 return;
2663 } 2666 }
2664 2667
2665 // Check for lookup interceptor except when bootstrapping. 2668 // Check for lookup interceptor except when bootstrapping.
2666 if (HasNamedInterceptor() && !Bootstrapper::IsActive()) { 2669 if (HasNamedInterceptor() && !isolate->bootstrapper()->IsActive()) {
2667 result->InterceptorResult(this); 2670 result->InterceptorResult(this);
2668 return; 2671 return;
2669 } 2672 }
2670 2673
2671 LocalLookupRealNamedProperty(name, result); 2674 LocalLookupRealNamedProperty(name, result);
2672 } 2675 }
2673 2676
2674 2677
2675 void JSObject::Lookup(String* name, LookupResult* result) { 2678 void JSObject::Lookup(String* name, LookupResult* result) {
2676 // Ecma-262 3rd 8.6.2.4 2679 // Ecma-262 3rd 8.6.2.4
(...skipping 6052 matching lines...) Expand 10 before | Expand all | Expand 10 after
8729 if (break_point_objects()->IsUndefined()) return 0; 8732 if (break_point_objects()->IsUndefined()) return 0;
8730 // Single beak point. 8733 // Single beak point.
8731 if (!break_point_objects()->IsFixedArray()) return 1; 8734 if (!break_point_objects()->IsFixedArray()) return 1;
8732 // Multiple break points. 8735 // Multiple break points.
8733 return FixedArray::cast(break_point_objects())->length(); 8736 return FixedArray::cast(break_point_objects())->length();
8734 } 8737 }
8735 #endif 8738 #endif
8736 8739
8737 8740
8738 } } // namespace v8::internal 8741 } } // namespace v8::internal
OLDNEW
« 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