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

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

Issue 2571563004: [Turbofan] Implement super calls with spread bytecode in assembly code. (Closed)
Patch Set: MIPS64 port 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/globals.h ('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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 the new operator. The accumulator holds the |new_target|. 216 // Call the new operator. The accumulator holds the |new_target|.
217 // The |constructor| is in a register and arguments are in |args|. 217 // The |constructor| is in a register and arguments are in |args|.
218 BytecodeArrayBuilder& New(Register constructor, RegisterList args, 218 BytecodeArrayBuilder& New(Register constructor, RegisterList args,
219 int feedback_slot); 219 int feedback_slot);
220 220
221 // 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
223 // |args|. The final argument must be a spread.
224 BytecodeArrayBuilder& NewWithSpread(Register constructor, RegisterList args);
225
221 // Call the runtime function with |function_id| and arguments |args|. 226 // Call the runtime function with |function_id| and arguments |args|.
222 BytecodeArrayBuilder& CallRuntime(Runtime::FunctionId function_id, 227 BytecodeArrayBuilder& CallRuntime(Runtime::FunctionId function_id,
223 RegisterList args); 228 RegisterList args);
224 // Call the runtime function with |function_id| with single argument |arg|. 229 // Call the runtime function with |function_id| with single argument |arg|.
225 BytecodeArrayBuilder& CallRuntime(Runtime::FunctionId function_id, 230 BytecodeArrayBuilder& CallRuntime(Runtime::FunctionId function_id,
226 Register arg); 231 Register arg);
227 // Call the runtime function with |function_id| with no arguments. 232 // Call the runtime function with |function_id| with no arguments.
228 BytecodeArrayBuilder& CallRuntime(Runtime::FunctionId function_id); 233 BytecodeArrayBuilder& CallRuntime(Runtime::FunctionId function_id);
229 234
230 // Call the runtime function with |function_id| and arguments |args|, that 235 // Call the runtime function with |function_id| and arguments |args|, that
231 // returns a pair of values. The return values will be returned in 236 // returns a pair of values. The return values will be returned in
232 // |return_pair|. 237 // |return_pair|.
233 BytecodeArrayBuilder& CallRuntimeForPair(Runtime::FunctionId function_id, 238 BytecodeArrayBuilder& CallRuntimeForPair(Runtime::FunctionId function_id,
234 RegisterList args, 239 RegisterList args,
235 RegisterList return_pair); 240 RegisterList return_pair);
236 // Call the runtime function with |function_id| with single argument |arg| 241 // Call the runtime function with |function_id| with single argument |arg|
237 // that returns a pair of values. The return values will be returned in 242 // that returns a pair of values. The return values will be returned in
238 // |return_pair|. 243 // |return_pair|.
239 BytecodeArrayBuilder& CallRuntimeForPair(Runtime::FunctionId function_id, 244 BytecodeArrayBuilder& CallRuntimeForPair(Runtime::FunctionId function_id,
240 Register arg, 245 Register arg,
241 RegisterList return_pair); 246 RegisterList return_pair);
242 247
243 // Call the JS runtime function with |context_index| and arguments |args|. 248 // Call the JS runtime function with |context_index| and arguments |args|.
244 BytecodeArrayBuilder& CallJSRuntime(int context_index, RegisterList args); 249 BytecodeArrayBuilder& CallJSRuntime(int context_index, RegisterList args);
245 250
246 // Call the constructor in |args[0]| with new_target in |args[1]| and the
247 // arguments starting at |args[2]| onwards. The final argument must be a
248 // spread.
249 BytecodeArrayBuilder& NewWithSpread(RegisterList args);
250
251 // Operators (register holds the lhs value, accumulator holds the rhs value). 251 // Operators (register holds the lhs value, accumulator holds the rhs value).
252 // Type feedback will be recorded in the |feedback_slot| 252 // Type feedback will be recorded in the |feedback_slot|
253 BytecodeArrayBuilder& BinaryOperation(Token::Value binop, Register reg, 253 BytecodeArrayBuilder& BinaryOperation(Token::Value binop, Register reg,
254 int feedback_slot); 254 int feedback_slot);
255 255
256 // Count Operators (value stored in accumulator). 256 // Count Operators (value stored in accumulator).
257 // Type feedback will be recorded in the |feedback_slot| 257 // Type feedback will be recorded in the |feedback_slot|
258 BytecodeArrayBuilder& CountOperation(Token::Value op, int feedback_slot); 258 BytecodeArrayBuilder& CountOperation(Token::Value op, int feedback_slot);
259 259
260 // Unary Operators. 260 // Unary Operators.
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 static int const kNoFeedbackSlot = 0; 438 static int const kNoFeedbackSlot = 0;
439 439
440 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); 440 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder);
441 }; 441 };
442 442
443 } // namespace interpreter 443 } // namespace interpreter
444 } // namespace internal 444 } // namespace internal
445 } // namespace v8 445 } // namespace v8
446 446
447 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 447 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/interpreter/bytecode-array-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698