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

Side by Side Diff: src/arm/interface-descriptors-arm.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/arm/code-stubs-arm.cc ('k') | src/arm64/code-stubs-arm64.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/arm/interface-descriptors-arm.h" 5 #include "src/arm/interface-descriptors-arm.h"
6 6
7 #if V8_TARGET_ARCH_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 } 277 }
278 278
279 279
280 void InternalArrayConstructorDescriptor::InitializePlatformSpecific( 280 void InternalArrayConstructorDescriptor::InitializePlatformSpecific(
281 CallInterfaceDescriptorData* data) { 281 CallInterfaceDescriptorData* data) {
282 // stack param count needs (constructor pointer, and single argument) 282 // stack param count needs (constructor pointer, and single argument)
283 Register registers[] = {r1, r0}; 283 Register registers[] = {r1, r0};
284 data->InitializePlatformSpecific(arraysize(registers), registers); 284 data->InitializePlatformSpecific(arraysize(registers), registers);
285 } 285 }
286 286
287 void FastArrayPushDescriptor::InitializePlatformSpecific(
288 CallInterfaceDescriptorData* data) {
289 // stack param count needs (arg count)
290 Register registers[] = {r0};
291 data->InitializePlatformSpecific(arraysize(registers), registers);
292 }
287 293
288 void CompareDescriptor::InitializePlatformSpecific( 294 void CompareDescriptor::InitializePlatformSpecific(
289 CallInterfaceDescriptorData* data) { 295 CallInterfaceDescriptorData* data) {
290 Register registers[] = {r1, r0}; 296 Register registers[] = {r1, r0};
291 data->InitializePlatformSpecific(arraysize(registers), registers); 297 data->InitializePlatformSpecific(arraysize(registers), registers);
292 } 298 }
293 299
294 300
295 void BinaryOpDescriptor::InitializePlatformSpecific( 301 void BinaryOpDescriptor::InitializePlatformSpecific(
296 CallInterfaceDescriptorData* data) { 302 CallInterfaceDescriptorData* data) {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 r2, // address of first argument (argv) 425 r2, // address of first argument (argv)
420 r1 // the runtime function to call 426 r1 // the runtime function to call
421 }; 427 };
422 data->InitializePlatformSpecific(arraysize(registers), registers); 428 data->InitializePlatformSpecific(arraysize(registers), registers);
423 } 429 }
424 430
425 } // namespace internal 431 } // namespace internal
426 } // namespace v8 432 } // namespace v8
427 433
428 #endif // V8_TARGET_ARCH_ARM 434 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm64/code-stubs-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698