| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 void RegisterWeakObjectsInOptimizedCode(Handle<Code> code); | 52 void RegisterWeakObjectsInOptimizedCode(Handle<Code> code); |
| 53 | 53 |
| 54 void WriteTranslationFrame(LEnvironment* environment, | 54 void WriteTranslationFrame(LEnvironment* environment, |
| 55 Translation* translation); | 55 Translation* translation); |
| 56 int DefineDeoptimizationLiteral(Handle<Object> literal); | 56 int DefineDeoptimizationLiteral(Handle<Object> literal); |
| 57 | 57 |
| 58 void PopulateDeoptimizationData(Handle<Code> code); | 58 void PopulateDeoptimizationData(Handle<Code> code); |
| 59 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); | 59 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); |
| 60 | 60 |
| 61 void LogDeoptCallPosition(int pc_offset, int inlining_id); |
| 62 |
| 61 // Check that an environment assigned via AssignEnvironment is actually being | 63 // Check that an environment assigned via AssignEnvironment is actually being |
| 62 // used. Redundant assignments keep things alive longer than necessary, and | 64 // used. Redundant assignments keep things alive longer than necessary, and |
| 63 // consequently lead to worse code, so it's important to minimize this. | 65 // consequently lead to worse code, so it's important to minimize this. |
| 64 void CheckEnvironmentUsage(); | 66 void CheckEnvironmentUsage(); |
| 65 | 67 |
| 66 protected: | 68 protected: |
| 67 enum Status { | 69 enum Status { |
| 68 UNUSED, | 70 UNUSED, |
| 69 GENERATING, | 71 GENERATING, |
| 70 DONE, | 72 DONE, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 97 // Methods for code dependencies. | 99 // Methods for code dependencies. |
| 98 void AddDeprecationDependency(Handle<Map> map); | 100 void AddDeprecationDependency(Handle<Map> map); |
| 99 void AddStabilityDependency(Handle<Map> map); | 101 void AddStabilityDependency(Handle<Map> map); |
| 100 }; | 102 }; |
| 101 | 103 |
| 102 | 104 |
| 103 } // namespace internal | 105 } // namespace internal |
| 104 } // namespace v8 | 106 } // namespace v8 |
| 105 | 107 |
| 106 #endif // V8_CRANKSHAFT_LITHIUM_CODEGEN_H_ | 108 #endif // V8_CRANKSHAFT_LITHIUM_CODEGEN_H_ |
| OLD | NEW |