| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 info()->requires_frame(); | 79 info()->requires_frame(); |
| 80 } | 80 } |
| 81 bool NeedsDeferredFrame() const { | 81 bool NeedsDeferredFrame() const { |
| 82 return !NeedsEagerFrame() && info()->is_deferred_calling(); | 82 return !NeedsEagerFrame() && info()->is_deferred_calling(); |
| 83 } | 83 } |
| 84 | 84 |
| 85 // Support for converting LOperands to assembler types. | 85 // Support for converting LOperands to assembler types. |
| 86 Register ToRegister(LOperand* op) const; | 86 Register ToRegister(LOperand* op) const; |
| 87 XMMRegister ToDoubleRegister(LOperand* op) const; | 87 XMMRegister ToDoubleRegister(LOperand* op) const; |
| 88 bool IsInteger32Constant(LConstantOperand* op) const; | 88 bool IsInteger32Constant(LConstantOperand* op) const; |
| 89 bool IsDehoistedKeyConstant(LConstantOperand* op) const; |
| 89 bool IsSmiConstant(LConstantOperand* op) const; | 90 bool IsSmiConstant(LConstantOperand* op) const; |
| 90 int32_t ToInteger32(LConstantOperand* op) const; | 91 int32_t ToInteger32(LConstantOperand* op) const; |
| 91 Smi* ToSmi(LConstantOperand* op) const; | 92 Smi* ToSmi(LConstantOperand* op) const; |
| 92 double ToDouble(LConstantOperand* op) const; | 93 double ToDouble(LConstantOperand* op) const; |
| 93 ExternalReference ToExternalReference(LConstantOperand* op) const; | 94 ExternalReference ToExternalReference(LConstantOperand* op) const; |
| 94 bool IsTaggedConstant(LConstantOperand* op) const; | 95 bool IsTaggedConstant(LConstantOperand* op) const; |
| 95 Handle<Object> ToHandle(LConstantOperand* op) const; | 96 Handle<Object> ToHandle(LConstantOperand* op) const; |
| 96 Operand ToOperand(LOperand* op) const; | 97 Operand ToOperand(LOperand* op) const; |
| 97 | 98 |
| 98 // Try to generate code for the entire chunk, but it may fail if the | 99 // Try to generate code for the entire chunk, but it may fail if the |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 void Abort(BailoutReason reason); | 153 void Abort(BailoutReason reason); |
| 153 | 154 |
| 154 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } | 155 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } |
| 155 | 156 |
| 156 | 157 |
| 157 void SaveCallerDoubles(); | 158 void SaveCallerDoubles(); |
| 158 void RestoreCallerDoubles(); | 159 void RestoreCallerDoubles(); |
| 159 | 160 |
| 160 // Code generation passes. Returns true if code generation should | 161 // Code generation passes. Returns true if code generation should |
| 161 // continue. | 162 // continue. |
| 163 void GenerateBodyInstructionPost(LInstruction* instr) V8_OVERRIDE; |
| 162 bool GeneratePrologue(); | 164 bool GeneratePrologue(); |
| 163 bool GenerateDeferredCode(); | 165 bool GenerateDeferredCode(); |
| 164 bool GenerateJumpTable(); | 166 bool GenerateJumpTable(); |
| 165 bool GenerateSafepointTable(); | 167 bool GenerateSafepointTable(); |
| 166 | 168 |
| 167 // Generates the custom OSR entrypoint and sets the osr_pc_offset. | 169 // Generates the custom OSR entrypoint and sets the osr_pc_offset. |
| 168 void GenerateOsrPrologue(); | 170 void GenerateOsrPrologue(); |
| 169 | 171 |
| 170 enum SafepointMode { | 172 enum SafepointMode { |
| 171 RECORD_SIMPLE_SAFEPOINT, | 173 RECORD_SIMPLE_SAFEPOINT, |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 Label entry_; | 413 Label entry_; |
| 412 Label exit_; | 414 Label exit_; |
| 413 Label done_; | 415 Label done_; |
| 414 Label* external_exit_; | 416 Label* external_exit_; |
| 415 int instruction_index_; | 417 int instruction_index_; |
| 416 }; | 418 }; |
| 417 | 419 |
| 418 } } // namespace v8::internal | 420 } } // namespace v8::internal |
| 419 | 421 |
| 420 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 422 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
| OLD | NEW |