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

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

Issue 1266013006: [stubs] Unify (and optimize) implementation of ToObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add missing support for %_ToObject in TurboFan and Crankshaft. Created 5 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 | « src/interface-descriptors.h ('k') | src/macros.py » ('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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/interface-descriptors.h" 7 #include "src/interface-descriptors.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 } 148 }
149 149
150 150
151 void InstanceofDescriptor::InitializePlatformSpecific( 151 void InstanceofDescriptor::InitializePlatformSpecific(
152 CallInterfaceDescriptorData* data) { 152 CallInterfaceDescriptorData* data) {
153 Register registers[] = {left(), right()}; 153 Register registers[] = {left(), right()};
154 data->InitializePlatformSpecific(arraysize(registers), registers); 154 data->InitializePlatformSpecific(arraysize(registers), registers);
155 } 155 }
156 156
157 157
158 void ToObjectDescriptor::InitializePlatformSpecific(
159 CallInterfaceDescriptorData* data) {
160 Register registers[] = {ReceiverRegister()};
161 data->InitializePlatformSpecific(arraysize(registers), registers);
162 }
163
164
158 void MathPowTaggedDescriptor::InitializePlatformSpecific( 165 void MathPowTaggedDescriptor::InitializePlatformSpecific(
159 CallInterfaceDescriptorData* data) { 166 CallInterfaceDescriptorData* data) {
160 Register registers[] = {exponent()}; 167 Register registers[] = {exponent()};
161 data->InitializePlatformSpecific(arraysize(registers), registers); 168 data->InitializePlatformSpecific(arraysize(registers), registers);
162 } 169 }
163 170
164 171
165 void MathPowIntegerDescriptor::InitializePlatformSpecific( 172 void MathPowIntegerDescriptor::InitializePlatformSpecific(
166 CallInterfaceDescriptorData* data) { 173 CallInterfaceDescriptorData* data) {
167 Register registers[] = {exponent()}; 174 Register registers[] = {exponent()};
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 AnyTagged(), Type::Undefined(), 5, isolate->interface_descriptor_zone()); 418 AnyTagged(), Type::Undefined(), 5, isolate->interface_descriptor_zone());
412 function->InitParameter(0, Type::Receiver()); 419 function->InitParameter(0, Type::Receiver());
413 function->InitParameter(1, SmiType()); 420 function->InitParameter(1, SmiType());
414 function->InitParameter(2, AnyTagged()); 421 function->InitParameter(2, AnyTagged());
415 function->InitParameter(3, AnyTagged()); 422 function->InitParameter(3, AnyTagged());
416 function->InitParameter(4, AnyTagged()); 423 function->InitParameter(4, AnyTagged());
417 return function; 424 return function;
418 } 425 }
419 } // namespace internal 426 } // namespace internal
420 } // namespace v8 427 } // namespace v8
OLDNEW
« no previous file with comments | « src/interface-descriptors.h ('k') | src/macros.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698