Index: src/interpreter/interpreter.cc |
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
index 09d2bc38c6832e30131de63a7bbe1af8fba4bf9c..5c8f59617c8667d788fc109816cd61fe1bd36073 100644 |
--- a/src/interpreter/interpreter.cc |
+++ b/src/interpreter/interpreter.cc |
@@ -842,6 +842,17 @@ void Interpreter::DoKeyedStoreICStrictWide( |
DoKeyedStoreIC(ic, assembler); |
} |
+// LdaInitialMap |
+// |
+// Looks up the prototype or initial map of the JSFunction referenced |
Michael Starzinger
2016/02/04 13:40:20
nit: s/Looks up/Loads/
oth
2016/02/04 14:00:59
Done.
|
+// 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> |
// |