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

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

Issue 2838143003: [stubs] Drop CallApiCallbackStub::call_data_undefined optimization. (Closed)
Patch Set: Fix handler-compiler for remaining archs. Created 3 years, 8 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 | src/arm64/code-stubs-arm64.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 #if V8_TARGET_ARCH_ARM 5 #if V8_TARGET_ARCH_ARM
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 8
9 #include "src/api-arguments.h" 9 #include "src/api-arguments.h"
10 #include "src/assembler-inl.h" 10 #include "src/assembler-inl.h"
(...skipping 2781 matching lines...) Expand 10 before | Expand all | Expand 10 after
2792 __ ldr(context, FieldMemOperand(callee, JSFunction::kContextOffset)); 2792 __ ldr(context, FieldMemOperand(callee, JSFunction::kContextOffset));
2793 } 2793 }
2794 2794
2795 // callee 2795 // callee
2796 __ push(callee); 2796 __ push(callee);
2797 2797
2798 // call data 2798 // call data
2799 __ push(call_data); 2799 __ push(call_data);
2800 2800
2801 Register scratch = call_data; 2801 Register scratch = call_data;
2802 if (!call_data_undefined()) { 2802 __ LoadRoot(scratch, Heap::kUndefinedValueRootIndex);
2803 __ LoadRoot(scratch, Heap::kUndefinedValueRootIndex);
2804 }
2805 // return value 2803 // return value
2806 __ push(scratch); 2804 __ push(scratch);
2807 // return value default 2805 // return value default
2808 __ push(scratch); 2806 __ push(scratch);
2809 // isolate 2807 // isolate
2810 __ mov(scratch, Operand(ExternalReference::isolate_address(masm->isolate()))); 2808 __ mov(scratch, Operand(ExternalReference::isolate_address(masm->isolate())));
2811 __ push(scratch); 2809 __ push(scratch);
2812 // holder 2810 // holder
2813 __ push(holder); 2811 __ push(holder);
2814 2812
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
2921 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, 2919 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref,
2922 kStackUnwindSpace, NULL, return_value_operand, NULL); 2920 kStackUnwindSpace, NULL, return_value_operand, NULL);
2923 } 2921 }
2924 2922
2925 #undef __ 2923 #undef __
2926 2924
2927 } // namespace internal 2925 } // namespace internal
2928 } // namespace v8 2926 } // namespace v8
2929 2927
2930 #endif // V8_TARGET_ARCH_ARM 2928 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/code-stubs-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698