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

Side by Side Diff: src/ia32/interface-descriptors-ia32.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/ia32/code-stubs-ia32.cc ('k') | src/interface-descriptors.h » ('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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 } 281 }
282 282
283 283
284 void InternalArrayConstructorDescriptor::InitializePlatformSpecific( 284 void InternalArrayConstructorDescriptor::InitializePlatformSpecific(
285 CallInterfaceDescriptorData* data) { 285 CallInterfaceDescriptorData* data) {
286 // stack param count needs (constructor pointer, and single argument) 286 // stack param count needs (constructor pointer, and single argument)
287 Register registers[] = {edi, eax}; 287 Register registers[] = {edi, eax};
288 data->InitializePlatformSpecific(arraysize(registers), registers); 288 data->InitializePlatformSpecific(arraysize(registers), registers);
289 } 289 }
290 290
291 void FastArrayPushDescriptor::InitializePlatformSpecific(
292 CallInterfaceDescriptorData* data) {
293 // stack param count needs (arg count)
294 Register registers[] = {eax};
295 data->InitializePlatformSpecific(arraysize(registers), registers);
296 }
291 297
292 void CompareDescriptor::InitializePlatformSpecific( 298 void CompareDescriptor::InitializePlatformSpecific(
293 CallInterfaceDescriptorData* data) { 299 CallInterfaceDescriptorData* data) {
294 Register registers[] = {edx, eax}; 300 Register registers[] = {edx, eax};
295 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 301 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
296 } 302 }
297 303
298 304
299 void BinaryOpDescriptor::InitializePlatformSpecific( 305 void BinaryOpDescriptor::InitializePlatformSpecific(
300 CallInterfaceDescriptorData* data) { 306 CallInterfaceDescriptorData* data) {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 ecx, // address of first argument (argv) 408 ecx, // address of first argument (argv)
403 ebx // the runtime function to call 409 ebx // the runtime function to call
404 }; 410 };
405 data->InitializePlatformSpecific(arraysize(registers), registers); 411 data->InitializePlatformSpecific(arraysize(registers), registers);
406 } 412 }
407 413
408 } // namespace internal 414 } // namespace internal
409 } // namespace v8 415 } // namespace v8
410 416
411 #endif // V8_TARGET_ARCH_IA32 417 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/interface-descriptors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698