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

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

Issue 913073003: [es6] implement Reflect.apply() & Reflect.construct() (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 5 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 2049 matching lines...) Expand 10 before | Expand all | Expand 10 after
2060 } 2060 }
2061 2061
2062 2062
2063 void CallConstructStub::Generate(MacroAssembler* masm) { 2063 void CallConstructStub::Generate(MacroAssembler* masm) {
2064 // rax : number of arguments 2064 // rax : number of arguments
2065 // rbx : feedback vector 2065 // rbx : feedback vector
2066 // rdx : (only if rbx is not the megamorphic symbol) slot in feedback 2066 // rdx : (only if rbx is not the megamorphic symbol) slot in feedback
2067 // vector (Smi) 2067 // vector (Smi)
2068 // rdi : constructor function 2068 // rdi : constructor function
2069 Label slow, non_function_call; 2069 Label slow, non_function_call;
2070
2071 // Check that function is not a smi. 2070 // Check that function is not a smi.
2072 __ JumpIfSmi(rdi, &non_function_call); 2071 __ JumpIfSmi(rdi, &non_function_call);
2073 // Check that function is a JSFunction. 2072 // Check that function is a JSFunction.
2074 __ CmpObjectType(rdi, JS_FUNCTION_TYPE, rcx); 2073 __ CmpObjectType(rdi, JS_FUNCTION_TYPE, rcx);
2075 __ j(not_equal, &slow); 2074 __ j(not_equal, &slow);
2076 2075
2077 if (RecordCallTarget()) { 2076 if (RecordCallTarget()) {
2078 GenerateRecordCallTarget(masm); 2077 GenerateRecordCallTarget(masm);
2079 2078
2080 __ SmiToInteger32(rdx, rdx); 2079 __ SmiToInteger32(rdx, rdx);
(...skipping 3067 matching lines...) Expand 10 before | Expand all | Expand 10 after
5148 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, getter_arg, 5147 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, getter_arg,
5149 kStackSpace, nullptr, return_value_operand, NULL); 5148 kStackSpace, nullptr, return_value_operand, NULL);
5150 } 5149 }
5151 5150
5152 5151
5153 #undef __ 5152 #undef __
5154 5153
5155 } } // namespace v8::internal 5154 } } // namespace v8::internal
5156 5155
5157 #endif // V8_TARGET_ARCH_X64 5156 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698