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 28 matching lines...) Expand all Loading... |
39 loop_depth_(0), | 39 loop_depth_(0), |
40 operand_stack_depth_(0), | 40 operand_stack_depth_(0), |
41 globals_(NULL), | 41 globals_(NULL), |
42 context_(NULL), | 42 context_(NULL), |
43 bailout_entries_(info->HasDeoptimizationSupport() | 43 bailout_entries_(info->HasDeoptimizationSupport() |
44 ? info->literal()->ast_node_count() | 44 ? info->literal()->ast_node_count() |
45 : 0, | 45 : 0, |
46 info->zone()), | 46 info->zone()), |
47 back_edges_(2, info->zone()), | 47 back_edges_(2, info->zone()), |
48 handler_table_(info->zone()), | 48 handler_table_(info->zone()), |
49 source_position_table_builder_(info->isolate(), info->zone(), | 49 source_position_table_builder_(info->zone(), |
50 info->SourcePositionRecordingMode()), | 50 info->SourcePositionRecordingMode()), |
51 ic_total_count_(0) { | 51 ic_total_count_(0) { |
52 DCHECK(!info->IsStub()); | 52 DCHECK(!info->IsStub()); |
53 Initialize(); | 53 Initialize(); |
54 } | 54 } |
55 | 55 |
56 void Initialize(); | 56 void Initialize(); |
57 | 57 |
58 static bool MakeCode(CompilationInfo* info); | 58 static bool MakeCode(CompilationInfo* info); |
59 | 59 |
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1038 Address start_; | 1038 Address start_; |
1039 Address instruction_start_; | 1039 Address instruction_start_; |
1040 uint32_t length_; | 1040 uint32_t length_; |
1041 }; | 1041 }; |
1042 | 1042 |
1043 | 1043 |
1044 } // namespace internal | 1044 } // namespace internal |
1045 } // namespace v8 | 1045 } // namespace v8 |
1046 | 1046 |
1047 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 1047 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
OLD | NEW |