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

Unified Diff: src/runtime.cc

Issue 210963002: Fix for GCMole issue. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index 1caaff05f8e0fc61018a6bd245f8c41ceef75d7b..a5f6f267a285ad42ef1407fb5cc1cc54faed16e8 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -11277,8 +11277,10 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetFrameDetails) {
VariableMode mode;
InitializationFlag init_flag;
locals->set(i * 2, *name);
- locals->set(i * 2 + 1, context->get(
- scope_info->ContextSlotIndex(*name, &mode, &init_flag)));
+ int context_slot_index =
+ scope_info->ContextSlotIndex(*name, &mode, &init_flag);
+ Object* value = context->get(context_slot_index);
+ locals->set(i * 2 + 1, value);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698