OLD | NEW |
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 29 matching lines...) Expand all Loading... |
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 // Builder for accessing a (potentially immutable) object field. | 43 // Builder for accessing a (potentially immutable) object field. |
44 Node* BuildLoadObjectField(Node* object, int offset); | 44 Node* BuildLoadObjectField(Node* object, int offset); |
45 Node* BuildLoadImmutableObjectField(Node* object, int offset); | 45 Node* BuildLoadImmutableObjectField(Node* object, int offset); |
46 | 46 |
47 // Builder for accessing type feedback vector. | 47 // Builder for accessing type feedback vector. |
48 Node* BuildLoadFeedbackVector(); | 48 Node* BuildLoadFeedbackVector(); |
49 | 49 |
50 // Builder for loading the global object. | |
51 Node* BuildLoadGlobalObject(); | |
52 | |
53 // Builder for loading the a native context field. | 50 // Builder for loading the a native context field. |
54 Node* BuildLoadNativeContextField(int index); | 51 Node* BuildLoadNativeContextField(int index); |
55 | 52 |
56 // Helper function for creating a pair containing type feedback vector and | 53 // Helper function for creating a pair containing type feedback vector and |
57 // a feedback slot. | 54 // a feedback slot. |
58 VectorSlotPair CreateVectorSlotPair(int slot_id); | 55 VectorSlotPair CreateVectorSlotPair(int slot_id); |
59 | 56 |
60 // Replaces the frame state inputs with empty frame states. | 57 // Replaces the frame state inputs with empty frame states. |
61 void AddEmptyFrameStateInputs(Node* node); | 58 void AddEmptyFrameStateInputs(Node* node); |
62 | 59 |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 NodeVector values_; | 220 NodeVector values_; |
224 int register_base_; | 221 int register_base_; |
225 }; | 222 }; |
226 | 223 |
227 | 224 |
228 } // namespace compiler | 225 } // namespace compiler |
229 } // namespace internal | 226 } // namespace internal |
230 } // namespace v8 | 227 } // namespace v8 |
231 | 228 |
232 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ | 229 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ |
OLD | NEW |