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

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

Issue 435603007: X87: Unify InstanceofStub interface descriptors (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@bleeding_edge
Patch Set: Created 6 years, 4 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 77 }
78 78
79 79
80 void CreateAllocationSiteStub::InitializeInterfaceDescriptor( 80 void CreateAllocationSiteStub::InitializeInterfaceDescriptor(
81 CodeStubInterfaceDescriptor* descriptor) { 81 CodeStubInterfaceDescriptor* descriptor) {
82 Register registers[] = { esi, ebx, edx }; 82 Register registers[] = { esi, ebx, edx };
83 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); 83 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers);
84 } 84 }
85 85
86 86
87 void InstanceofStub::InitializeInterfaceDescriptor(
88 Isolate* isolate, CodeStubInterfaceDescriptor* descriptor) {
89 Register registers[] = {esi, left(), right()};
90 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers);
91 }
92
93
94 void CallFunctionStub::InitializeInterfaceDescriptor( 87 void CallFunctionStub::InitializeInterfaceDescriptor(
95 Isolate* isolate, CodeStubInterfaceDescriptor* descriptor) { 88 CodeStubInterfaceDescriptor* descriptor) {
96 Register registers[] = {esi, edi}; 89 Register registers[] = {esi, edi};
97 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); 90 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers);
98 } 91 }
99 92
100 93
101 void CallConstructStub::InitializeInterfaceDescriptor( 94 void CallConstructStub::InitializeInterfaceDescriptor(
102 Isolate* isolate, CodeStubInterfaceDescriptor* descriptor) { 95 CodeStubInterfaceDescriptor* descriptor) {
103 // eax : number of arguments 96 // eax : number of arguments
104 // ebx : feedback vector 97 // ebx : feedback vector
105 // edx : (only if ebx is not the megamorphic symbol) slot in feedback 98 // edx : (only if ebx is not the megamorphic symbol) slot in feedback
106 // vector (Smi) 99 // vector (Smi)
107 // edi : constructor function 100 // edi : constructor function
108 // TODO(turbofan): So far we don't gather type feedback and hence skip the 101 // TODO(turbofan): So far we don't gather type feedback and hence skip the
109 // slot parameter, but ArrayConstructStub needs the vector to be undefined. 102 // slot parameter, but ArrayConstructStub needs the vector to be undefined.
110 Register registers[] = {esi, eax, edi, ebx}; 103 Register registers[] = {esi, eax, edi, ebx};
111 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); 104 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers);
112 } 105 }
(...skipping 4539 matching lines...) Expand 10 before | Expand all | Expand 10 after
4652 Operand(ebp, 7 * kPointerSize), 4645 Operand(ebp, 7 * kPointerSize),
4653 NULL); 4646 NULL);
4654 } 4647 }
4655 4648
4656 4649
4657 #undef __ 4650 #undef __
4658 4651
4659 } } // namespace v8::internal 4652 } } // namespace v8::internal
4660 4653
4661 #endif // V8_TARGET_ARCH_X87 4654 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698