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

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

Issue 1617503003: [Atomics] code stubs for atomic operations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: call code stub from TF Created 4 years, 10 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
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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 void InterpreterCEntryDescriptor::InitializePlatformSpecific( 437 void InterpreterCEntryDescriptor::InitializePlatformSpecific(
438 CallInterfaceDescriptorData* data) { 438 CallInterfaceDescriptorData* data) {
439 Register registers[] = { 439 Register registers[] = {
440 eax, // argument count (argc) 440 eax, // argument count (argc)
441 ecx, // address of first argument (argv) 441 ecx, // address of first argument (argv)
442 ebx // the runtime function to call 442 ebx // the runtime function to call
443 }; 443 };
444 data->InitializePlatformSpecific(arraysize(registers), registers); 444 data->InitializePlatformSpecific(arraysize(registers), registers);
445 } 445 }
446 446
447
448 void AtomicsLoadDescriptor::InitializePlatformSpecific(
449 CallInterfaceDescriptorData* data) {
450 Register registers[] = {edx, eax};
451 data->InitializePlatformSpecific(arraysize(registers), registers);
452 }
453
447 } // namespace internal 454 } // namespace internal
448 } // namespace v8 455 } // namespace v8
449 456
450 #endif // V8_TARGET_ARCH_IA32 457 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698