Index: src/interpreter/interpreter.cc |
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
index 3a9ce3f43063b974d227833d2b0254170c9f4b01..70ce9e5598f7778da69e537fe37fecab96f052a6 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> |
// |