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

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

Issue 1816553002: Introduce a code stub version of Array.prototype.push (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Cleanup 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_X64 5 #if V8_TARGET_ARCH_X64
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/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 CodeStubDescriptor* descriptor) { 69 CodeStubDescriptor* descriptor) {
70 InitializeArrayConstructorDescriptor(isolate(), descriptor, -1); 70 InitializeArrayConstructorDescriptor(isolate(), descriptor, -1);
71 } 71 }
72 72
73 73
74 void InternalArrayNoArgumentConstructorStub::InitializeDescriptor( 74 void InternalArrayNoArgumentConstructorStub::InitializeDescriptor(
75 CodeStubDescriptor* descriptor) { 75 CodeStubDescriptor* descriptor) {
76 InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, 0); 76 InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, 0);
77 } 77 }
78 78
79 void FastArrayPushStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
80 Address deopt_handler = Runtime::FunctionForId(Runtime::kArrayPush)->entry;
81 descriptor->Initialize(rax, deopt_handler, -1, JS_FUNCTION_STUB_MODE);
82 }
79 83
80 void InternalArraySingleArgumentConstructorStub::InitializeDescriptor( 84 void InternalArraySingleArgumentConstructorStub::InitializeDescriptor(
81 CodeStubDescriptor* descriptor) { 85 CodeStubDescriptor* descriptor) {
82 InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, 1); 86 InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, 1);
83 } 87 }
84 88
85 89
86 void InternalArrayNArgumentsConstructorStub::InitializeDescriptor( 90 void InternalArrayNArgumentsConstructorStub::InitializeDescriptor(
87 CodeStubDescriptor* descriptor) { 91 CodeStubDescriptor* descriptor) {
88 InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, -1); 92 InitializeInternalArrayConstructorDescriptor(isolate(), descriptor, -1);
(...skipping 5495 matching lines...) Expand 10 before | Expand all | Expand 10 after
5584 NULL); 5588 NULL);
5585 } 5589 }
5586 5590
5587 5591
5588 #undef __ 5592 #undef __
5589 5593
5590 } // namespace internal 5594 } // namespace internal
5591 } // namespace v8 5595 } // namespace v8
5592 5596
5593 #endif // V8_TARGET_ARCH_X64 5597 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698