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

Side by Side Diff: src/x87/code-stubs-x87.cc

Issue 1778293003: Revert of "X87: Rework CallApi*Stubs." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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 | « 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 // 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 #if V8_TARGET_ARCH_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/api-arguments.h" 8 #include "src/api-arguments.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 5430 matching lines...) Expand 10 before | Expand all | Expand 10 after
5441 const int kApiStackSpace = 4; 5441 const int kApiStackSpace = 4;
5442 5442
5443 PrepareCallApiFunction(masm, kApiArgc + kApiStackSpace); 5443 PrepareCallApiFunction(masm, kApiArgc + kApiStackSpace);
5444 5444
5445 // FunctionCallbackInfo::implicit_args_. 5445 // FunctionCallbackInfo::implicit_args_.
5446 __ mov(ApiParameterOperand(2), scratch); 5446 __ mov(ApiParameterOperand(2), scratch);
5447 __ add(scratch, Immediate((argc() + FCA::kArgsLength - 1) * kPointerSize)); 5447 __ add(scratch, Immediate((argc() + FCA::kArgsLength - 1) * kPointerSize));
5448 // FunctionCallbackInfo::values_. 5448 // FunctionCallbackInfo::values_.
5449 __ mov(ApiParameterOperand(3), scratch); 5449 __ mov(ApiParameterOperand(3), scratch);
5450 // FunctionCallbackInfo::length_. 5450 // FunctionCallbackInfo::length_.
5451 __ Move(ApiParameterOperand(4), Immediate(argc())); 5451 __ Move(ApiParameterOperand(4), Immediate(argc));
5452 // FunctionCallbackInfo::is_construct_call_. 5452 // FunctionCallbackInfo::is_construct_call_.
5453 __ Move(ApiParameterOperand(5), Immediate(0)); 5453 __ Move(ApiParameterOperand(5), Immediate(0));
5454 5454
5455 // v8::InvocationCallback's argument. 5455 // v8::InvocationCallback's argument.
5456 __ lea(scratch, ApiParameterOperand(2)); 5456 __ lea(scratch, ApiParameterOperand(2));
5457 __ mov(ApiParameterOperand(0), scratch); 5457 __ mov(ApiParameterOperand(0), scratch);
5458 5458
5459 ExternalReference thunk_ref = 5459 ExternalReference thunk_ref =
5460 ExternalReference::invoke_function_callback(masm->isolate()); 5460 ExternalReference::invoke_function_callback(masm->isolate());
5461 5461
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
5529 return_value_operand, NULL); 5529 return_value_operand, NULL);
5530 } 5530 }
5531 5531
5532 5532
5533 #undef __ 5533 #undef __
5534 5534
5535 } // namespace internal 5535 } // namespace internal
5536 } // namespace v8 5536 } // namespace v8
5537 5537
5538 #endif // V8_TARGET_ARCH_X87 5538 #endif // V8_TARGET_ARCH_X87
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