OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_IA32_LITHIUM_CODEGEN_IA32_H_ | 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ |
6 #define V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ | 6 #define V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ |
7 | 7 |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/base/logging.h" | 9 #include "src/base/logging.h" |
10 #include "src/crankshaft/ia32/lithium-gap-resolver-ia32.h" | 10 #include "src/crankshaft/ia32/lithium-gap-resolver-ia32.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 void WriteTranslation(LEnvironment* environment, Translation* translation); | 108 void WriteTranslation(LEnvironment* environment, Translation* translation); |
109 | 109 |
110 void EnsureRelocSpaceForDeoptimization(); | 110 void EnsureRelocSpaceForDeoptimization(); |
111 | 111 |
112 // Declare methods that deal with the individual node types. | 112 // Declare methods that deal with the individual node types. |
113 #define DECLARE_DO(type) void Do##type(L##type* node); | 113 #define DECLARE_DO(type) void Do##type(L##type* node); |
114 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 114 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
115 #undef DECLARE_DO | 115 #undef DECLARE_DO |
116 | 116 |
117 private: | 117 private: |
118 LanguageMode language_mode() const { return info()->language_mode(); } | |
119 | |
120 Scope* scope() const { return scope_; } | 118 Scope* scope() const { return scope_; } |
121 | 119 |
122 XMMRegister double_scratch0() const { return xmm0; } | 120 XMMRegister double_scratch0() const { return xmm0; } |
123 | 121 |
124 void EmitClassOfTest(Label* if_true, | 122 void EmitClassOfTest(Label* if_true, |
125 Label* if_false, | 123 Label* if_false, |
126 Handle<String> class_name, | 124 Handle<String> class_name, |
127 Register input, | 125 Register input, |
128 Register temporary, | 126 Register temporary, |
129 Register temporary2); | 127 Register temporary2); |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 Label exit_; | 385 Label exit_; |
388 Label* external_exit_; | 386 Label* external_exit_; |
389 Label done_; | 387 Label done_; |
390 int instruction_index_; | 388 int instruction_index_; |
391 }; | 389 }; |
392 | 390 |
393 } // namespace internal | 391 } // namespace internal |
394 } // namespace v8 | 392 } // namespace v8 |
395 | 393 |
396 #endif // V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ | 394 #endif // V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ |
OLD | NEW |