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

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: 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 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>
//

Powered by Google App Engine
This is Rietveld 408576698