 Chromium Code Reviews
 Chromium Code Reviews Issue 1412953007:
  [Interpreter] Fill out function prologue support.  (Closed) 
  Base URL: https://chromium.googlesource.com/v8/v8.git@master
    
  
    Issue 1412953007:
  [Interpreter] Fill out function prologue support.  (Closed) 
  Base URL: https://chromium.googlesource.com/v8/v8.git@master| 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. |