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

Side by Side Diff: src/interface-descriptors.cc

Issue 1347913003: [stubs] Refactor StringCompareStub and use it for HStringCompareAndBranch. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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/interface-descriptors.h ('k') | src/mips/code-stubs-mips.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 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/interface-descriptors.h" 5 #include "src/interface-descriptors.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 9
10 namespace { 10 namespace {
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 } 160 }
161 161
162 162
163 void InstanceOfDescriptor::InitializePlatformSpecific( 163 void InstanceOfDescriptor::InitializePlatformSpecific(
164 CallInterfaceDescriptorData* data) { 164 CallInterfaceDescriptorData* data) {
165 Register registers[] = {LeftRegister(), RightRegister()}; 165 Register registers[] = {LeftRegister(), RightRegister()};
166 data->InitializePlatformSpecific(arraysize(registers), registers); 166 data->InitializePlatformSpecific(arraysize(registers), registers);
167 } 167 }
168 168
169 169
170 void StringCompareDescriptor::InitializePlatformSpecific(
171 CallInterfaceDescriptorData* data) {
172 Register registers[] = {LeftRegister(), RightRegister()};
173 data->InitializePlatformSpecific(arraysize(registers), registers);
174 }
175
176
170 void ToStringDescriptor::InitializePlatformSpecific( 177 void ToStringDescriptor::InitializePlatformSpecific(
171 CallInterfaceDescriptorData* data) { 178 CallInterfaceDescriptorData* data) {
172 Register registers[] = {ReceiverRegister()}; 179 Register registers[] = {ReceiverRegister()};
173 data->InitializePlatformSpecific(arraysize(registers), registers); 180 data->InitializePlatformSpecific(arraysize(registers), registers);
174 } 181 }
175 182
176 183
177 void ToObjectDescriptor::InitializePlatformSpecific( 184 void ToObjectDescriptor::InitializePlatformSpecific(
178 CallInterfaceDescriptorData* data) { 185 CallInterfaceDescriptorData* data) {
179 Register registers[] = {ReceiverRegister()}; 186 Register registers[] = {ReceiverRegister()};
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 5, zone); 492 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 5, zone);
486 function->InitParameter(0, Type::Receiver()); 493 function->InitParameter(0, Type::Receiver());
487 function->InitParameter(1, SmiType(zone)); 494 function->InitParameter(1, SmiType(zone));
488 function->InitParameter(2, AnyTagged(zone)); 495 function->InitParameter(2, AnyTagged(zone));
489 function->InitParameter(3, AnyTagged(zone)); 496 function->InitParameter(3, AnyTagged(zone));
490 function->InitParameter(4, AnyTagged(zone)); 497 function->InitParameter(4, AnyTagged(zone));
491 return function; 498 return function;
492 } 499 }
493 } // namespace internal 500 } // namespace internal
494 } // namespace v8 501 } // namespace v8
OLDNEW
« no previous file with comments | « src/interface-descriptors.h ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698