Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 315eabebbf00057d3a6c87d2fd477face01b081b..dcf8178e9133fd7865c6a85b1f6452fa09964944 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -5896,13 +5896,10 @@ void HOptimizedGraphBuilder::VisitVariableProxy(VariableProxy* expr) { |
return ast_context()->ReturnInstruction(instr, expr->id()); |
} |
} else { |
- HValue* global_object = Add<HLoadNamedField>( |
- BuildGetNativeContext(), nullptr, |
- HObjectAccess::ForContextSlot(Context::EXTENSION_INDEX)); |
Handle<TypeFeedbackVector> vector(current_feedback_vector(), isolate()); |
HLoadGlobalGeneric* instr = New<HLoadGlobalGeneric>( |
- global_object, variable->name(), ast_context()->typeof_mode(), |
- vector, expr->VariableFeedbackSlot()); |
+ variable->name(), ast_context()->typeof_mode(), vector, |
+ expr->VariableFeedbackSlot()); |
return ast_context()->ReturnInstruction(instr, expr->id()); |
} |
} |