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/compiler.h" | 10 #include "src/compiler.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 MacroAssembler* masm() const { return masm_; } | 26 MacroAssembler* masm() const { return masm_; } |
27 CompilationInfo* info() const { return info_; } | 27 CompilationInfo* info() const { return info_; } |
28 Isolate* isolate() const { return info_->isolate(); } | 28 Isolate* isolate() const { return info_->isolate(); } |
29 Factory* factory() const { return isolate()->factory(); } | 29 Factory* factory() const { return isolate()->factory(); } |
30 Heap* heap() const { return isolate()->heap(); } | 30 Heap* heap() const { return isolate()->heap(); } |
31 Zone* zone() const { return zone_; } | 31 Zone* zone() const { return zone_; } |
32 LPlatformChunk* chunk() const { return chunk_; } | 32 LPlatformChunk* chunk() const { return chunk_; } |
33 HGraph* graph() const; | 33 HGraph* graph() const; |
34 | 34 |
35 void FPRINTF_CHECKING Comment(const char* format, ...); | 35 void FPRINTF_CHECKING Comment(const char* format, ...); |
| 36 void DeoptComment(const char* mnemonic, const char* reason); |
36 | 37 |
37 bool GenerateBody(); | 38 bool GenerateBody(); |
38 virtual void GenerateBodyInstructionPre(LInstruction* instr) {} | 39 virtual void GenerateBodyInstructionPre(LInstruction* instr) {} |
39 virtual void GenerateBodyInstructionPost(LInstruction* instr) {} | 40 virtual void GenerateBodyInstructionPost(LInstruction* instr) {} |
40 | 41 |
41 virtual void EnsureSpaceForLazyDeopt(int space_needed) = 0; | 42 virtual void EnsureSpaceForLazyDeopt(int space_needed) = 0; |
42 virtual void RecordAndWritePosition(int position) = 0; | 43 virtual void RecordAndWritePosition(int position) = 0; |
43 | 44 |
44 int GetNextEmittedBlock() const; | 45 int GetNextEmittedBlock() const; |
45 | 46 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 78 |
78 // Methods for code dependencies. | 79 // Methods for code dependencies. |
79 void AddDeprecationDependency(Handle<Map> map); | 80 void AddDeprecationDependency(Handle<Map> map); |
80 void AddStabilityDependency(Handle<Map> map); | 81 void AddStabilityDependency(Handle<Map> map); |
81 }; | 82 }; |
82 | 83 |
83 | 84 |
84 } } // namespace v8::internal | 85 } } // namespace v8::internal |
85 | 86 |
86 #endif // V8_LITHIUM_CODEGEN_H_ | 87 #endif // V8_LITHIUM_CODEGEN_H_ |
OLD | NEW |