| 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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 input_frame_size - parameter_count * kPointerSize - | 307 input_frame_size - parameter_count * kPointerSize - |
| 308 StandardFrameConstants::kFixedFrameSize - | 308 StandardFrameConstants::kFixedFrameSize - |
| 309 kPointerSize; | 309 kPointerSize; |
| 310 ASSERT(JavaScriptFrameConstants::kDynamicAlignmentStateOffset == | 310 ASSERT(JavaScriptFrameConstants::kDynamicAlignmentStateOffset == |
| 311 JavaScriptFrameConstants::kLocal0Offset); | 311 JavaScriptFrameConstants::kLocal0Offset); |
| 312 int32_t alignment_state = input_->GetFrameSlot(alignment_state_offset); | 312 int32_t alignment_state = input_->GetFrameSlot(alignment_state_offset); |
| 313 return (alignment_state == kAlignmentPaddingPushed); | 313 return (alignment_state == kAlignmentPaddingPushed); |
| 314 } | 314 } |
| 315 | 315 |
| 316 | 316 |
| 317 Code* Deoptimizer::NotifyStubFailureBuiltin() { |
| 318 Builtins::Name name = CpuFeatures::IsSupported(SSE2) ? |
| 319 Builtins::kNotifyStubFailureSaveDoubles : Builtins::kNotifyStubFailure; |
| 320 return isolate_->builtins()->builtin(name); |
| 321 } |
| 322 |
| 323 |
| 317 #define __ masm()-> | 324 #define __ masm()-> |
| 318 | 325 |
| 319 void Deoptimizer::EntryGenerator::Generate() { | 326 void Deoptimizer::EntryGenerator::Generate() { |
| 320 GeneratePrologue(); | 327 GeneratePrologue(); |
| 321 | 328 |
| 322 // Save all general purpose registers before messing with them. | 329 // Save all general purpose registers before messing with them. |
| 323 const int kNumberOfRegisters = Register::kNumRegisters; | 330 const int kNumberOfRegisters = Register::kNumRegisters; |
| 324 | 331 |
| 325 const int kDoubleRegsSize = kDoubleSize * | 332 const int kDoubleRegsSize = kDoubleSize * |
| 326 XMMRegister::kNumAllocatableRegisters; | 333 XMMRegister::kNumAllocatableRegisters; |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 SetFrameSlot(offset, value); | 522 SetFrameSlot(offset, value); |
| 516 } | 523 } |
| 517 | 524 |
| 518 | 525 |
| 519 #undef __ | 526 #undef __ |
| 520 | 527 |
| 521 | 528 |
| 522 } } // namespace v8::internal | 529 } } // namespace v8::internal |
| 523 | 530 |
| 524 #endif // V8_TARGET_ARCH_IA32 | 531 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |