| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 int params = descriptor->register_param_count_; | 286 int params = descriptor->register_param_count_; |
| 287 if (descriptor->stack_parameter_count_ != NULL) { | 287 if (descriptor->stack_parameter_count_ != NULL) { |
| 288 params++; | 288 params++; |
| 289 } | 289 } |
| 290 output_frame->SetRegister(eax.code(), params); | 290 output_frame->SetRegister(eax.code(), params); |
| 291 output_frame->SetRegister(ebx.code(), handler); | 291 output_frame->SetRegister(ebx.code(), handler); |
| 292 } | 292 } |
| 293 | 293 |
| 294 | 294 |
| 295 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { | 295 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { |
| 296 if (!CpuFeatures::IsSupported(SSE2)) return; |
| 296 for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; ++i) { | 297 for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; ++i) { |
| 297 double double_value = input_->GetDoubleRegister(i); | 298 double double_value = input_->GetDoubleRegister(i); |
| 298 output_frame->SetDoubleRegister(i, double_value); | 299 output_frame->SetDoubleRegister(i, double_value); |
| 299 } | 300 } |
| 300 } | 301 } |
| 301 | 302 |
| 302 | 303 |
| 303 bool Deoptimizer::HasAlignmentPadding(JSFunction* function) { | 304 bool Deoptimizer::HasAlignmentPadding(JSFunction* function) { |
| 304 int parameter_count = function->shared()->formal_parameter_count() + 1; | 305 int parameter_count = function->shared()->formal_parameter_count() + 1; |
| 305 unsigned input_frame_size = input_->GetFrameSize(); | 306 unsigned input_frame_size = input_->GetFrameSize(); |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 SetFrameSlot(offset, value); | 516 SetFrameSlot(offset, value); |
| 516 } | 517 } |
| 517 | 518 |
| 518 | 519 |
| 519 #undef __ | 520 #undef __ |
| 520 | 521 |
| 521 | 522 |
| 522 } } // namespace v8::internal | 523 } } // namespace v8::internal |
| 523 | 524 |
| 524 #endif // V8_TARGET_ARCH_IA32 | 525 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |