OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_AST_GRAPH_BUILDER_H_ | 5 #ifndef V8_COMPILER_AST_GRAPH_BUILDER_H_ |
6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_ | 6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_ |
7 | 7 |
8 #include "src/ast.h" | 8 #include "src/ast.h" |
9 #include "src/compiler/js-graph.h" | 9 #include "src/compiler/js-graph.h" |
10 #include "src/compiler/liveness-analyzer.h" | 10 #include "src/compiler/liveness-analyzer.h" |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 | 294 |
295 // Builders for global variable loads and stores. | 295 // Builders for global variable loads and stores. |
296 Node* BuildGlobalLoad(Handle<Name> name, const VectorSlotPair& feedback, | 296 Node* BuildGlobalLoad(Handle<Name> name, const VectorSlotPair& feedback, |
297 TypeofMode typeof_mode); | 297 TypeofMode typeof_mode); |
298 Node* BuildGlobalStore(Handle<Name> name, Node* value, | 298 Node* BuildGlobalStore(Handle<Name> name, Node* value, |
299 const VectorSlotPair& feedback); | 299 const VectorSlotPair& feedback); |
300 | 300 |
301 // Builders for accessing the function context. | 301 // Builders for accessing the function context. |
302 Node* BuildLoadGlobalObject(); | 302 Node* BuildLoadGlobalObject(); |
303 Node* BuildLoadNativeContextField(int index); | 303 Node* BuildLoadNativeContextField(int index); |
304 Node* BuildLoadGlobalProxy(); | |
305 Node* BuildLoadFeedbackVector(); | 304 Node* BuildLoadFeedbackVector(); |
306 | 305 |
307 // Builder for accessing a (potentially immutable) object field. | 306 // Builder for accessing a (potentially immutable) object field. |
308 Node* BuildLoadObjectField(Node* object, int offset); | 307 Node* BuildLoadObjectField(Node* object, int offset); |
309 Node* BuildLoadImmutableObjectField(Node* object, int offset); | 308 Node* BuildLoadImmutableObjectField(Node* object, int offset); |
310 | 309 |
311 // Builders for accessing external references. | 310 // Builders for accessing external references. |
312 Node* BuildLoadExternal(ExternalReference ref, MachineType type); | 311 Node* BuildLoadExternal(ExternalReference ref, MachineType type); |
313 Node* BuildStoreExternal(ExternalReference ref, MachineType type, Node* val); | 312 Node* BuildStoreExternal(ExternalReference ref, MachineType type, Node* val); |
314 | 313 |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 | 571 |
573 // Prepare environment to be used as loop header. | 572 // Prepare environment to be used as loop header. |
574 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 573 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
575 }; | 574 }; |
576 | 575 |
577 } // namespace compiler | 576 } // namespace compiler |
578 } // namespace internal | 577 } // namespace internal |
579 } // namespace v8 | 578 } // namespace v8 |
580 | 579 |
581 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 580 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
OLD | NEW |