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 29 matching lines...) Expand all Loading... |
40 try_catch_depth_(0), | 40 try_catch_depth_(0), |
41 operand_stack_depth_(0), | 41 operand_stack_depth_(0), |
42 globals_(NULL), | 42 globals_(NULL), |
43 context_(NULL), | 43 context_(NULL), |
44 bailout_entries_(info->HasDeoptimizationSupport() | 44 bailout_entries_(info->HasDeoptimizationSupport() |
45 ? info->literal()->ast_node_count() | 45 ? info->literal()->ast_node_count() |
46 : 0, | 46 : 0, |
47 info->zone()), | 47 info->zone()), |
48 back_edges_(2, info->zone()), | 48 back_edges_(2, info->zone()), |
49 handler_table_(info->zone()), | 49 handler_table_(info->zone()), |
50 source_position_table_builder_(info->isolate(), info->zone()), | 50 source_position_table_builder_(info->isolate(), info->zone(), |
| 51 info->SourcePositionRecordingMode()), |
51 ic_total_count_(0) { | 52 ic_total_count_(0) { |
52 DCHECK(!info->IsStub()); | 53 DCHECK(!info->IsStub()); |
53 Initialize(); | 54 Initialize(); |
54 } | 55 } |
55 | 56 |
56 void Initialize(); | 57 void Initialize(); |
57 | 58 |
58 static bool MakeCode(CompilationInfo* info); | 59 static bool MakeCode(CompilationInfo* info); |
59 | 60 |
60 // Encode bailout state and pc-offset as a BitField<type, start, size>. | 61 // Encode bailout state and pc-offset as a BitField<type, start, size>. |
(...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1056 Address start_; | 1057 Address start_; |
1057 Address instruction_start_; | 1058 Address instruction_start_; |
1058 uint32_t length_; | 1059 uint32_t length_; |
1059 }; | 1060 }; |
1060 | 1061 |
1061 | 1062 |
1062 } // namespace internal | 1063 } // namespace internal |
1063 } // namespace v8 | 1064 } // namespace v8 |
1064 | 1065 |
1065 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 1066 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
OLD | NEW |