Index: src/interpreter/interpreter.cc |
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
index c49c2ae1525f0ea30167f20e35a6b7266b8db16b..a61a182b32f75f7df192b0bdc77a3019f50a2fbf 100644 |
--- a/src/interpreter/interpreter.cc |
+++ b/src/interpreter/interpreter.cc |
@@ -841,6 +841,17 @@ void Interpreter::DoKeyedStoreICStrictWide( |
DoKeyedStoreIC(ic, assembler); |
} |
+// LdaInitialMap |
+// |
+// Loads the prototype or initial map of the JSFunction referenced by |
+// the accumulator. The result is placed in the accumulator. |
+void Interpreter::DoLdaInitialMap(compiler::InterpreterAssembler* assembler) { |
+ Node* js_function = __ GetAccumulator(); |
+ Node* initial_map = |
+ __ LoadObjectField(js_function, JSFunction::kPrototypeOrInitialMapOffset); |
+ __ SetAccumulator(initial_map); |
+ __ Dispatch(); |
+} |
// PushContext <context> |
// |