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

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: Fixes comments I missed in last patch. 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 409
410 void InterpreterDispatchDescriptor::InitializePlatformSpecific( 410 void InterpreterDispatchDescriptor::InitializePlatformSpecific(
411 CallInterfaceDescriptorData* data) { 411 CallInterfaceDescriptorData* data) {
412 Register registers[] = { 412 Register registers[] = {
413 kInterpreterAccumulatorRegister, kInterpreterRegisterFileRegister, 413 kInterpreterAccumulatorRegister, kInterpreterRegisterFileRegister,
414 kInterpreterBytecodeOffsetRegister, kInterpreterBytecodeArrayRegister, 414 kInterpreterBytecodeOffsetRegister, kInterpreterBytecodeArrayRegister,
415 kInterpreterDispatchTableRegister}; 415 kInterpreterDispatchTableRegister};
416 data->InitializePlatformSpecific(arraysize(registers), registers); 416 data->InitializePlatformSpecific(arraysize(registers), registers);
417 } 417 }
418 418
419 void InterpreterPushArgsAndCallICDescriptor::InitializePlatformSpecific(
420 CallInterfaceDescriptorData* data) {
421 Register registers[] = {
422 rax, // argument count (not including receiver)
423 rbx, // address of first argument
424 rdi, // the target callable to be call
425 rdx, // slot id
426 r9, // type feedback vector // TODO(mythria): move to rbx to match
427 // CallICStub.
428 };
429 data->InitializePlatformSpecific(arraysize(registers), registers);
430 }
431
419 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( 432 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific(
420 CallInterfaceDescriptorData* data) { 433 CallInterfaceDescriptorData* data) {
421 Register registers[] = { 434 Register registers[] = {
422 rax, // argument count (not including receiver) 435 rax, // argument count (not including receiver)
423 rbx, // address of first argument 436 rbx, // address of first argument
424 rdi // the target callable to be call 437 rdi // the target callable to be call
425 }; 438 };
426 data->InitializePlatformSpecific(arraysize(registers), registers); 439 data->InitializePlatformSpecific(arraysize(registers), registers);
427 } 440 }
428 441
(...skipping 15 matching lines...) Expand all
444 r15, // address of first argument (argv) 457 r15, // address of first argument (argv)
445 rbx // the runtime function to call 458 rbx // the runtime function to call
446 }; 459 };
447 data->InitializePlatformSpecific(arraysize(registers), registers); 460 data->InitializePlatformSpecific(arraysize(registers), registers);
448 } 461 }
449 462
450 } // namespace internal 463 } // namespace internal
451 } // namespace v8 464 } // namespace v8
452 465
453 #endif // V8_TARGET_ARCH_X64 466 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698