OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_LITHIUM_CODEGEN_H_ | 5 #ifndef V8_LITHIUM_CODEGEN_H_ |
6 #define V8_LITHIUM_CODEGEN_H_ | 6 #define V8_LITHIUM_CODEGEN_H_ |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
| 10 #include "src/bailout-reason.h" |
10 #include "src/compiler.h" | 11 #include "src/compiler.h" |
11 #include "src/deoptimizer.h" | 12 #include "src/deoptimizer.h" |
12 | 13 |
13 namespace v8 { | 14 namespace v8 { |
14 namespace internal { | 15 namespace internal { |
15 | 16 |
16 class LInstruction; | 17 class LInstruction; |
17 class LPlatformChunk; | 18 class LPlatformChunk; |
18 | 19 |
19 class LCodeGenBase BASE_EMBEDDED { | 20 class LCodeGenBase BASE_EMBEDDED { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 int current_instruction_; | 70 int current_instruction_; |
70 const ZoneList<LInstruction*>* instructions_; | 71 const ZoneList<LInstruction*>* instructions_; |
71 int last_lazy_deopt_pc_; | 72 int last_lazy_deopt_pc_; |
72 | 73 |
73 bool is_unused() const { return status_ == UNUSED; } | 74 bool is_unused() const { return status_ == UNUSED; } |
74 bool is_generating() const { return status_ == GENERATING; } | 75 bool is_generating() const { return status_ == GENERATING; } |
75 bool is_done() const { return status_ == DONE; } | 76 bool is_done() const { return status_ == DONE; } |
76 bool is_aborted() const { return status_ == ABORTED; } | 77 bool is_aborted() const { return status_ == ABORTED; } |
77 | 78 |
78 void Abort(BailoutReason reason); | 79 void Abort(BailoutReason reason); |
| 80 void Retry(BailoutReason reason); |
79 | 81 |
80 // Methods for code dependencies. | 82 // Methods for code dependencies. |
81 void AddDeprecationDependency(Handle<Map> map); | 83 void AddDeprecationDependency(Handle<Map> map); |
82 void AddStabilityDependency(Handle<Map> map); | 84 void AddStabilityDependency(Handle<Map> map); |
83 }; | 85 }; |
84 | 86 |
85 | 87 |
86 } } // namespace v8::internal | 88 } } // namespace v8::internal |
87 | 89 |
88 #endif // V8_LITHIUM_CODEGEN_H_ | 90 #endif // V8_LITHIUM_CODEGEN_H_ |
OLD | NEW |