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

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

Issue 1748123003: Rework CallApi*Stubs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Minor fixes and make Win compiler happy. 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
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_MIPS 5 #if V8_TARGET_ARCH_MIPS
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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 CallInterfaceDescriptorData* data) { 377 CallInterfaceDescriptorData* data) {
378 Register registers[] = { 378 Register registers[] = {
379 a1, // JSFunction 379 a1, // JSFunction
380 a3, // the new target 380 a3, // the new target
381 a0, // actual number of arguments 381 a0, // actual number of arguments
382 a2, // expected number of arguments 382 a2, // expected number of arguments
383 }; 383 };
384 data->InitializePlatformSpecific(arraysize(registers), registers); 384 data->InitializePlatformSpecific(arraysize(registers), registers);
385 } 385 }
386 386
387 387 void ApiCallbackDescriptorBase::InitializePlatformSpecific(
388 void ApiFunctionDescriptor::InitializePlatformSpecific(
389 CallInterfaceDescriptorData* data) { 388 CallInterfaceDescriptorData* data) {
390 Register registers[] = { 389 Register registers[] = {
391 a0, // callee 390 a0, // callee
392 t0, // call_data
393 a2, // holder
394 a1, // api_function_address
395 a3, // actual number of arguments
396 };
397 data->InitializePlatformSpecific(arraysize(registers), registers);
398 }
399
400
401 void ApiAccessorDescriptor::InitializePlatformSpecific(
402 CallInterfaceDescriptorData* data) {
403 Register registers[] = {
404 a0, // callee
405 t0, // call_data 391 t0, // call_data
406 a2, // holder 392 a2, // holder
407 a1, // api_function_address 393 a1, // api_function_address
408 }; 394 };
409 data->InitializePlatformSpecific(arraysize(registers), registers); 395 data->InitializePlatformSpecific(arraysize(registers), registers);
410 } 396 }
411 397
412 void InterpreterDispatchDescriptor::InitializePlatformSpecific( 398 void InterpreterDispatchDescriptor::InitializePlatformSpecific(
413 CallInterfaceDescriptorData* data) { 399 CallInterfaceDescriptorData* data) {
414 Register registers[] = { 400 Register registers[] = {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 a2, // address of first argument (argv) 432 a2, // address of first argument (argv)
447 a1 // the runtime function to call 433 a1 // the runtime function to call
448 }; 434 };
449 data->InitializePlatformSpecific(arraysize(registers), registers); 435 data->InitializePlatformSpecific(arraysize(registers), registers);
450 } 436 }
451 437
452 } // namespace internal 438 } // namespace internal
453 } // namespace v8 439 } // namespace v8
454 440
455 #endif // V8_TARGET_ARCH_MIPS 441 #endif // V8_TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698