Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Unified Diff: src/interpreter/interpreter.cc

Issue 1666943003: [interpreter] Support for ES6 class literals. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Incorporate mstarzinger's comments on patch set 1. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>
//

Powered by Google App Engine
This is Rietveld 408576698