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

Unified Diff: src/runtime/runtime-object.cc

Issue 1292753007: [es6] Parameter scopes for sloppy eval (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Comments Created 5 years, 4 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/pattern-rewriter.cc ('k') | src/runtime/runtime-scopes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-object.cc
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc
index be688d2a32cf5dfa901b7e222cb03bee2dc99ae3..c7d4fee44f438475b10ca771d96abe91adf4dad8 100644
--- a/src/runtime/runtime-object.cc
+++ b/src/runtime/runtime-object.cc
@@ -423,8 +423,7 @@ RUNTIME_FUNCTION(Runtime_LoadGlobalViaContext) {
DCHECK(script_context->get(slot)->IsPropertyCell());
// Lookup the named property on the global object.
- Handle<ScopeInfo> scope_info(ScopeInfo::cast(script_context->extension()),
- isolate);
+ Handle<ScopeInfo> scope_info(script_context->scope_info(), isolate);
Handle<Name> name(scope_info->ContextSlotName(slot), isolate);
Handle<GlobalObject> global_object(script_context->global_object(), isolate);
LookupIterator it(global_object, name, LookupIterator::HIDDEN);
@@ -458,8 +457,7 @@ Object* StoreGlobalViaContext(Isolate* isolate, int slot, Handle<Object> value,
DCHECK(script_context->get(slot)->IsPropertyCell());
// Lookup the named property on the global object.
- Handle<ScopeInfo> scope_info(ScopeInfo::cast(script_context->extension()),
- isolate);
+ Handle<ScopeInfo> scope_info(script_context->scope_info(), isolate);
Handle<Name> name(scope_info->ContextSlotName(slot), isolate);
Handle<GlobalObject> global_object(script_context->global_object(), isolate);
LookupIterator it(global_object, name, LookupIterator::HIDDEN);
« no previous file with comments | « src/pattern-rewriter.cc ('k') | src/runtime/runtime-scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698