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 23 matching lines...) Expand all Loading... |
34 Heap* heap() const { return isolate()->heap(); } | 34 Heap* heap() const { return isolate()->heap(); } |
35 Zone* zone() const { return zone_; } | 35 Zone* zone() const { return zone_; } |
36 LPlatformChunk* chunk() const { return chunk_; } | 36 LPlatformChunk* chunk() const { return chunk_; } |
37 HGraph* graph() const; | 37 HGraph* graph() const; |
38 SourcePositionTableBuilder* source_position_table_builder() { | 38 SourcePositionTableBuilder* source_position_table_builder() { |
39 return &source_position_table_builder_; | 39 return &source_position_table_builder_; |
40 } | 40 } |
41 | 41 |
42 void PRINTF_FORMAT(2, 3) Comment(const char* format, ...); | 42 void PRINTF_FORMAT(2, 3) Comment(const char* format, ...); |
43 void DeoptComment(const Deoptimizer::DeoptInfo& deopt_info); | 43 void DeoptComment(const Deoptimizer::DeoptInfo& deopt_info); |
44 static Deoptimizer::DeoptInfo MakeDeoptInfo( | 44 static Deoptimizer::DeoptInfo MakeDeoptInfo(LInstruction* instr, |
45 LInstruction* instr, Deoptimizer::DeoptReason deopt_reason, int deopt_id); | 45 DeoptimizeReason deopt_reason, |
| 46 int deopt_id); |
46 | 47 |
47 bool GenerateBody(); | 48 bool GenerateBody(); |
48 virtual void GenerateBodyInstructionPre(LInstruction* instr) {} | 49 virtual void GenerateBodyInstructionPre(LInstruction* instr) {} |
49 virtual void GenerateBodyInstructionPost(LInstruction* instr) {} | 50 virtual void GenerateBodyInstructionPost(LInstruction* instr) {} |
50 | 51 |
51 virtual void EnsureSpaceForLazyDeopt(int space_needed) = 0; | 52 virtual void EnsureSpaceForLazyDeopt(int space_needed) = 0; |
52 void RecordAndWritePosition(int position); | 53 void RecordAndWritePosition(int position); |
53 | 54 |
54 int GetNextEmittedBlock() const; | 55 int GetNextEmittedBlock() const; |
55 | 56 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 // Methods for code dependencies. | 103 // Methods for code dependencies. |
103 void AddDeprecationDependency(Handle<Map> map); | 104 void AddDeprecationDependency(Handle<Map> map); |
104 void AddStabilityDependency(Handle<Map> map); | 105 void AddStabilityDependency(Handle<Map> map); |
105 }; | 106 }; |
106 | 107 |
107 | 108 |
108 } // namespace internal | 109 } // namespace internal |
109 } // namespace v8 | 110 } // namespace v8 |
110 | 111 |
111 #endif // V8_CRANKSHAFT_LITHIUM_CODEGEN_H_ | 112 #endif // V8_CRANKSHAFT_LITHIUM_CODEGEN_H_ |
OLD | NEW |