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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 bool GenerateBody(); | 48 bool GenerateBody(); |
49 virtual void GenerateBodyInstructionPre(LInstruction* instr) {} | 49 virtual void GenerateBodyInstructionPre(LInstruction* instr) {} |
50 virtual void GenerateBodyInstructionPost(LInstruction* instr) {} | 50 virtual void GenerateBodyInstructionPost(LInstruction* instr) {} |
51 | 51 |
52 virtual void EnsureSpaceForLazyDeopt(int space_needed) = 0; | 52 virtual void EnsureSpaceForLazyDeopt(int space_needed) = 0; |
53 void RecordAndWritePosition(int position); | 53 void RecordAndWritePosition(int position); |
54 | 54 |
55 int GetNextEmittedBlock() const; | 55 int GetNextEmittedBlock() const; |
56 | 56 |
57 void RegisterWeakObjectsInOptimizedCode(Handle<Code> code); | |
58 | |
59 void WriteTranslationFrame(LEnvironment* environment, | 57 void WriteTranslationFrame(LEnvironment* environment, |
60 Translation* translation); | 58 Translation* translation); |
61 int DefineDeoptimizationLiteral(Handle<Object> literal); | 59 int DefineDeoptimizationLiteral(Handle<Object> literal); |
62 | 60 |
63 void PopulateDeoptimizationData(Handle<Code> code); | 61 void PopulateDeoptimizationData(Handle<Code> code); |
64 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); | 62 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); |
65 | 63 |
66 // Check that an environment assigned via AssignEnvironment is actually being | 64 // Check that an environment assigned via AssignEnvironment is actually being |
67 // used. Redundant assignments keep things alive longer than necessary, and | 65 // used. Redundant assignments keep things alive longer than necessary, and |
68 // consequently lead to worse code, so it's important to minimize this. | 66 // consequently lead to worse code, so it's important to minimize this. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // Methods for code dependencies. | 101 // Methods for code dependencies. |
104 void AddDeprecationDependency(Handle<Map> map); | 102 void AddDeprecationDependency(Handle<Map> map); |
105 void AddStabilityDependency(Handle<Map> map); | 103 void AddStabilityDependency(Handle<Map> map); |
106 }; | 104 }; |
107 | 105 |
108 | 106 |
109 } // namespace internal | 107 } // namespace internal |
110 } // namespace v8 | 108 } // namespace v8 |
111 | 109 |
112 #endif // V8_CRANKSHAFT_LITHIUM_CODEGEN_H_ | 110 #endif // V8_CRANKSHAFT_LITHIUM_CODEGEN_H_ |
OLD | NEW |