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

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

Issue 2837283004: PPC/s390: [stubs] Drop CallApiCallbackStub::call_data_undefined optimization. (Closed)
Patch Set: 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/ic/s390/handler-compiler-s390.cc ('k') | src/s390/code-stubs-s390.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 2928 matching lines...) Expand 10 before | Expand all | Expand 10 after
2939 __ LoadP(context, FieldMemOperand(callee, JSFunction::kContextOffset)); 2939 __ LoadP(context, FieldMemOperand(callee, JSFunction::kContextOffset));
2940 } 2940 }
2941 2941
2942 // callee 2942 // callee
2943 __ push(callee); 2943 __ push(callee);
2944 2944
2945 // call data 2945 // call data
2946 __ push(call_data); 2946 __ push(call_data);
2947 2947
2948 Register scratch = call_data; 2948 Register scratch = call_data;
2949 if (!call_data_undefined()) { 2949 __ LoadRoot(scratch, Heap::kUndefinedValueRootIndex);
2950 __ LoadRoot(scratch, Heap::kUndefinedValueRootIndex);
2951 }
2952 // return value 2950 // return value
2953 __ push(scratch); 2951 __ push(scratch);
2954 // return value default 2952 // return value default
2955 __ push(scratch); 2953 __ push(scratch);
2956 // isolate 2954 // isolate
2957 __ mov(scratch, Operand(ExternalReference::isolate_address(masm->isolate()))); 2955 __ mov(scratch, Operand(ExternalReference::isolate_address(masm->isolate())));
2958 __ push(scratch); 2956 __ push(scratch);
2959 // holder 2957 // holder
2960 __ push(holder); 2958 __ push(holder);
2961 2959
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
3105 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize); 3103 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize);
3106 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, 3104 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref,
3107 kStackUnwindSpace, NULL, return_value_operand, NULL); 3105 kStackUnwindSpace, NULL, return_value_operand, NULL);
3108 } 3106 }
3109 3107
3110 #undef __ 3108 #undef __
3111 } // namespace internal 3109 } // namespace internal
3112 } // namespace v8 3110 } // namespace v8
3113 3111
3114 #endif // V8_TARGET_ARCH_PPC 3112 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ic/s390/handler-compiler-s390.cc ('k') | src/s390/code-stubs-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698