| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 input_frame_size - parameter_count * kPointerSize - | 224 input_frame_size - parameter_count * kPointerSize - |
| 225 StandardFrameConstants::kFixedFrameSize - | 225 StandardFrameConstants::kFixedFrameSize - |
| 226 kPointerSize; | 226 kPointerSize; |
| 227 ASSERT(JavaScriptFrameConstants::kDynamicAlignmentStateOffset == | 227 ASSERT(JavaScriptFrameConstants::kDynamicAlignmentStateOffset == |
| 228 JavaScriptFrameConstants::kLocal0Offset); | 228 JavaScriptFrameConstants::kLocal0Offset); |
| 229 int32_t alignment_state = input_->GetFrameSlot(alignment_state_offset); | 229 int32_t alignment_state = input_->GetFrameSlot(alignment_state_offset); |
| 230 return (alignment_state == kAlignmentPaddingPushed); | 230 return (alignment_state == kAlignmentPaddingPushed); |
| 231 } | 231 } |
| 232 | 232 |
| 233 | 233 |
| 234 Code* Deoptimizer::NotifyStubFailureBuiltin() { |
| 235 Builtins::Name name = CpuFeatures::IsSupported(SSE2) ? |
| 236 Builtins::kNotifyStubFailureSaveDoubles : Builtins::kNotifyStubFailure; |
| 237 return isolate_->builtins()->builtin(name); |
| 238 } |
| 239 |
| 240 |
| 234 #define __ masm()-> | 241 #define __ masm()-> |
| 235 | 242 |
| 236 void Deoptimizer::EntryGenerator::Generate() { | 243 void Deoptimizer::EntryGenerator::Generate() { |
| 237 GeneratePrologue(); | 244 GeneratePrologue(); |
| 238 | 245 |
| 239 // Save all general purpose registers before messing with them. | 246 // Save all general purpose registers before messing with them. |
| 240 const int kNumberOfRegisters = Register::kNumRegisters; | 247 const int kNumberOfRegisters = Register::kNumRegisters; |
| 241 | 248 |
| 242 const int kDoubleRegsSize = kDoubleSize * | 249 const int kDoubleRegsSize = kDoubleSize * |
| 243 XMMRegister::kNumAllocatableRegisters; | 250 XMMRegister::kNumAllocatableRegisters; |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 SetFrameSlot(offset, value); | 439 SetFrameSlot(offset, value); |
| 433 } | 440 } |
| 434 | 441 |
| 435 | 442 |
| 436 #undef __ | 443 #undef __ |
| 437 | 444 |
| 438 | 445 |
| 439 } } // namespace v8::internal | 446 } } // namespace v8::internal |
| 440 | 447 |
| 441 #endif // V8_TARGET_ARCH_IA32 | 448 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |