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_CRANKSHAFT_LITHIUM_CODEGEN_H_ | 5 #ifndef V8_CRANKSHAFT_LITHIUM_CODEGEN_H_ |
6 #define V8_CRANKSHAFT_LITHIUM_CODEGEN_H_ | 6 #define V8_CRANKSHAFT_LITHIUM_CODEGEN_H_ |
7 | 7 |
8 #include "src/bailout-reason.h" | 8 #include "src/bailout-reason.h" |
9 #include "src/compiler.h" | 9 #include "src/compiler.h" |
10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 Isolate* isolate() const { return info_->isolate(); } | 31 Isolate* isolate() const { return info_->isolate(); } |
32 Factory* factory() const { return isolate()->factory(); } | 32 Factory* factory() const { return isolate()->factory(); } |
33 Heap* heap() const { return isolate()->heap(); } | 33 Heap* heap() const { return isolate()->heap(); } |
34 Zone* zone() const { return zone_; } | 34 Zone* zone() const { return zone_; } |
35 LPlatformChunk* chunk() const { return chunk_; } | 35 LPlatformChunk* chunk() const { return chunk_; } |
36 HGraph* graph() const; | 36 HGraph* graph() const; |
37 | 37 |
38 void PRINTF_FORMAT(2, 3) Comment(const char* format, ...); | 38 void PRINTF_FORMAT(2, 3) Comment(const char* format, ...); |
39 void DeoptComment(const Deoptimizer::DeoptInfo& deopt_info); | 39 void DeoptComment(const Deoptimizer::DeoptInfo& deopt_info); |
40 static Deoptimizer::DeoptInfo MakeDeoptInfo( | 40 static Deoptimizer::DeoptInfo MakeDeoptInfo( |
41 LInstruction* instr, Deoptimizer::DeoptReason deopt_reason); | 41 LInstruction* instr, Deoptimizer::DeoptReason deopt_reason, int deopt_id); |
42 | 42 |
43 bool GenerateBody(); | 43 bool GenerateBody(); |
44 virtual void GenerateBodyInstructionPre(LInstruction* instr) {} | 44 virtual void GenerateBodyInstructionPre(LInstruction* instr) {} |
45 virtual void GenerateBodyInstructionPost(LInstruction* instr) {} | 45 virtual void GenerateBodyInstructionPost(LInstruction* instr) {} |
46 | 46 |
47 virtual void EnsureSpaceForLazyDeopt(int space_needed) = 0; | 47 virtual void EnsureSpaceForLazyDeopt(int space_needed) = 0; |
48 virtual void RecordAndWritePosition(int position) = 0; | 48 virtual void RecordAndWritePosition(int position) = 0; |
49 | 49 |
50 int GetNextEmittedBlock() const; | 50 int GetNextEmittedBlock() const; |
51 | 51 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // Methods for code dependencies. | 97 // Methods for code dependencies. |
98 void AddDeprecationDependency(Handle<Map> map); | 98 void AddDeprecationDependency(Handle<Map> map); |
99 void AddStabilityDependency(Handle<Map> map); | 99 void AddStabilityDependency(Handle<Map> map); |
100 }; | 100 }; |
101 | 101 |
102 | 102 |
103 } // namespace internal | 103 } // namespace internal |
104 } // namespace v8 | 104 } // namespace v8 |
105 | 105 |
106 #endif // V8_CRANKSHAFT_LITHIUM_CODEGEN_H_ | 106 #endif // V8_CRANKSHAFT_LITHIUM_CODEGEN_H_ |
OLD | NEW |