OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_FULL_CODEGEN_FULL_CODEGEN_H_ | 5 #ifndef V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
10 #include "src/ast/ast.h" | 10 #include "src/ast/ast.h" |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 TestContext context(this, expr, if_true, if_false, fall_through); | 380 TestContext context(this, expr, if_true, if_false, fall_through); |
381 Visit(expr); | 381 Visit(expr); |
382 // For test contexts, we prepare for bailout before branching, not at | 382 // For test contexts, we prepare for bailout before branching, not at |
383 // the end of the entire expression. This happens as part of visiting | 383 // the end of the entire expression. This happens as part of visiting |
384 // the expression. | 384 // the expression. |
385 } | 385 } |
386 | 386 |
387 void VisitInDuplicateContext(Expression* expr); | 387 void VisitInDuplicateContext(Expression* expr); |
388 | 388 |
389 void VisitDeclarations(ZoneList<Declaration*>* declarations) override; | 389 void VisitDeclarations(ZoneList<Declaration*>* declarations) override; |
390 void DeclareModules(Handle<FixedArray> descriptions); | |
391 void DeclareGlobals(Handle<FixedArray> pairs); | 390 void DeclareGlobals(Handle<FixedArray> pairs); |
392 int DeclareGlobalsFlags(); | 391 int DeclareGlobalsFlags(); |
393 | 392 |
394 // Push, pop or drop values onto/from the operand stack. | 393 // Push, pop or drop values onto/from the operand stack. |
395 void PushOperand(Register reg); | 394 void PushOperand(Register reg); |
396 void PopOperand(Register reg); | 395 void PopOperand(Register reg); |
397 void DropOperands(int count); | 396 void DropOperands(int count); |
398 | 397 |
399 // Convenience helpers for pushing onto the operand stack. | 398 // Convenience helpers for pushing onto the operand stack. |
400 void PushOperand(MemOperand operand); | 399 void PushOperand(MemOperand operand); |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
964 CompilationInfo* info_; | 963 CompilationInfo* info_; |
965 Isolate* isolate_; | 964 Isolate* isolate_; |
966 Zone* zone_; | 965 Zone* zone_; |
967 Scope* scope_; | 966 Scope* scope_; |
968 Label return_label_; | 967 Label return_label_; |
969 NestedStatement* nesting_stack_; | 968 NestedStatement* nesting_stack_; |
970 int loop_depth_; | 969 int loop_depth_; |
971 int try_catch_depth_; | 970 int try_catch_depth_; |
972 int operand_stack_depth_; | 971 int operand_stack_depth_; |
973 ZoneList<Handle<Object> >* globals_; | 972 ZoneList<Handle<Object> >* globals_; |
974 Handle<FixedArray> modules_; | |
975 int module_index_; | |
976 const ExpressionContext* context_; | 973 const ExpressionContext* context_; |
977 ZoneList<BailoutEntry> bailout_entries_; | 974 ZoneList<BailoutEntry> bailout_entries_; |
978 ZoneList<BackEdgeEntry> back_edges_; | 975 ZoneList<BackEdgeEntry> back_edges_; |
979 ZoneVector<HandlerTableEntry> handler_table_; | 976 ZoneVector<HandlerTableEntry> handler_table_; |
980 int ic_total_count_; | 977 int ic_total_count_; |
981 Handle<Cell> profiling_counter_; | 978 Handle<Cell> profiling_counter_; |
982 | 979 |
983 friend class NestedStatement; | 980 friend class NestedStatement; |
984 | 981 |
985 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); | 982 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1056 Address start_; | 1053 Address start_; |
1057 Address instruction_start_; | 1054 Address instruction_start_; |
1058 uint32_t length_; | 1055 uint32_t length_; |
1059 }; | 1056 }; |
1060 | 1057 |
1061 | 1058 |
1062 } // namespace internal | 1059 } // namespace internal |
1063 } // namespace v8 | 1060 } // namespace v8 |
1064 | 1061 |
1065 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 1062 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
OLD | NEW |