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

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: 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
Index: src/runtime/runtime-object.cc
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc
index 624708714e5ab813a8c21ee66a452cda179e2ca9..cdaf19ebfc5affb79f6689d4d1816ce67166b91d 100644
--- a/src/runtime/runtime-object.cc
+++ b/src/runtime/runtime-object.cc
@@ -424,8 +424,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);
@@ -459,8 +458,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);
« src/contexts.cc ('K') | « 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