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

Side by Side Diff: src/compiler/bytecode-graph-builder.h

Issue 1435423002: [Interpreter] Add New, CallRuntime and CallJSRuntime support to BytecodeGraphBuilder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_tf_globals
Patch Set: Created 5 years, 1 month 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 | « no previous file | src/compiler/bytecode-graph-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_COMPILER_BYTECODE_GRAPH_BUILDER_H_ 5 #ifndef V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_
6 #define V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ 6 #define V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_
7 7
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/interpreter/bytecode-array-iterator.h" 10 #include "src/interpreter/bytecode-array-iterator.h"
(...skipping 22 matching lines...) Expand all
33 void VisitBytecodes(); 33 void VisitBytecodes();
34 34
35 Node* LoadAccumulator(Node* value); 35 Node* LoadAccumulator(Node* value);
36 36
37 // Get or create the node that represents the outer function closure. 37 // Get or create the node that represents the outer function closure.
38 Node* GetFunctionClosure(); 38 Node* GetFunctionClosure();
39 39
40 // Get or create the node that represents the outer function context. 40 // Get or create the node that represents the outer function context.
41 Node* GetFunctionContext(); 41 Node* GetFunctionContext();
42 42
43 // Builders for accessing an immutable object field. 43 // Builder for accessing a (potentially immutable) object field.
44 Node* BuildLoadObjectField(Node* object, int offset);
44 Node* BuildLoadImmutableObjectField(Node* object, int offset); 45 Node* BuildLoadImmutableObjectField(Node* object, int offset);
45 46
46 // Builder for accessing type feedback vector. 47 // Builder for accessing type feedback vector.
47 Node* BuildLoadFeedbackVector(); 48 Node* BuildLoadFeedbackVector();
48 49
50 // Builder for loading the global object.
51 Node* BuildLoadGlobalObject();
52
53 // Builder for loading the a native context field.
54 Node* BuildLoadNativeContextField(int index);
55
49 // Helper function for creating a pair containing type feedback vector and 56 // Helper function for creating a pair containing type feedback vector and
50 // a feedback slot. 57 // a feedback slot.
51 VectorSlotPair CreateVectorSlotPair(int slot_id); 58 VectorSlotPair CreateVectorSlotPair(int slot_id);
52 59
53 // Replaces the frame state inputs with empty frame states. 60 // Replaces the frame state inputs with empty frame states.
54 void AddEmptyFrameStateInputs(Node* node); 61 void AddEmptyFrameStateInputs(Node* node);
55 62
56 void set_environment(Environment* env) { environment_ = env; } 63 void set_environment(Environment* env) { environment_ = env; }
57 const Environment* environment() const { return environment_; } 64 const Environment* environment() const { return environment_; }
58 Environment* environment() { return environment_; } 65 Environment* environment() { return environment_; }
(...skipping 20 matching lines...) Expand all
79 86
80 Node* MakeNode(const Operator* op, int value_input_count, Node** value_inputs, 87 Node* MakeNode(const Operator* op, int value_input_count, Node** value_inputs,
81 bool incomplete); 88 bool incomplete);
82 89
83 Node* MergeControl(Node* control, Node* other); 90 Node* MergeControl(Node* control, Node* other);
84 91
85 Node** EnsureInputBufferSize(int size); 92 Node** EnsureInputBufferSize(int size);
86 93
87 void UpdateControlDependencyToLeaveFunction(Node* exit); 94 void UpdateControlDependencyToLeaveFunction(Node* exit);
88 95
89 Node* ProcessCallArguments(const Operator* call_op, 96 Node* ProcessCallArguments(const Operator* call_op, Node* callee,
90 interpreter::Register callee,
91 interpreter::Register receiver, size_t arity); 97 interpreter::Register receiver, size_t arity);
98 Node* ProcessCallNewArguments(const Operator* call_new_op,
99 interpreter::Register callee,
100 interpreter::Register first_arg, size_t arity);
101 Node* ProcessCallRuntimeArguments(const Operator* call_runtime_op,
102 interpreter::Register first_arg,
103 size_t arity);
92 104
93 void BuildLoadGlobal(const interpreter::BytecodeArrayIterator& iterator, 105 void BuildLoadGlobal(const interpreter::BytecodeArrayIterator& iterator,
94 TypeofMode typeof_mode); 106 TypeofMode typeof_mode);
95 void BuildStoreGlobal(const interpreter::BytecodeArrayIterator& iterator); 107 void BuildStoreGlobal(const interpreter::BytecodeArrayIterator& iterator);
96 void BuildBinaryOp(const Operator* op, 108 void BuildBinaryOp(const Operator* op,
97 const interpreter::BytecodeArrayIterator& iterator); 109 const interpreter::BytecodeArrayIterator& iterator);
98 void BuildNamedLoad(const interpreter::BytecodeArrayIterator& iterator); 110 void BuildNamedLoad(const interpreter::BytecodeArrayIterator& iterator);
99 void BuildCall(const interpreter::BytecodeArrayIterator& iterator); 111 void BuildCall(const interpreter::BytecodeArrayIterator& iterator);
100 112
101 // Growth increment for the temporary buffer used to construct input lists to 113 // Growth increment for the temporary buffer used to construct input lists to
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 NodeVector values_; 212 NodeVector values_;
201 int register_base_; 213 int register_base_;
202 }; 214 };
203 215
204 216
205 } // namespace compiler 217 } // namespace compiler
206 } // namespace internal 218 } // namespace internal
207 } // namespace v8 219 } // namespace v8
208 220
209 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ 221 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_
OLDNEW
« 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