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

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

Issue 70203002: Simplify Hydrogen code stubs with variable argument count (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE 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/code-stubs-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 for (unsigned i = 0; i < input_->GetFrameSize(); i += kPointerSize) { 195 for (unsigned i = 0; i < input_->GetFrameSize(); i += kPointerSize) {
196 input_->SetFrameSlot(i, Memory::uint32_at(tos + i)); 196 input_->SetFrameSlot(i, Memory::uint32_at(tos + i));
197 } 197 }
198 } 198 }
199 199
200 200
201 void Deoptimizer::SetPlatformCompiledStubRegisters( 201 void Deoptimizer::SetPlatformCompiledStubRegisters(
202 FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) { 202 FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) {
203 intptr_t handler = 203 intptr_t handler =
204 reinterpret_cast<intptr_t>(descriptor->deoptimization_handler_); 204 reinterpret_cast<intptr_t>(descriptor->deoptimization_handler_);
205 int params = descriptor->environment_length(); 205 int params = descriptor->GetHandlerParameterCount();
206 output_frame->SetRegister(eax.code(), params); 206 output_frame->SetRegister(eax.code(), params);
207 output_frame->SetRegister(ebx.code(), handler); 207 output_frame->SetRegister(ebx.code(), handler);
208 } 208 }
209 209
210 210
211 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { 211 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) {
212 if (!CpuFeatures::IsSupported(SSE2)) return; 212 if (!CpuFeatures::IsSupported(SSE2)) return;
213 for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; ++i) { 213 for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; ++i) {
214 double double_value = input_->GetDoubleRegister(i); 214 double double_value = input_->GetDoubleRegister(i);
215 output_frame->SetDoubleRegister(i, double_value); 215 output_frame->SetDoubleRegister(i, double_value);
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 SetFrameSlot(offset, value); 432 SetFrameSlot(offset, value);
433 } 433 }
434 434
435 435
436 #undef __ 436 #undef __
437 437
438 438
439 } } // namespace v8::internal 439 } } // namespace v8::internal
440 440
441 #endif // V8_TARGET_ARCH_IA32 441 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698