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/checks.h" | 10 #include "src/checks.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 bool NeedsDeferredFrame() const { | 58 bool NeedsDeferredFrame() const { |
59 return !NeedsEagerFrame() && info()->is_deferred_calling(); | 59 return !NeedsEagerFrame() && info()->is_deferred_calling(); |
60 } | 60 } |
61 | 61 |
62 // Support for converting LOperands to assembler types. | 62 // Support for converting LOperands to assembler types. |
63 Register ToRegister(LOperand* op) const; | 63 Register ToRegister(LOperand* op) const; |
64 XMMRegister ToDoubleRegister(LOperand* op) const; | 64 XMMRegister ToDoubleRegister(LOperand* op) const; |
65 bool IsInteger32Constant(LConstantOperand* op) const; | 65 bool IsInteger32Constant(LConstantOperand* op) const; |
66 bool IsDehoistedKeyConstant(LConstantOperand* op) const; | 66 bool IsDehoistedKeyConstant(LConstantOperand* op) const; |
67 bool IsSmiConstant(LConstantOperand* op) const; | 67 bool IsSmiConstant(LConstantOperand* op) const; |
| 68 int32_t ToRepresentation(LConstantOperand* op, const Representation& r) const; |
68 int32_t ToInteger32(LConstantOperand* op) const; | 69 int32_t ToInteger32(LConstantOperand* op) const; |
69 Smi* ToSmi(LConstantOperand* op) const; | 70 Smi* ToSmi(LConstantOperand* op) const; |
70 double ToDouble(LConstantOperand* op) const; | 71 double ToDouble(LConstantOperand* op) const; |
71 ExternalReference ToExternalReference(LConstantOperand* op) const; | 72 ExternalReference ToExternalReference(LConstantOperand* op) const; |
72 Handle<Object> ToHandle(LConstantOperand* op) const; | 73 Handle<Object> ToHandle(LConstantOperand* op) const; |
73 Operand ToOperand(LOperand* op) const; | 74 Operand ToOperand(LOperand* op) const; |
74 | 75 |
75 // Try to generate code for the entire chunk, but it may fail if the | 76 // Try to generate code for the entire chunk, but it may fail if the |
76 // chunk contains constructs we cannot handle. Returns true if the | 77 // chunk contains constructs we cannot handle. Returns true if the |
77 // code generation attempt succeeded. | 78 // code generation attempt succeeded. |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 Label entry_; | 395 Label entry_; |
395 Label exit_; | 396 Label exit_; |
396 Label done_; | 397 Label done_; |
397 Label* external_exit_; | 398 Label* external_exit_; |
398 int instruction_index_; | 399 int instruction_index_; |
399 }; | 400 }; |
400 | 401 |
401 } } // namespace v8::internal | 402 } } // namespace v8::internal |
402 | 403 |
403 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 404 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
OLD | NEW |