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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 int params = descriptor->register_param_count_; | 205 int params = descriptor->register_param_count_; |
206 if (descriptor->stack_parameter_count_ != NULL) { | 206 if (descriptor->stack_parameter_count_ != NULL) { |
207 params++; | 207 params++; |
208 } | 208 } |
209 output_frame->SetRegister(eax.code(), params); | 209 output_frame->SetRegister(eax.code(), params); |
210 output_frame->SetRegister(ebx.code(), handler); | 210 output_frame->SetRegister(ebx.code(), handler); |
211 } | 211 } |
212 | 212 |
213 | 213 |
214 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { | 214 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { |
| 215 if (!CpuFeatures::IsSupported(SSE2)) return; |
215 for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; ++i) { | 216 for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; ++i) { |
216 double double_value = input_->GetDoubleRegister(i); | 217 double double_value = input_->GetDoubleRegister(i); |
217 output_frame->SetDoubleRegister(i, double_value); | 218 output_frame->SetDoubleRegister(i, double_value); |
218 } | 219 } |
219 } | 220 } |
220 | 221 |
221 | 222 |
222 bool Deoptimizer::HasAlignmentPadding(JSFunction* function) { | 223 bool Deoptimizer::HasAlignmentPadding(JSFunction* function) { |
223 int parameter_count = function->shared()->formal_parameter_count() + 1; | 224 int parameter_count = function->shared()->formal_parameter_count() + 1; |
224 unsigned input_frame_size = input_->GetFrameSize(); | 225 unsigned input_frame_size = input_->GetFrameSize(); |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 SetFrameSlot(offset, value); | 435 SetFrameSlot(offset, value); |
435 } | 436 } |
436 | 437 |
437 | 438 |
438 #undef __ | 439 #undef __ |
439 | 440 |
440 | 441 |
441 } } // namespace v8::internal | 442 } } // namespace v8::internal |
442 | 443 |
443 #endif // V8_TARGET_ARCH_IA32 | 444 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |