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_COMPILER_H_ | 5 #ifndef V8_COMPILER_H_ |
6 #define V8_COMPILER_H_ | 6 #define V8_COMPILER_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/ast.h" | 9 #include "src/ast.h" |
10 #include "src/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 InlinedFunctionInfo(int parent_id, SourcePosition inline_position, | 90 InlinedFunctionInfo(int parent_id, SourcePosition inline_position, |
91 int script_id, int start_position) | 91 int script_id, int start_position) |
92 : parent_id(parent_id), | 92 : parent_id(parent_id), |
93 inline_position(inline_position), | 93 inline_position(inline_position), |
94 script_id(script_id), | 94 script_id(script_id), |
95 start_position(start_position) {} | 95 start_position(start_position) {} |
96 int parent_id; | 96 int parent_id; |
97 SourcePosition inline_position; | 97 SourcePosition inline_position; |
98 int script_id; | 98 int script_id; |
99 int start_position; | 99 int start_position; |
100 std::vector<int> deopt_pc_offsets; | 100 std::vector<size_t> deopt_pc_offsets; |
101 | 101 |
102 static const int kNoParentId = -1; | 102 static const int kNoParentId = -1; |
103 }; | 103 }; |
104 | 104 |
105 | 105 |
106 // CompilationInfo encapsulates some information known at compile time. It | 106 // CompilationInfo encapsulates some information known at compile time. It |
107 // is constructed based on the resources available at compile-time. | 107 // is constructed based on the resources available at compile-time. |
108 class CompilationInfo { | 108 class CompilationInfo { |
109 public: | 109 public: |
110 // Various configuration flags for a compilation, as well as some properties | 110 // Various configuration flags for a compilation, as well as some properties |
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 Zone zone_; | 700 Zone zone_; |
701 size_t info_zone_start_allocation_size_; | 701 size_t info_zone_start_allocation_size_; |
702 base::ElapsedTimer timer_; | 702 base::ElapsedTimer timer_; |
703 | 703 |
704 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 704 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
705 }; | 705 }; |
706 | 706 |
707 } } // namespace v8::internal | 707 } } // namespace v8::internal |
708 | 708 |
709 #endif // V8_COMPILER_H_ | 709 #endif // V8_COMPILER_H_ |
OLD | NEW |