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

Unified Diff: src/interpreter/interpreter.cc

Issue 1412953007: [Interpreter] Fill out function prologue support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 503594e4fc2730ebfa46e3d7fd569ce4ee2a4aba..206c74ac6696dd1eae1c4dad93475032a3ded5b1 100644
--- a/src/interpreter/interpreter.cc
+++ b/src/interpreter/interpreter.cc
@@ -908,6 +908,30 @@ void Interpreter::DoCreateClosure(compiler::InterpreterAssembler* assembler) {
}
+// CreateArgumentsSloppy <type>
Michael Starzinger 2015/10/21 18:44:37 nit: Comment looks outdated, no <type> parameter.
rmcilroy 2015/10/22 15:19:52 Done.
+//
+// Creates a new arguments object for sloppy mode.
+void Interpreter::DoCreateArgumentsSloppy(
+ compiler::InterpreterAssembler* assembler) {
+ Node* closure = __ LoadRegister(Register::function_closure());
+ Node* result = __ CallRuntime(Runtime::kNewSloppyArguments_Generic, closure);
+ __ SetAccumulator(result);
+ __ Dispatch();
+}
+
+
+// CreateArgumentsStrict <type>
Michael Starzinger 2015/10/21 18:44:37 nit: Likewise.
rmcilroy 2015/10/22 15:19:52 Done.
+//
+// Creates a new arguments object for strict mode.
+void Interpreter::DoCreateArgumentsStrict(
+ compiler::InterpreterAssembler* assembler) {
+ Node* closure = __ LoadRegister(Register::function_closure());
+ Node* result = __ CallRuntime(Runtime::kNewStrictArguments_Generic, closure);
+ __ SetAccumulator(result);
+ __ Dispatch();
+}
+
+
// Throw
//
// Throws the exception in the accumulator.

Powered by Google App Engine
This is Rietveld 408576698