OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 bool NeedsDeferredFrame() const { | 99 bool NeedsDeferredFrame() const { |
100 return !NeedsEagerFrame() && info()->is_deferred_calling(); | 100 return !NeedsEagerFrame() && info()->is_deferred_calling(); |
101 } | 101 } |
102 | 102 |
103 // Support for converting LOperands to assembler types. | 103 // Support for converting LOperands to assembler types. |
104 Register ToRegister(LOperand* op) const; | 104 Register ToRegister(LOperand* op) const; |
105 XMMRegister ToDoubleRegister(LOperand* op) const; | 105 XMMRegister ToDoubleRegister(LOperand* op) const; |
106 bool IsInteger32Constant(LConstantOperand* op) const; | 106 bool IsInteger32Constant(LConstantOperand* op) const; |
107 bool IsSmiConstant(LConstantOperand* op) const; | 107 bool IsSmiConstant(LConstantOperand* op) const; |
108 int ToInteger32(LConstantOperand* op) const; | 108 int ToInteger32(LConstantOperand* op) const; |
| 109 Smi* ToSmi(LConstantOperand* op) const; |
109 double ToDouble(LConstantOperand* op) const; | 110 double ToDouble(LConstantOperand* op) const; |
110 bool IsTaggedConstant(LConstantOperand* op) const; | 111 bool IsTaggedConstant(LConstantOperand* op) const; |
111 Handle<Object> ToHandle(LConstantOperand* op) const; | 112 Handle<Object> ToHandle(LConstantOperand* op) const; |
112 Operand ToOperand(LOperand* op) const; | 113 Operand ToOperand(LOperand* op) const; |
113 | 114 |
114 // Try to generate code for the entire chunk, but it may fail if the | 115 // Try to generate code for the entire chunk, but it may fail if the |
115 // chunk contains constructs we cannot handle. Returns true if the | 116 // chunk contains constructs we cannot handle. Returns true if the |
116 // code generation attempt succeeded. | 117 // code generation attempt succeeded. |
117 bool GenerateCode(); | 118 bool GenerateCode(); |
118 | 119 |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 LCodeGen* codegen_; | 436 LCodeGen* codegen_; |
436 Label entry_; | 437 Label entry_; |
437 Label exit_; | 438 Label exit_; |
438 Label* external_exit_; | 439 Label* external_exit_; |
439 int instruction_index_; | 440 int instruction_index_; |
440 }; | 441 }; |
441 | 442 |
442 } } // namespace v8::internal | 443 } } // namespace v8::internal |
443 | 444 |
444 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 445 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
OLD | NEW |