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

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

Issue 2307903002: [Interpreter] Collect allocation site feedback in call bytecode handler. (Closed)
Patch Set: Fixed a bug in mips implementation. Created 4 years, 3 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/interpreter/interpreter-assembler.cc ('k') | src/mips64/interface-descriptors-mips64.cc » ('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_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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 Register registers[] = { 391 Register registers[] = {
392 a0, // argument count (not including receiver) 392 a0, // argument count (not including receiver)
393 a3, // new target 393 a3, // new target
394 a1, // constructor to call 394 a1, // constructor to call
395 a2, // allocation site feedback if available, undefined otherwise. 395 a2, // allocation site feedback if available, undefined otherwise.
396 t4 // address of the first argument 396 t4 // address of the first argument
397 }; 397 };
398 data->InitializePlatformSpecific(arraysize(registers), registers); 398 data->InitializePlatformSpecific(arraysize(registers), registers);
399 } 399 }
400 400
401 void InterpreterPushArgsAndConstructArrayDescriptor::InitializePlatformSpecific(
402 CallInterfaceDescriptorData* data) {
403 Register registers[] = {
404 a0, // argument count (not including receiver)
405 a1, // the target to call verified to be Array function
406 a2, // allocation site feedback
407 a3, // address of first argument
408 };
409 data->InitializePlatformSpecific(arraysize(registers), registers);
410 }
411
401 void InterpreterCEntryDescriptor::InitializePlatformSpecific( 412 void InterpreterCEntryDescriptor::InitializePlatformSpecific(
402 CallInterfaceDescriptorData* data) { 413 CallInterfaceDescriptorData* data) {
403 Register registers[] = { 414 Register registers[] = {
404 a0, // argument count (argc) 415 a0, // argument count (argc)
405 a2, // address of first argument (argv) 416 a2, // address of first argument (argv)
406 a1 // the runtime function to call 417 a1 // the runtime function to call
407 }; 418 };
408 data->InitializePlatformSpecific(arraysize(registers), registers); 419 data->InitializePlatformSpecific(arraysize(registers), registers);
409 } 420 }
410 421
411 void ResumeGeneratorDescriptor::InitializePlatformSpecific( 422 void ResumeGeneratorDescriptor::InitializePlatformSpecific(
412 CallInterfaceDescriptorData* data) { 423 CallInterfaceDescriptorData* data) {
413 Register registers[] = { 424 Register registers[] = {
414 v0, // the value to pass to the generator 425 v0, // the value to pass to the generator
415 a1, // the JSGeneratorObject to resume 426 a1, // the JSGeneratorObject to resume
416 a2 // the resume mode (tagged) 427 a2 // the resume mode (tagged)
417 }; 428 };
418 data->InitializePlatformSpecific(arraysize(registers), registers); 429 data->InitializePlatformSpecific(arraysize(registers), registers);
419 } 430 }
420 431
421 } // namespace internal 432 } // namespace internal
422 } // namespace v8 433 } // namespace v8
423 434
424 #endif // V8_TARGET_ARCH_MIPS 435 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/interpreter/interpreter-assembler.cc ('k') | src/mips64/interface-descriptors-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698