Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index b1d87d62dc779123ec732bf0db918a30d5f2db67..9374e516b058ff928c87367d5b388c0553db2625 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -5334,7 +5334,8 @@ void HOptimizedGraphBuilder::VisitVariableProxy(VariableProxy* expr) { |
Callable callable = CodeFactory::LoadGlobalICInOptimizedCode( |
isolate(), ast_context()->typeof_mode()); |
HValue* stub = Add<HConstant>(callable.code()); |
- HValue* values[] = {slot_value, vector_value}; |
+ HValue* name = Add<HConstant>(variable->name()); |
+ HValue* values[] = {name, slot_value, vector_value}; |
HCallWithDescriptor* instr = New<HCallWithDescriptor>( |
Code::LOAD_GLOBAL_IC, stub, 0, callable.descriptor(), |
ArrayVector(values)); |