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

Side by Side Diff: src/interpreter/bytecode-array-builder.h

Issue 2629363002: [Ignition/turbo] Add a CallWithSpread bytecode. (Closed)
Patch Set: reparent on the bytecode CL Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/interpreter/bytecode-array-builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 5 #ifndef V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
7 7
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/base/compiler-specific.h" 9 #include "src/base/compiler-specific.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 206
207 // Call a JS function. The JSFunction or Callable to be called should be in 207 // Call a JS function. The JSFunction or Callable to be called should be in
208 // |callable|. The arguments should be in |args|, with the receiver in 208 // |callable|. The arguments should be in |args|, with the receiver in
209 // |args[0]|. The call type of the expression is in |call_type|. Type feedback 209 // |args[0]|. The call type of the expression is in |call_type|. Type feedback
210 // is recorded in the |feedback_slot| in the type feedback vector. 210 // is recorded in the |feedback_slot| in the type feedback vector.
211 BytecodeArrayBuilder& Call( 211 BytecodeArrayBuilder& Call(
212 Register callable, RegisterList args, int feedback_slot, 212 Register callable, RegisterList args, int feedback_slot,
213 Call::CallType call_type, 213 Call::CallType call_type,
214 TailCallMode tail_call_mode = TailCallMode::kDisallow); 214 TailCallMode tail_call_mode = TailCallMode::kDisallow);
215 215
216 // Call a JS function. The JSFunction or Callable to be called should be in
217 // |args[0]|, the receiver in |args[1]| and the arguments in |args[2]|
218 // onwards. The final argument must be a spread.
219 BytecodeArrayBuilder& CallWithSpread(RegisterList args);
220
216 // Call the new operator. The accumulator holds the |new_target|. 221 // Call the new operator. The accumulator holds the |new_target|.
217 // The |constructor| is in a register and arguments are in |args|. 222 // The |constructor| is in a register and arguments are in |args|.
218 BytecodeArrayBuilder& New(Register constructor, RegisterList args, 223 BytecodeArrayBuilder& New(Register constructor, RegisterList args,
219 int feedback_slot); 224 int feedback_slot);
220 225
221 // Call the new operator for use with a spread. The accumulator holds the 226 // Call the new operator for use with a spread. The accumulator holds the
222 // |new_target|. The |constructor| is in a register and arguments are in 227 // |new_target|. The |constructor| is in a register and arguments are in
223 // |args|. The final argument must be a spread. 228 // |args|. The final argument must be a spread.
224 BytecodeArrayBuilder& NewWithSpread(Register constructor, RegisterList args); 229 BytecodeArrayBuilder& NewWithSpread(Register constructor, RegisterList args);
225 230
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 static int const kNoFeedbackSlot = 0; 443 static int const kNoFeedbackSlot = 0;
439 444
440 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); 445 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder);
441 }; 446 };
442 447
443 } // namespace interpreter 448 } // namespace interpreter
444 } // namespace internal 449 } // namespace internal
445 } // namespace v8 450 } // namespace v8
446 451
447 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 452 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/interpreter/bytecode-array-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698