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

Unified Diff: src/interpreter/interpreter.cc

Issue 2504553003: [es6] Perform the IsConstructor test in GetSuperConstructor. (Closed)
Patch Set: Convert GetSuperConstructor to a new interpreter bytecode Created 4 years, 1 month 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 6434bc10fd77806fa71d12fcc40cdddccb969360..337d9f2807093164e9bccbfa5eefd89576d3d4cb 100644
--- a/src/interpreter/interpreter.cc
+++ b/src/interpreter/interpreter.cc
@@ -1589,6 +1589,14 @@ void Interpreter::DoDeletePropertySloppy(InterpreterAssembler* assembler) {
DoDelete(Runtime::kDeleteProperty_Sloppy, assembler);
}
+void Interpreter::DoGetSuperConstructor(InterpreterAssembler* assembler) {
rmcilroy 2016/11/23 21:55:37 Please add a comment like those above other byteco
+ Node* active_function = __ GetAccumulator();
+ Node* context = __ GetContext();
+ Node* result = assembler->GetSuperConstructor(active_function, context);
+ __ SetAccumulator(result);
+ __ Dispatch();
+}
+
void Interpreter::DoJSCall(InterpreterAssembler* assembler,
TailCallMode tail_call_mode) {
Node* function_reg = __ BytecodeOperandReg(0);

Powered by Google App Engine
This is Rietveld 408576698