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

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

Issue 78283002: Restore saved caller FP registers on stub failure (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Port to ia32, arm, and mips Created 7 years, 1 month 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 | « src/ia32/builtins-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.h » ('j') | 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698