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 Node* BuildKeyedSuperStore(Node* receiver, Node* home_object, Node* key, | 294 Node* BuildKeyedSuperStore(Node* receiver, Node* home_object, Node* key, |
295 Node* value, TypeFeedbackId id); | 295 Node* value, TypeFeedbackId id); |
296 Node* BuildNamedSuperStore(Node* receiver, Node* home_object, | 296 Node* BuildNamedSuperStore(Node* receiver, Node* home_object, |
297 Handle<Name> name, Node* value, TypeFeedbackId id); | 297 Handle<Name> name, Node* value, TypeFeedbackId id); |
298 Node* BuildNamedSuperLoad(Node* receiver, Node* home_object, | 298 Node* BuildNamedSuperLoad(Node* receiver, Node* home_object, |
299 Handle<Name> name, const VectorSlotPair& feedback); | 299 Handle<Name> name, const VectorSlotPair& feedback); |
300 Node* BuildKeyedSuperLoad(Node* receiver, Node* home_object, Node* key, | 300 Node* BuildKeyedSuperLoad(Node* receiver, Node* home_object, Node* key, |
301 const VectorSlotPair& feedback); | 301 const VectorSlotPair& feedback); |
302 | 302 |
303 // Builders for global variable loads and stores. | 303 // Builders for global variable loads and stores. |
304 Node* BuildGlobalLoad(Node* script_context, Node* global, Handle<Name> name, | 304 Node* BuildGlobalLoad(Handle<Name> name, const VectorSlotPair& feedback, |
305 const VectorSlotPair& feedback, TypeofMode typeof_mode, | 305 TypeofMode typeof_mode); |
306 int slot_index); | 306 Node* BuildGlobalStore(Handle<Name> name, Node* value, |
307 Node* BuildGlobalStore(Node* script_context, Node* global, Handle<Name> name, | 307 const VectorSlotPair& feedback, TypeFeedbackId id); |
308 Node* value, const VectorSlotPair& feedback, | |
309 TypeFeedbackId id, int slot_index); | |
310 | 308 |
311 // Builders for accessing the function context. | 309 // Builders for accessing the function context. |
312 Node* BuildLoadGlobalObject(); | 310 Node* BuildLoadGlobalObject(); |
313 Node* BuildLoadNativeContextField(int index); | 311 Node* BuildLoadNativeContextField(int index); |
314 Node* BuildLoadGlobalProxy(); | 312 Node* BuildLoadGlobalProxy(); |
315 Node* BuildLoadFeedbackVector(); | 313 Node* BuildLoadFeedbackVector(); |
316 | 314 |
317 // Builder for accessing a (potentially immutable) object field. | 315 // Builder for accessing a (potentially immutable) object field. |
318 Node* BuildLoadObjectField(Node* object, int offset); | 316 Node* BuildLoadObjectField(Node* object, int offset); |
319 Node* BuildLoadImmutableObjectField(Node* object, int offset); | 317 Node* BuildLoadImmutableObjectField(Node* object, int offset); |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 | 558 |
561 // Prepare environment to be used as loop header. | 559 // Prepare environment to be used as loop header. |
562 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 560 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
563 }; | 561 }; |
564 | 562 |
565 } // namespace compiler | 563 } // namespace compiler |
566 } // namespace internal | 564 } // namespace internal |
567 } // namespace v8 | 565 } // namespace v8 |
568 | 566 |
569 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 567 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
OLD | NEW |