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

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

Issue 1816553002: Introduce a code stub version of Array.prototype.push (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments Created 4 years, 9 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 data->InitializePlatformSpecific(0, nullptr); 323 data->InitializePlatformSpecific(0, nullptr);
324 } 324 }
325 325
326 326
327 void GrowArrayElementsDescriptor::InitializePlatformSpecific( 327 void GrowArrayElementsDescriptor::InitializePlatformSpecific(
328 CallInterfaceDescriptorData* data) { 328 CallInterfaceDescriptorData* data) {
329 Register registers[] = {ObjectRegister(), KeyRegister()}; 329 Register registers[] = {ObjectRegister(), KeyRegister()};
330 data->InitializePlatformSpecific(arraysize(registers), registers); 330 data->InitializePlatformSpecific(arraysize(registers), registers);
331 } 331 }
332 332
333 FunctionType* FastArrayPushDescriptor::BuildCallInterfaceDescriptorFunctionType(
334 Isolate* isolate, int paramater_count) {
335 Zone* zone = isolate->interface_descriptor_zone();
336 FunctionType* function =
337 Type::Function(AnyTagged(zone), AnyTagged(zone), 1, zone)->AsFunction();
338 function->InitParameter(0, UntaggedIntegral32(zone)); // actual #arguments
339 return function;
340 }
341
333 FunctionType* 342 FunctionType*
334 FastCloneRegExpDescriptor::BuildCallInterfaceDescriptorFunctionType( 343 FastCloneRegExpDescriptor::BuildCallInterfaceDescriptorFunctionType(
335 Isolate* isolate, int paramater_count) { 344 Isolate* isolate, int paramater_count) {
336 Zone* zone = isolate->interface_descriptor_zone(); 345 Zone* zone = isolate->interface_descriptor_zone();
337 FunctionType* function = 346 FunctionType* function =
338 Type::Function(AnyTagged(zone), Type::Undefined(), 4, zone)->AsFunction(); 347 Type::Function(AnyTagged(zone), Type::Undefined(), 4, zone)->AsFunction();
339 function->InitParameter(0, AnyTagged(zone)); // closure 348 function->InitParameter(0, AnyTagged(zone)); // closure
340 function->InitParameter(1, SmiType(zone)); // literal_index 349 function->InitParameter(1, SmiType(zone)); // literal_index
341 function->InitParameter(2, AnyTagged(zone)); // pattern 350 function->InitParameter(2, AnyTagged(zone)); // pattern
342 function->InitParameter(3, AnyTagged(zone)); // flags 351 function->InitParameter(3, AnyTagged(zone)); // flags
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 function->InitParameter(kAccumulatorParameter, AnyTagged(zone)); 532 function->InitParameter(kAccumulatorParameter, AnyTagged(zone));
524 function->InitParameter(kRegisterFileParameter, ExternalPointer(zone)); 533 function->InitParameter(kRegisterFileParameter, ExternalPointer(zone));
525 function->InitParameter(kBytecodeOffsetParameter, UntaggedIntegral32(zone)); 534 function->InitParameter(kBytecodeOffsetParameter, UntaggedIntegral32(zone));
526 function->InitParameter(kBytecodeArrayParameter, AnyTagged(zone)); 535 function->InitParameter(kBytecodeArrayParameter, AnyTagged(zone));
527 function->InitParameter(kDispatchTableParameter, AnyTagged(zone)); 536 function->InitParameter(kDispatchTableParameter, AnyTagged(zone));
528 return function; 537 return function;
529 } 538 }
530 539
531 } // namespace internal 540 } // namespace internal
532 } // namespace v8 541 } // 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