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

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

Issue 2005213004: S390: [stubs] Convert Internal/ArraySingleArgumentsConstructor to a TurboFan stub (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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/s390/interface-descriptors-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_S390 5 #if V8_TARGET_ARCH_S390
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 if (constant_stack_parameter_count == 0) { 45 if (constant_stack_parameter_count == 0) {
46 descriptor->Initialize(deopt_handler, constant_stack_parameter_count, 46 descriptor->Initialize(deopt_handler, constant_stack_parameter_count,
47 JS_FUNCTION_STUB_MODE); 47 JS_FUNCTION_STUB_MODE);
48 } else { 48 } else {
49 descriptor->Initialize(r2, deopt_handler, constant_stack_parameter_count, 49 descriptor->Initialize(r2, deopt_handler, constant_stack_parameter_count,
50 JS_FUNCTION_STUB_MODE); 50 JS_FUNCTION_STUB_MODE);
51 } 51 }
52 } 52 }
53 53
54 void ArraySingleArgumentConstructorStub::InitializeDescriptor(
55 CodeStubDescriptor* descriptor) {
56 InitializeArrayConstructorDescriptor(isolate(), descriptor, 1);
57 }
58
59 void ArrayNArgumentsConstructorStub::InitializeDescriptor( 54 void ArrayNArgumentsConstructorStub::InitializeDescriptor(
60 CodeStubDescriptor* descriptor) { 55 CodeStubDescriptor* descriptor) {
61 InitializeArrayConstructorDescriptor(isolate(), descriptor, -1); 56 InitializeArrayConstructorDescriptor(isolate(), descriptor, -1);
62 } 57 }
63 58
64 void FastArrayPushStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { 59 void FastArrayPushStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
65 Address deopt_handler = Runtime::FunctionForId(Runtime::kArrayPush)->entry; 60 Address deopt_handler = Runtime::FunctionForId(Runtime::kArrayPush)->entry;
66 descriptor->Initialize(r2, deopt_handler, -1, JS_FUNCTION_STUB_MODE); 61 descriptor->Initialize(r2, deopt_handler, -1, JS_FUNCTION_STUB_MODE);
67 } 62 }
68 63
69 void InternalArraySingleArgumentConstructorStub::InitializeDescriptor(
70 CodeStubDescriptor* descriptor) {
71 InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, 1);
72 }
73
74 void InternalArrayNArgumentsConstructorStub::InitializeDescriptor( 64 void InternalArrayNArgumentsConstructorStub::InitializeDescriptor(
75 CodeStubDescriptor* descriptor) { 65 CodeStubDescriptor* descriptor) {
76 InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, -1); 66 InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, -1);
77 } 67 }
78 68
79 #define __ ACCESS_MASM(masm) 69 #define __ ACCESS_MASM(masm)
80 70
81 static void EmitIdenticalObjectComparison(MacroAssembler* masm, Label* slow, 71 static void EmitIdenticalObjectComparison(MacroAssembler* masm, Label* slow,
82 Condition cond); 72 Condition cond);
83 static void EmitSmiNonsmiComparison(MacroAssembler* masm, Register lhs, 73 static void EmitSmiNonsmiComparison(MacroAssembler* masm, Register lhs,
(...skipping 5511 matching lines...) Expand 10 before | Expand all | Expand 10 after
5595 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, 5585 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref,
5596 kStackUnwindSpace, NULL, return_value_operand, NULL); 5586 kStackUnwindSpace, NULL, return_value_operand, NULL);
5597 } 5587 }
5598 5588
5599 #undef __ 5589 #undef __
5600 5590
5601 } // namespace internal 5591 } // namespace internal
5602 } // namespace v8 5592 } // namespace v8
5603 5593
5604 #endif // V8_TARGET_ARCH_S390 5594 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « no previous file | src/s390/interface-descriptors-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698