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

Unified Diff: src/compiler/bytecode-graph-builder.h

Issue 2673833003: [interpreter] Create custom call opcodes for specific argument counts (Closed)
Patch Set: Rebase Created 3 years, 10 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
« no previous file with comments | « no previous file | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/bytecode-graph-builder.h
diff --git a/src/compiler/bytecode-graph-builder.h b/src/compiler/bytecode-graph-builder.h
index 20d113d3273a25792a2a671765f348ff62010122..2e4bb8484b37341aff8b1a89d09df0b6948bec37 100644
--- a/src/compiler/bytecode-graph-builder.h
+++ b/src/compiler/bytecode-graph-builder.h
@@ -104,13 +104,18 @@ class BytecodeGraphBuilder {
// The main node creation chokepoint. Adds context, frame state, effect,
// and control dependencies depending on the operator.
- Node* MakeNode(const Operator* op, int value_input_count, Node** value_inputs,
- bool incomplete);
+ Node* MakeNode(const Operator* op, int value_input_count,
+ Node* const* value_inputs, bool incomplete);
Node** EnsureInputBufferSize(int size);
+ Node* const* GetCallArgumentsFromRegister(Node* callee,
+ interpreter::Register first_arg,
+ size_t arity);
+ Node* ProcessCallArguments(const Operator* call_op, Node* const* args,
+ size_t arg_count);
Node* ProcessCallArguments(const Operator* call_op, Node* callee,
- interpreter::Register receiver, size_t arity);
+ interpreter::Register receiver, size_t arg_count);
Node* ProcessConstructArguments(const Operator* call_new_op, Node* callee,
Node* new_target,
interpreter::Register first_arg,
@@ -145,6 +150,13 @@ class BytecodeGraphBuilder {
void BuildStaLookupSlot(LanguageMode language_mode);
void BuildCall(TailCallMode tail_call_mode,
ConvertReceiverMode receiver_hint);
+ void BuildCall(TailCallMode tail_call_mode, ConvertReceiverMode receiver_hint,
+ Node* const* args, size_t arg_count, int slot_id);
+ void BuildCall(TailCallMode tail_call_mode, ConvertReceiverMode receiver_hint,
+ std::initializer_list<Node*> args, int slot_id) {
+ BuildCall(tail_call_mode, receiver_hint, args.begin(), args.size(),
+ slot_id);
+ }
void BuildThrow();
void BuildBinaryOp(const Operator* op);
void BuildBinaryOpWithImmediate(const Operator* op);
« no previous file with comments | « no previous file | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698