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

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

Issue 1894953004: Add HasProperty code stub that tries simple lookups or jumps to runtime otherwise. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebasing Created 4 years, 7 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/interpreter/interpreter.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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 Register registers[] = {LeftRegister(), RightRegister()}; 196 Register registers[] = {LeftRegister(), RightRegister()};
197 data->InitializePlatformSpecific(arraysize(registers), registers); 197 data->InitializePlatformSpecific(arraysize(registers), registers);
198 } 198 }
199 199
200 void TypeConversionDescriptor::InitializePlatformSpecific( 200 void TypeConversionDescriptor::InitializePlatformSpecific(
201 CallInterfaceDescriptorData* data) { 201 CallInterfaceDescriptorData* data) {
202 Register registers[] = {ArgumentRegister()}; 202 Register registers[] = {ArgumentRegister()};
203 data->InitializePlatformSpecific(arraysize(registers), registers); 203 data->InitializePlatformSpecific(arraysize(registers), registers);
204 } 204 }
205 205
206 void HasPropertyDescriptor::InitializePlatformSpecific(
207 CallInterfaceDescriptorData* data) {
208 Register registers[] = {KeyRegister(), ObjectRegister()};
209 data->InitializePlatformSpecific(arraysize(registers), registers);
210 }
206 211
207 void MathPowTaggedDescriptor::InitializePlatformSpecific( 212 void MathPowTaggedDescriptor::InitializePlatformSpecific(
208 CallInterfaceDescriptorData* data) { 213 CallInterfaceDescriptorData* data) {
209 Register registers[] = {exponent()}; 214 Register registers[] = {exponent()};
210 data->InitializePlatformSpecific(arraysize(registers), registers); 215 data->InitializePlatformSpecific(arraysize(registers), registers);
211 } 216 }
212 217
213 218
214 void MathPowIntegerDescriptor::InitializePlatformSpecific( 219 void MathPowIntegerDescriptor::InitializePlatformSpecific(
215 CallInterfaceDescriptorData* data) { 220 CallInterfaceDescriptorData* data) {
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 Type::Function(AnyTagged(zone), Type::Undefined(), 4, zone)->AsFunction(); 530 Type::Function(AnyTagged(zone), Type::Undefined(), 4, zone)->AsFunction();
526 function->InitParameter(kAccumulatorParameter, AnyTagged(zone)); 531 function->InitParameter(kAccumulatorParameter, AnyTagged(zone));
527 function->InitParameter(kBytecodeOffsetParameter, UntaggedIntegral32(zone)); 532 function->InitParameter(kBytecodeOffsetParameter, UntaggedIntegral32(zone));
528 function->InitParameter(kBytecodeArrayParameter, AnyTagged(zone)); 533 function->InitParameter(kBytecodeArrayParameter, AnyTagged(zone));
529 function->InitParameter(kDispatchTableParameter, AnyTagged(zone)); 534 function->InitParameter(kDispatchTableParameter, AnyTagged(zone));
530 return function; 535 return function;
531 } 536 }
532 537
533 } // namespace internal 538 } // namespace internal
534 } // namespace v8 539 } // namespace v8
OLDNEW
« no previous file with comments | « src/interface-descriptors.h ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698