| 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/ast.h" | 9 #include "src/ast/ast.h" |
| 10 #include "src/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 InlinedFunctionInfo(int parent_id, SourcePosition inline_position, | 124 InlinedFunctionInfo(int parent_id, SourcePosition inline_position, |
| 125 int script_id, int start_position) | 125 int script_id, int start_position) |
| 126 : parent_id(parent_id), | 126 : parent_id(parent_id), |
| 127 inline_position(inline_position), | 127 inline_position(inline_position), |
| 128 script_id(script_id), | 128 script_id(script_id), |
| 129 start_position(start_position) {} | 129 start_position(start_position) {} |
| 130 int parent_id; | 130 int parent_id; |
| 131 SourcePosition inline_position; | 131 SourcePosition inline_position; |
| 132 int script_id; | 132 int script_id; |
| 133 int start_position; | 133 int start_position; |
| 134 std::vector<size_t> deopt_pc_offsets; | |
| 135 | 134 |
| 136 static const int kNoParentId = -1; | 135 static const int kNoParentId = -1; |
| 137 }; | 136 }; |
| 138 | 137 |
| 139 | 138 |
| 140 // CompilationInfo encapsulates some information known at compile time. It | 139 // CompilationInfo encapsulates some information known at compile time. It |
| 141 // is constructed based on the resources available at compile-time. | 140 // is constructed based on the resources available at compile-time. |
| 142 class CompilationInfo final { | 141 class CompilationInfo final { |
| 143 public: | 142 public: |
| 144 // Various configuration flags for a compilation, as well as some properties | 143 // Various configuration flags for a compilation, as well as some properties |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 MUST_USE_RESULT Status SetLastStatus(Status status) { | 606 MUST_USE_RESULT Status SetLastStatus(Status status) { |
| 608 last_status_ = status; | 607 last_status_ = status; |
| 609 return last_status_; | 608 return last_status_; |
| 610 } | 609 } |
| 611 }; | 610 }; |
| 612 | 611 |
| 613 } // namespace internal | 612 } // namespace internal |
| 614 } // namespace v8 | 613 } // namespace v8 |
| 615 | 614 |
| 616 #endif // V8_COMPILER_H_ | 615 #endif // V8_COMPILER_H_ |
| OLD | NEW |