Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: src/ia32/deoptimizer-ia32.cc

Issue 11788030: Fix nosse2 crash introduced by r13320 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix formatting nit Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 (1 + descriptor->register_param_count_) * kPointerSize; 589 (1 + descriptor->register_param_count_) * kPointerSize;
590 FrameDescription* output_frame = 590 FrameDescription* output_frame =
591 new(output_frame_size) FrameDescription(output_frame_size, 0); 591 new(output_frame_size) FrameDescription(output_frame_size, 0);
592 Code* notify_failure = 592 Code* notify_failure =
593 isolate_->builtins()->builtin(Builtins::kNotifyStubFailure); 593 isolate_->builtins()->builtin(Builtins::kNotifyStubFailure);
594 output_frame->SetState(Smi::FromInt(FullCodeGenerator::NO_REGISTERS)); 594 output_frame->SetState(Smi::FromInt(FullCodeGenerator::NO_REGISTERS));
595 output_frame->SetContinuation( 595 output_frame->SetContinuation(
596 reinterpret_cast<uint32_t>(notify_failure->entry())); 596 reinterpret_cast<uint32_t>(notify_failure->entry()));
597 597
598 Code* code; 598 Code* code;
599 CEntryStub(1, kSaveFPRegs).FindCodeInCache(&code, isolate_); 599 SaveFPRegsMode mode =
600 CpuFeatures::IsSupported(SSE2) ? kSaveFPRegs : kDontSaveFPRegs;
601 CEntryStub(1, mode).FindCodeInCache(&code, isolate_);
600 output_frame->SetPc(reinterpret_cast<intptr_t>(code->instruction_start())); 602 output_frame->SetPc(reinterpret_cast<intptr_t>(code->instruction_start()));
601 unsigned input_frame_size = input_->GetFrameSize(); 603 unsigned input_frame_size = input_->GetFrameSize();
602 intptr_t value = input_->GetFrameSlot(input_frame_size - kPointerSize); 604 intptr_t value = input_->GetFrameSlot(input_frame_size - kPointerSize);
603 output_frame->SetFrameSlot(0, value); 605 output_frame->SetFrameSlot(0, value);
604 value = input_->GetFrameSlot(input_frame_size - 2 * kPointerSize); 606 value = input_->GetFrameSlot(input_frame_size - 2 * kPointerSize);
605 output_frame->SetRegister(ebp.code(), value); 607 output_frame->SetRegister(ebp.code(), value);
606 output_frame->SetFp(value); 608 output_frame->SetFp(value);
607 value = input_->GetFrameSlot(input_frame_size - 3 * kPointerSize); 609 value = input_->GetFrameSlot(input_frame_size - 3 * kPointerSize);
608 output_frame->SetRegister(esi.code(), value); 610 output_frame->SetRegister(esi.code(), value);
609 611
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 } 1280 }
1279 __ bind(&done); 1281 __ bind(&done);
1280 } 1282 }
1281 1283
1282 #undef __ 1284 #undef __
1283 1285
1284 1286
1285 } } // namespace v8::internal 1287 } } // namespace v8::internal
1286 1288
1287 #endif // V8_TARGET_ARCH_IA32 1289 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698