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

Side by Side Diff: src/ia32/code-stubs-ia32.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 | « src/crankshaft/hydrogen.cc ('k') | src/ic/arm/handler-compiler-arm.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_IA32 5 #if V8_TARGET_ARCH_IA32
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 2762 matching lines...) Expand 10 before | Expand all | Expand 10 after
2773 2773
2774 // context save. 2774 // context save.
2775 __ push(context); 2775 __ push(context);
2776 2776
2777 // callee 2777 // callee
2778 __ push(callee); 2778 __ push(callee);
2779 2779
2780 // call data 2780 // call data
2781 __ push(call_data); 2781 __ push(call_data);
2782 2782
2783 Register scratch = call_data; 2783 // return value
2784 if (!call_data_undefined()) { 2784 __ push(Immediate(masm->isolate()->factory()->undefined_value()));
2785 // return value 2785 // return value default
2786 __ push(Immediate(masm->isolate()->factory()->undefined_value())); 2786 __ push(Immediate(masm->isolate()->factory()->undefined_value()));
2787 // return value default
2788 __ push(Immediate(masm->isolate()->factory()->undefined_value()));
2789 } else {
2790 // return value
2791 __ push(scratch);
2792 // return value default
2793 __ push(scratch);
2794 }
2795 // isolate 2787 // isolate
2796 __ push(Immediate(reinterpret_cast<int>(masm->isolate()))); 2788 __ push(Immediate(reinterpret_cast<int>(masm->isolate())));
2797 // holder 2789 // holder
2798 __ push(holder); 2790 __ push(holder);
2799 2791
2792 Register scratch = call_data;
2800 __ mov(scratch, esp); 2793 __ mov(scratch, esp);
2801 2794
2802 // push return address 2795 // push return address
2803 __ push(return_address); 2796 __ push(return_address);
2804 2797
2805 if (!is_lazy()) { 2798 if (!is_lazy()) {
2806 // load context from callee 2799 // load context from callee
2807 __ mov(context, FieldOperand(callee, JSFunction::kContextOffset)); 2800 __ mov(context, FieldOperand(callee, JSFunction::kContextOffset));
2808 } 2801 }
2809 2802
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
2926 kStackUnwindSpace, nullptr, return_value_operand, 2919 kStackUnwindSpace, nullptr, return_value_operand,
2927 NULL); 2920 NULL);
2928 } 2921 }
2929 2922
2930 #undef __ 2923 #undef __
2931 2924
2932 } // namespace internal 2925 } // namespace internal
2933 } // namespace v8 2926 } // namespace v8
2934 2927
2935 #endif // V8_TARGET_ARCH_IA32 2928 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/ic/arm/handler-compiler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698