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

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

Issue 2044113002: Turn Function.prototype.bind into a hydrogen stub optimized for the common case (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: arm64 Created 4 years, 6 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 data->InitializePlatformSpecific(0, nullptr); 302 data->InitializePlatformSpecific(0, nullptr);
303 } 303 }
304 304
305 305
306 void GrowArrayElementsDescriptor::InitializePlatformSpecific( 306 void GrowArrayElementsDescriptor::InitializePlatformSpecific(
307 CallInterfaceDescriptorData* data) { 307 CallInterfaceDescriptorData* data) {
308 Register registers[] = {ObjectRegister(), KeyRegister()}; 308 Register registers[] = {ObjectRegister(), KeyRegister()};
309 data->InitializePlatformSpecific(arraysize(registers), registers); 309 data->InitializePlatformSpecific(arraysize(registers), registers);
310 } 310 }
311 311
312 FunctionType* FastArrayPushDescriptor::BuildCallInterfaceDescriptorFunctionType( 312 FunctionType*
313 VarArgFunctionDescriptor::BuildCallInterfaceDescriptorFunctionType(
313 Isolate* isolate, int paramater_count) { 314 Isolate* isolate, int paramater_count) {
314 Zone* zone = isolate->interface_descriptor_zone(); 315 Zone* zone = isolate->interface_descriptor_zone();
315 FunctionType* function = 316 FunctionType* function =
316 Type::Function(AnyTagged(zone), AnyTagged(zone), 1, zone)->AsFunction(); 317 Type::Function(AnyTagged(zone), AnyTagged(zone), 1, zone)->AsFunction();
317 function->InitParameter(0, UntaggedIntegral32(zone)); // actual #arguments 318 function->InitParameter(0, UntaggedIntegral32(zone)); // actual #arguments
318 return function; 319 return function;
319 } 320 }
320 321
321 FunctionType* 322 FunctionType*
322 FastCloneRegExpDescriptor::BuildCallInterfaceDescriptorFunctionType( 323 FastCloneRegExpDescriptor::BuildCallInterfaceDescriptorFunctionType(
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 Type::Function(AnyTagged(zone), Type::Undefined(), 4, zone)->AsFunction(); 538 Type::Function(AnyTagged(zone), Type::Undefined(), 4, zone)->AsFunction();
538 function->InitParameter(kAccumulatorParameter, AnyTagged(zone)); 539 function->InitParameter(kAccumulatorParameter, AnyTagged(zone));
539 function->InitParameter(kBytecodeOffsetParameter, UntaggedIntegral32(zone)); 540 function->InitParameter(kBytecodeOffsetParameter, UntaggedIntegral32(zone));
540 function->InitParameter(kBytecodeArrayParameter, AnyTagged(zone)); 541 function->InitParameter(kBytecodeArrayParameter, AnyTagged(zone));
541 function->InitParameter(kDispatchTableParameter, AnyTagged(zone)); 542 function->InitParameter(kDispatchTableParameter, AnyTagged(zone));
542 return function; 543 return function;
543 } 544 }
544 545
545 } // namespace internal 546 } // namespace internal
546 } // namespace v8 547 } // 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