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 15 matching lines...) Expand all Loading... |
26 // Simple accessors. | 26 // Simple accessors. |
27 MacroAssembler* masm() const { return masm_; } | 27 MacroAssembler* masm() const { return masm_; } |
28 CompilationInfo* info() const { return info_; } | 28 CompilationInfo* info() const { return info_; } |
29 Isolate* isolate() const { return info_->isolate(); } | 29 Isolate* isolate() const { return info_->isolate(); } |
30 Factory* factory() const { return isolate()->factory(); } | 30 Factory* factory() const { return isolate()->factory(); } |
31 Heap* heap() const { return isolate()->heap(); } | 31 Heap* heap() const { return isolate()->heap(); } |
32 Zone* zone() const { return zone_; } | 32 Zone* zone() const { return zone_; } |
33 LPlatformChunk* chunk() const { return chunk_; } | 33 LPlatformChunk* chunk() const { return chunk_; } |
34 HGraph* graph() const; | 34 HGraph* graph() const; |
35 | 35 |
36 void PRINTF_FORMAT(2, 3) Comment(const char* format, ...); | 36 void FPRINTF_CHECKING Comment(const char* format, ...); |
37 void DeoptComment(const Deoptimizer::DeoptInfo& deopt_info); | 37 void DeoptComment(const Deoptimizer::DeoptInfo& deopt_info); |
38 static Deoptimizer::DeoptInfo MakeDeoptInfo( | 38 static Deoptimizer::DeoptInfo MakeDeoptInfo( |
39 LInstruction* instr, Deoptimizer::DeoptReason deopt_reason); | 39 LInstruction* instr, Deoptimizer::DeoptReason deopt_reason); |
40 | 40 |
41 bool GenerateBody(); | 41 bool GenerateBody(); |
42 virtual void GenerateBodyInstructionPre(LInstruction* instr) {} | 42 virtual void GenerateBodyInstructionPre(LInstruction* instr) {} |
43 virtual void GenerateBodyInstructionPost(LInstruction* instr) {} | 43 virtual void GenerateBodyInstructionPost(LInstruction* instr) {} |
44 | 44 |
45 virtual void EnsureSpaceForLazyDeopt(int space_needed) = 0; | 45 virtual void EnsureSpaceForLazyDeopt(int space_needed) = 0; |
46 virtual void RecordAndWritePosition(int position) = 0; | 46 virtual void RecordAndWritePosition(int position) = 0; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // Methods for code dependencies. | 95 // Methods for code dependencies. |
96 void AddDeprecationDependency(Handle<Map> map); | 96 void AddDeprecationDependency(Handle<Map> map); |
97 void AddStabilityDependency(Handle<Map> map); | 97 void AddStabilityDependency(Handle<Map> map); |
98 }; | 98 }; |
99 | 99 |
100 | 100 |
101 } // namespace internal | 101 } // namespace internal |
102 } // namespace v8 | 102 } // namespace v8 |
103 | 103 |
104 #endif // V8_CRANKSHAFT_LITHIUM_CODEGEN_H_ | 104 #endif // V8_CRANKSHAFT_LITHIUM_CODEGEN_H_ |
OLD | NEW |