| OLD | NEW | 
|     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  Loading... | 
|  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  Loading... | 
|  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 | 
| OLD | NEW |