| 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 |
| 57 void WriteTranslationFrame(LEnvironment* environment, | 59 void WriteTranslationFrame(LEnvironment* environment, |
| 58 Translation* translation); | 60 Translation* translation); |
| 59 int DefineDeoptimizationLiteral(Handle<Object> literal); | 61 int DefineDeoptimizationLiteral(Handle<Object> literal); |
| 60 | 62 |
| 61 void PopulateDeoptimizationData(Handle<Code> code); | 63 void PopulateDeoptimizationData(Handle<Code> code); |
| 62 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); | 64 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); |
| 63 | 65 |
| 64 // Check that an environment assigned via AssignEnvironment is actually being | 66 // Check that an environment assigned via AssignEnvironment is actually being |
| 65 // used. Redundant assignments keep things alive longer than necessary, and | 67 // used. Redundant assignments keep things alive longer than necessary, and |
| 66 // consequently lead to worse code, so it's important to minimize this. | 68 // 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... |
| 101 // Methods for code dependencies. | 103 // Methods for code dependencies. |
| 102 void AddDeprecationDependency(Handle<Map> map); | 104 void AddDeprecationDependency(Handle<Map> map); |
| 103 void AddStabilityDependency(Handle<Map> map); | 105 void AddStabilityDependency(Handle<Map> map); |
| 104 }; | 106 }; |
| 105 | 107 |
| 106 | 108 |
| 107 } // namespace internal | 109 } // namespace internal |
| 108 } // namespace v8 | 110 } // namespace v8 |
| 109 | 111 |
| 110 #endif // V8_CRANKSHAFT_LITHIUM_CODEGEN_H_ | 112 #endif // V8_CRANKSHAFT_LITHIUM_CODEGEN_H_ |
| OLD | NEW |