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

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

Issue 2684993002: [interpreter] Create custom call opcodes for specific argument counts (Closed)
Patch Set: Fix golden files again Created 3 years, 9 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 057bfe17ec5913c3118d70edda6133874769a77d..3e73e030709dc4b4f49eaa1545858a9afa26e328 100644
--- a/src/compiler/bytecode-graph-builder.h
+++ b/src/compiler/bytecode-graph-builder.h
@@ -104,11 +104,16 @@ 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);
Node* ProcessConstructArguments(const Operator* call_new_op, Node* callee,
@@ -150,8 +155,16 @@ class BytecodeGraphBuilder {
void BuildLdaLookupContextSlot(TypeofMode typeof_mode);
void BuildLdaLookupGlobalSlot(TypeofMode typeof_mode);
void BuildStaLookupSlot(LanguageMode language_mode);
- void BuildCall(TailCallMode tail_call_mode,
- ConvertReceiverMode receiver_hint);
+ void BuildCallVarArgs(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);
void BuildCompareOp(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