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_X64_LITHIUM_CODEGEN_X64_H_ | 5 #ifndef V8_X64_LITHIUM_CODEGEN_X64_H_ |
6 #define V8_X64_LITHIUM_CODEGEN_X64_H_ | 6 #define V8_X64_LITHIUM_CODEGEN_X64_H_ |
7 | 7 |
8 #include "src/x64/lithium-x64.h" | 8 #include "src/x64/lithium-x64.h" |
9 | 9 |
10 #include "src/base/logging.h" | 10 #include "src/base/logging.h" |
(...skipping 100 matching lines...) Loading... |
111 | 111 |
112 // Emit frame translation commands for an environment. | 112 // Emit frame translation commands for an environment. |
113 void WriteTranslation(LEnvironment* environment, Translation* translation); | 113 void WriteTranslation(LEnvironment* environment, Translation* translation); |
114 | 114 |
115 // Declare methods that deal with the individual node types. | 115 // Declare methods that deal with the individual node types. |
116 #define DECLARE_DO(type) void Do##type(L##type* node); | 116 #define DECLARE_DO(type) void Do##type(L##type* node); |
117 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 117 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
118 #undef DECLARE_DO | 118 #undef DECLARE_DO |
119 | 119 |
120 private: | 120 private: |
121 StrictMode strict_mode() const { return info()->strict_mode(); } | 121 LanguageMode language_mode() const { return info()->language_mode(); } |
122 | 122 |
123 LPlatformChunk* chunk() const { return chunk_; } | 123 LPlatformChunk* chunk() const { return chunk_; } |
124 Scope* scope() const { return scope_; } | 124 Scope* scope() const { return scope_; } |
125 HGraph* graph() const { return chunk()->graph(); } | 125 HGraph* graph() const { return chunk()->graph(); } |
126 | 126 |
127 XMMRegister double_scratch0() const { return xmm0; } | 127 XMMRegister double_scratch0() const { return xmm0; } |
128 | 128 |
129 void EmitClassOfTest(Label* if_true, | 129 void EmitClassOfTest(Label* if_true, |
130 Label* if_false, | 130 Label* if_false, |
131 Handle<String> class_name, | 131 Handle<String> class_name, |
(...skipping 255 matching lines...) Loading... |
387 Label entry_; | 387 Label entry_; |
388 Label exit_; | 388 Label exit_; |
389 Label done_; | 389 Label done_; |
390 Label* external_exit_; | 390 Label* external_exit_; |
391 int instruction_index_; | 391 int instruction_index_; |
392 }; | 392 }; |
393 | 393 |
394 } } // namespace v8::internal | 394 } } // namespace v8::internal |
395 | 395 |
396 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 396 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
OLD | NEW |