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

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

Issue 2044113002: Turn Function.prototype.bind into a hydrogen stub optimized for the common case (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: arm64 Created 4 years, 6 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/runtime/runtime.h ('k') | 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void ArrayNArgumentsConstructorStub::InitializeDescriptor( 54 void ArrayNArgumentsConstructorStub::InitializeDescriptor(
55 CodeStubDescriptor* descriptor) { 55 CodeStubDescriptor* descriptor) {
56 InitializeArrayConstructorDescriptor(isolate(), descriptor, -1); 56 InitializeArrayConstructorDescriptor(isolate(), descriptor, -1);
57 } 57 }
58 58
59 void FastArrayPushStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { 59 void FastArrayPushStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
60 Address deopt_handler = Runtime::FunctionForId(Runtime::kArrayPush)->entry; 60 Address deopt_handler = Runtime::FunctionForId(Runtime::kArrayPush)->entry;
61 descriptor->Initialize(r2, deopt_handler, -1, JS_FUNCTION_STUB_MODE); 61 descriptor->Initialize(r2, deopt_handler, -1, JS_FUNCTION_STUB_MODE);
62 } 62 }
63 63
64 void FastFunctionBindStub::InitializeDescriptor(
65 CodeStubDescriptor* descriptor) {
66 Address deopt_handler = Runtime::FunctionForId(Runtime::kFunctionBind)->entry;
67 descriptor->Initialize(r2, deopt_handler, -1, JS_FUNCTION_STUB_MODE);
68 }
69
64 void InternalArrayNArgumentsConstructorStub::InitializeDescriptor( 70 void InternalArrayNArgumentsConstructorStub::InitializeDescriptor(
65 CodeStubDescriptor* descriptor) { 71 CodeStubDescriptor* descriptor) {
66 InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, -1); 72 InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, -1);
67 } 73 }
68 74
69 #define __ ACCESS_MASM(masm) 75 #define __ ACCESS_MASM(masm)
70 76
71 static void EmitIdenticalObjectComparison(MacroAssembler* masm, Label* slow, 77 static void EmitIdenticalObjectComparison(MacroAssembler* masm, Label* slow,
72 Condition cond); 78 Condition cond);
73 static void EmitSmiNonsmiComparison(MacroAssembler* masm, Register lhs, 79 static void EmitSmiNonsmiComparison(MacroAssembler* masm, Register lhs,
(...skipping 5526 matching lines...) Expand 10 before | Expand all | Expand 10 after
5600 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, 5606 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref,
5601 kStackUnwindSpace, NULL, return_value_operand, NULL); 5607 kStackUnwindSpace, NULL, return_value_operand, NULL);
5602 } 5608 }
5603 5609
5604 #undef __ 5610 #undef __
5605 5611
5606 } // namespace internal 5612 } // namespace internal
5607 } // namespace v8 5613 } // namespace v8
5608 5614
5609 #endif // V8_TARGET_ARCH_S390 5615 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | src/s390/interface-descriptors-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698