Index: src/interpreter/interpreter.cc |
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
index aff4d6848105d82dfe59808af4f559994afeaa9c..bda1b982d7172d6e461afad44e7817cb585b08fc 100644 |
--- a/src/interpreter/interpreter.cc |
+++ b/src/interpreter/interpreter.cc |
@@ -391,19 +391,14 @@ Node* Interpreter::BuildLoadGlobal(Callable ic, |
InterpreterAssembler* assembler) { |
// Get the global object. |
Node* context = __ GetContext(); |
- Node* native_context = |
- __ LoadContextSlot(context, Context::NATIVE_CONTEXT_INDEX); |
- Node* global = __ LoadContextSlot(native_context, Context::EXTENSION_INDEX); |
- // Load the global via the LoadIC. |
+ // Load the global via the LoadGlobalIC. |
Node* code_target = __ HeapConstant(ic.code()); |
- Node* constant_index = __ BytecodeOperandIdx(0); |
- Node* name = __ LoadConstantPoolEntry(constant_index); |
rmcilroy
2016/06/23 22:28:27
Can you remove the operand from this bytecode too
Igor Sheludko
2016/06/24 07:26:16
Done.
|
Node* raw_slot = __ BytecodeOperandIdx(1); |
Node* smi_slot = __ SmiTag(raw_slot); |
Node* type_feedback_vector = __ LoadTypeFeedbackVector(); |
- return __ CallStub(ic.descriptor(), code_target, context, global, name, |
- smi_slot, type_feedback_vector); |
+ return __ CallStub(ic.descriptor(), code_target, context, smi_slot, |
+ type_feedback_vector); |
} |
// LdaGlobal <name_index> <slot> |