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

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

Issue 562983003: X87: Get CallInterfaceDescriptor directly from CodeStub. (Closed) Base URL: https://github.com/v8/v8.git@bleeding_edge
Patch Set: Created 6 years, 3 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
« no previous file with comments | « src/x87/code-stubs-x87.cc ('k') | src/x87/lithium-x87.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 } 187 }
188 188
189 // Fill the frame content from the actual data on the frame. 189 // Fill the frame content from the actual data on the frame.
190 for (unsigned i = 0; i < input_->GetFrameSize(); i += kPointerSize) { 190 for (unsigned i = 0; i < input_->GetFrameSize(); i += kPointerSize) {
191 input_->SetFrameSlot(i, Memory::uint32_at(tos + i)); 191 input_->SetFrameSlot(i, Memory::uint32_at(tos + i));
192 } 192 }
193 } 193 }
194 194
195 195
196 void Deoptimizer::SetPlatformCompiledStubRegisters( 196 void Deoptimizer::SetPlatformCompiledStubRegisters(
197 FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) { 197 FrameDescription* output_frame, CodeStubDescriptor* descriptor) {
198 intptr_t handler = 198 intptr_t handler =
199 reinterpret_cast<intptr_t>(descriptor->deoptimization_handler()); 199 reinterpret_cast<intptr_t>(descriptor->deoptimization_handler());
200 int params = descriptor->GetHandlerParameterCount(); 200 int params = descriptor->GetHandlerParameterCount();
201 output_frame->SetRegister(eax.code(), params); 201 output_frame->SetRegister(eax.code(), params);
202 output_frame->SetRegister(ebx.code(), handler); 202 output_frame->SetRegister(ebx.code(), handler);
203 } 203 }
204 204
205 205
206 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { 206 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) {
207 // Do nothing for X87. 207 // Do nothing for X87.
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 UNREACHABLE(); 394 UNREACHABLE();
395 } 395 }
396 396
397 397
398 #undef __ 398 #undef __
399 399
400 400
401 } } // namespace v8::internal 401 } } // namespace v8::internal
402 402
403 #endif // V8_TARGET_ARCH_X87 403 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/code-stubs-x87.cc ('k') | src/x87/lithium-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698