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_X64_LITHIUM_CODEGEN_X64_H_ | 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_ |
6 #define V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_ | 6 #define V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_ |
7 | 7 |
8 | 8 |
9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
10 #include "src/base/logging.h" | 10 #include "src/base/logging.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 // Emit frame translation commands for an environment. | 105 // Emit frame translation commands for an environment. |
106 void WriteTranslation(LEnvironment* environment, Translation* translation); | 106 void WriteTranslation(LEnvironment* environment, Translation* translation); |
107 | 107 |
108 // Declare methods that deal with the individual node types. | 108 // Declare methods that deal with the individual node types. |
109 #define DECLARE_DO(type) void Do##type(L##type* node); | 109 #define DECLARE_DO(type) void Do##type(L##type* node); |
110 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 110 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
111 #undef DECLARE_DO | 111 #undef DECLARE_DO |
112 | 112 |
113 private: | 113 private: |
114 LanguageMode language_mode() const { return info()->language_mode(); } | |
115 | |
116 LPlatformChunk* chunk() const { return chunk_; } | 114 LPlatformChunk* chunk() const { return chunk_; } |
117 Scope* scope() const { return scope_; } | 115 Scope* scope() const { return scope_; } |
118 HGraph* graph() const { return chunk()->graph(); } | 116 HGraph* graph() const { return chunk()->graph(); } |
119 | 117 |
120 XMMRegister double_scratch0() const { return xmm0; } | 118 XMMRegister double_scratch0() const { return xmm0; } |
121 | 119 |
122 void EmitClassOfTest(Label* if_true, | 120 void EmitClassOfTest(Label* if_true, |
123 Label* if_false, | 121 Label* if_false, |
124 Handle<String> class_name, | 122 Handle<String> class_name, |
125 Register input, | 123 Register input, |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 Label exit_; | 379 Label exit_; |
382 Label done_; | 380 Label done_; |
383 Label* external_exit_; | 381 Label* external_exit_; |
384 int instruction_index_; | 382 int instruction_index_; |
385 }; | 383 }; |
386 | 384 |
387 } // namespace internal | 385 } // namespace internal |
388 } // namespace v8 | 386 } // namespace v8 |
389 | 387 |
390 #endif // V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_ | 388 #endif // V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_ |
OLD | NEW |