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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 } | 95 } |
96 bool NeedsDeferredFrame() const { | 96 bool NeedsDeferredFrame() const { |
97 return !NeedsEagerFrame() && info()->is_deferred_calling(); | 97 return !NeedsEagerFrame() && info()->is_deferred_calling(); |
98 } | 98 } |
99 | 99 |
100 // Support for converting LOperands to assembler types. | 100 // Support for converting LOperands to assembler types. |
101 Register ToRegister(LOperand* op) const; | 101 Register ToRegister(LOperand* op) const; |
102 XMMRegister ToDoubleRegister(LOperand* op) const; | 102 XMMRegister ToDoubleRegister(LOperand* op) const; |
103 bool IsInteger32Constant(LConstantOperand* op) const; | 103 bool IsInteger32Constant(LConstantOperand* op) const; |
104 bool IsSmiConstant(LConstantOperand* op) const; | 104 bool IsSmiConstant(LConstantOperand* op) const; |
105 int ToInteger32(LConstantOperand* op) const; | 105 int ToRepresentation(LConstantOperand* op, const Representation& r) const; |
| 106 int32_t ToInteger32(LConstantOperand* op) const; |
106 Smi* ToSmi(LConstantOperand* op) const; | 107 Smi* ToSmi(LConstantOperand* op) const; |
107 double ToDouble(LConstantOperand* op) const; | 108 double ToDouble(LConstantOperand* op) const; |
108 bool IsTaggedConstant(LConstantOperand* op) const; | 109 bool IsTaggedConstant(LConstantOperand* op) const; |
109 Handle<Object> ToHandle(LConstantOperand* op) const; | 110 Handle<Object> ToHandle(LConstantOperand* op) const; |
110 Operand ToOperand(LOperand* op) const; | 111 Operand ToOperand(LOperand* op) const; |
111 | 112 |
112 // Try to generate code for the entire chunk, but it may fail if the | 113 // Try to generate code for the entire chunk, but it may fail if the |
113 // chunk contains constructs we cannot handle. Returns true if the | 114 // chunk contains constructs we cannot handle. Returns true if the |
114 // code generation attempt succeeded. | 115 // code generation attempt succeeded. |
115 bool GenerateCode(); | 116 bool GenerateCode(); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 | 239 |
239 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 240 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
240 SafepointMode safepoint_mode, | 241 SafepointMode safepoint_mode, |
241 int argc); | 242 int argc); |
242 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 243 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
243 Safepoint::DeoptMode mode); | 244 Safepoint::DeoptMode mode); |
244 void DeoptimizeIf(Condition cc, | 245 void DeoptimizeIf(Condition cc, |
245 LEnvironment* environment, | 246 LEnvironment* environment, |
246 Deoptimizer::BailoutType bailout_type); | 247 Deoptimizer::BailoutType bailout_type); |
247 void DeoptimizeIf(Condition cc, LEnvironment* environment); | 248 void DeoptimizeIf(Condition cc, LEnvironment* environment); |
248 void SoftDeoptimize(LEnvironment* environment); | 249 void ApplyCheckIf(Condition cc, LBoundsCheck* check); |
249 void AddToTranslation(Translation* translation, | 250 void AddToTranslation(Translation* translation, |
250 LOperand* op, | 251 LOperand* op, |
251 bool is_tagged, | 252 bool is_tagged, |
252 bool is_uint32); | 253 bool is_uint32); |
253 void RegisterDependentCodeForEmbeddedMaps(Handle<Code> code); | 254 void RegisterDependentCodeForEmbeddedMaps(Handle<Code> code); |
254 void PopulateDeoptimizationData(Handle<Code> code); | 255 void PopulateDeoptimizationData(Handle<Code> code); |
255 int DefineDeoptimizationLiteral(Handle<Object> literal); | 256 int DefineDeoptimizationLiteral(Handle<Object> literal); |
256 | 257 |
257 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); | 258 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); |
258 | 259 |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 LCodeGen* codegen_; | 427 LCodeGen* codegen_; |
427 Label entry_; | 428 Label entry_; |
428 Label exit_; | 429 Label exit_; |
429 Label* external_exit_; | 430 Label* external_exit_; |
430 int instruction_index_; | 431 int instruction_index_; |
431 }; | 432 }; |
432 | 433 |
433 } } // namespace v8::internal | 434 } } // namespace v8::internal |
434 | 435 |
435 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 436 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
OLD | NEW |