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 | |
63 // Check that an environment assigned via AssignEnvironment is actually being | 61 // Check that an environment assigned via AssignEnvironment is actually being |
64 // used. Redundant assignments keep things alive longer than necessary, and | 62 // used. Redundant assignments keep things alive longer than necessary, and |
65 // consequently lead to worse code, so it's important to minimize this. | 63 // consequently lead to worse code, so it's important to minimize this. |
66 void CheckEnvironmentUsage(); | 64 void CheckEnvironmentUsage(); |
67 | 65 |
68 protected: | 66 protected: |
69 enum Status { | 67 enum Status { |
70 UNUSED, | 68 UNUSED, |
71 GENERATING, | 69 GENERATING, |
72 DONE, | 70 DONE, |
(...skipping 26 matching lines...) Expand all Loading... |
99 // Methods for code dependencies. | 97 // Methods for code dependencies. |
100 void AddDeprecationDependency(Handle<Map> map); | 98 void AddDeprecationDependency(Handle<Map> map); |
101 void AddStabilityDependency(Handle<Map> map); | 99 void AddStabilityDependency(Handle<Map> map); |
102 }; | 100 }; |
103 | 101 |
104 | 102 |
105 } // namespace internal | 103 } // namespace internal |
106 } // namespace v8 | 104 } // namespace v8 |
107 | 105 |
108 #endif // V8_CRANKSHAFT_LITHIUM_CODEGEN_H_ | 106 #endif // V8_CRANKSHAFT_LITHIUM_CODEGEN_H_ |
OLD | NEW |