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

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

Issue 1688283003: [Interpreter] Implements calls through CallICStub in the interpreter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: removes an unused label declaration. 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
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | test/cctest/cctest.status » ('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_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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 415
416 void InterpreterDispatchDescriptor::InitializePlatformSpecific( 416 void InterpreterDispatchDescriptor::InitializePlatformSpecific(
417 CallInterfaceDescriptorData* data) { 417 CallInterfaceDescriptorData* data) {
418 Register registers[] = { 418 Register registers[] = {
419 kInterpreterAccumulatorRegister, kInterpreterRegisterFileRegister, 419 kInterpreterAccumulatorRegister, kInterpreterRegisterFileRegister,
420 kInterpreterBytecodeOffsetRegister, kInterpreterBytecodeArrayRegister, 420 kInterpreterBytecodeOffsetRegister, kInterpreterBytecodeArrayRegister,
421 kInterpreterDispatchTableRegister}; 421 kInterpreterDispatchTableRegister};
422 data->InitializePlatformSpecific(arraysize(registers), registers); 422 data->InitializePlatformSpecific(arraysize(registers), registers);
423 } 423 }
424 424
425 void InterpreterPushArgsAndCallICDescriptor::InitializePlatformSpecific(
426 CallInterfaceDescriptorData* data) {
427 Register registers[] = {
428 rax, // argument count (not including receiver)
429 rbx, // address of first argument
430 rdi, // the target callable to be call
431 rdx, // slot id
432 r9, // type feedback vector // TODO(mythria): move to rbx to match
433 // CallICStub.
434 };
435 data->InitializePlatformSpecific(arraysize(registers), registers);
436 }
437
425 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( 438 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific(
426 CallInterfaceDescriptorData* data) { 439 CallInterfaceDescriptorData* data) {
427 Register registers[] = { 440 Register registers[] = {
428 rax, // argument count (not including receiver) 441 rax, // argument count (not including receiver)
429 rbx, // address of first argument 442 rbx, // address of first argument
430 rdi // the target callable to be call 443 rdi // the target callable to be call
431 }; 444 };
432 data->InitializePlatformSpecific(arraysize(registers), registers); 445 data->InitializePlatformSpecific(arraysize(registers), registers);
433 } 446 }
434 447
(...skipping 15 matching lines...) Expand all
450 r15, // address of first argument (argv) 463 r15, // address of first argument (argv)
451 rbx // the runtime function to call 464 rbx // the runtime function to call
452 }; 465 };
453 data->InitializePlatformSpecific(arraysize(registers), registers); 466 data->InitializePlatformSpecific(arraysize(registers), registers);
454 } 467 }
455 468
456 } // namespace internal 469 } // namespace internal
457 } // namespace v8 470 } // namespace v8
458 471
459 #endif // V8_TARGET_ARCH_X64 472 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | test/cctest/cctest.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698