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