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

Side by Side Diff: src/x64/interface-descriptors-x64.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_X64 5 #if V8_TARGET_ARCH_X64
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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 void InterpreterCEntryDescriptor::InitializePlatformSpecific( 430 void InterpreterCEntryDescriptor::InitializePlatformSpecific(
431 CallInterfaceDescriptorData* data) { 431 CallInterfaceDescriptorData* data) {
432 Register registers[] = { 432 Register registers[] = {
433 rax, // argument count (argc) 433 rax, // argument count (argc)
434 r15, // address of first argument (argv) 434 r15, // address of first argument (argv)
435 rbx // the runtime function to call 435 rbx // the runtime function to call
436 }; 436 };
437 data->InitializePlatformSpecific(arraysize(registers), registers); 437 data->InitializePlatformSpecific(arraysize(registers), registers);
438 } 438 }
439 439
440
441 void AtomicsLoadDescriptor::InitializePlatformSpecific(
442 CallInterfaceDescriptorData* data) {
443 Register registers[] = {rdx, rax};
444 data->InitializePlatformSpecific(arraysize(registers), registers);
445 }
446
440 } // namespace internal 447 } // namespace internal
441 } // namespace v8 448 } // namespace v8
442 449
443 #endif // V8_TARGET_ARCH_X64 450 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698