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

Side by Side Diff: src/ic/s390/handler-compiler-s390.cc

Issue 1775933005: Revert of Rework CallApi*Stubs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « src/ic/ppc/handler-compiler-ppc.cc ('k') | src/ic/x64/handler-compiler-x64.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_S390 5 #if V8_TARGET_ARCH_S390
6 6
7 #include "src/ic/handler-compiler.h" 7 #include "src/ic/handler-compiler.h"
8 8
9 #include "src/field-type.h" 9 #include "src/field-type.h"
10 #include "src/ic/call-optimization.h" 10 #include "src/ic/call-optimization.h"
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 DCHECK(!receiver.is(scratch_in)); 224 DCHECK(!receiver.is(scratch_in));
225 __ Push(receiver); 225 __ Push(receiver);
226 // Write the arguments to stack frame. 226 // Write the arguments to stack frame.
227 if (is_store) { 227 if (is_store) {
228 DCHECK(!receiver.is(store_parameter)); 228 DCHECK(!receiver.is(store_parameter));
229 DCHECK(!scratch_in.is(store_parameter)); 229 DCHECK(!scratch_in.is(store_parameter));
230 __ Push(store_parameter); 230 __ Push(store_parameter);
231 } 231 }
232 DCHECK(optimization.is_simple_api_call()); 232 DCHECK(optimization.is_simple_api_call());
233 233
234 // Abi for CallApiCallbackStub. 234 // Abi for CallApiFunctionStub.
235 Register callee = r2; 235 Register callee = r2;
236 Register data = r6; 236 Register data = r6;
237 Register holder = r4; 237 Register holder = r4;
238 Register api_function_address = r3; 238 Register api_function_address = r3;
239 239
240 // Put callee in place. 240 // Put callee in place.
241 __ LoadAccessor(callee, accessor_holder, accessor_index, 241 __ LoadAccessor(callee, accessor_holder, accessor_index,
242 is_store ? ACCESSOR_SETTER : ACCESSOR_GETTER); 242 is_store ? ACCESSOR_SETTER : ACCESSOR_GETTER);
243 243
244 // Put holder in place. 244 // Put holder in place.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 } 293 }
294 294
295 // Put api_function_address in place. 295 // Put api_function_address in place.
296 Address function_address = v8::ToCData<Address>(api_call_info->callback()); 296 Address function_address = v8::ToCData<Address>(api_call_info->callback());
297 ApiFunction fun(function_address); 297 ApiFunction fun(function_address);
298 ExternalReference::Type type = ExternalReference::DIRECT_API_CALL; 298 ExternalReference::Type type = ExternalReference::DIRECT_API_CALL;
299 ExternalReference ref = ExternalReference(&fun, type, masm->isolate()); 299 ExternalReference ref = ExternalReference(&fun, type, masm->isolate());
300 __ mov(api_function_address, Operand(ref)); 300 __ mov(api_function_address, Operand(ref));
301 301
302 // Jump to stub. 302 // Jump to stub.
303 CallApiCallbackStub stub(isolate, is_store, call_data_undefined, 303 CallApiAccessorStub stub(isolate, is_store, call_data_undefined,
304 !optimization.is_constant_call()); 304 !optimization.is_constant_call());
305 __ TailCallStub(&stub); 305 __ TailCallStub(&stub);
306 } 306 }
307 307
308 static void StoreIC_PushArgs(MacroAssembler* masm) { 308 static void StoreIC_PushArgs(MacroAssembler* masm) {
309 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), 309 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(),
310 StoreDescriptor::ValueRegister(), 310 StoreDescriptor::ValueRegister(),
311 VectorStoreICDescriptor::SlotRegister(), 311 VectorStoreICDescriptor::SlotRegister(),
312 VectorStoreICDescriptor::VectorRegister()); 312 VectorStoreICDescriptor::VectorRegister());
313 } 313 }
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 749
750 // Return the generated code. 750 // Return the generated code.
751 return GetCode(kind(), Code::NORMAL, name); 751 return GetCode(kind(), Code::NORMAL, name);
752 } 752 }
753 753
754 #undef __ 754 #undef __
755 } // namespace internal 755 } // namespace internal
756 } // namespace v8 756 } // namespace v8
757 757
758 #endif // V8_TARGET_ARCH_ARM 758 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/ic/ppc/handler-compiler-ppc.cc ('k') | src/ic/x64/handler-compiler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698