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

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

Issue 2606733002: [stubs] Port FastNewObjectStub to TF (Closed)
Patch Set: Review feedback Created 3 years, 11 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/interface-descriptors.h ('k') | src/mips/code-stubs-mips.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 #include "src/interface-descriptors.h" 5 #include "src/interface-descriptors.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 9
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 data->InitializePlatformIndependent(arraysize(machine_types), 0, 67 data->InitializePlatformIndependent(arraysize(machine_types), 0,
68 machine_types); 68 machine_types);
69 } 69 }
70 70
71 void FastNewFunctionContextDescriptor::InitializePlatformSpecific( 71 void FastNewFunctionContextDescriptor::InitializePlatformSpecific(
72 CallInterfaceDescriptorData* data) { 72 CallInterfaceDescriptorData* data) {
73 Register registers[] = {FunctionRegister(), SlotsRegister()}; 73 Register registers[] = {FunctionRegister(), SlotsRegister()};
74 data->InitializePlatformSpecific(arraysize(registers), registers); 74 data->InitializePlatformSpecific(arraysize(registers), registers);
75 } 75 }
76 76
77 void FastNewObjectDescriptor::InitializePlatformSpecific(
78 CallInterfaceDescriptorData* data) {
79 Register registers[] = {TargetRegister(), NewTargetRegister()};
80 data->InitializePlatformSpecific(arraysize(registers), registers);
81 }
82
83 const Register FastNewObjectDescriptor::TargetRegister() {
84 return kJSFunctionRegister;
85 }
86
87 const Register FastNewObjectDescriptor::NewTargetRegister() {
88 return kJavaScriptCallNewTargetRegister;
89 }
90
77 void LoadDescriptor::InitializePlatformIndependent( 91 void LoadDescriptor::InitializePlatformIndependent(
78 CallInterfaceDescriptorData* data) { 92 CallInterfaceDescriptorData* data) {
79 // kReceiver, kName, kSlot 93 // kReceiver, kName, kSlot
80 MachineType machine_types[] = {MachineType::AnyTagged(), 94 MachineType machine_types[] = {MachineType::AnyTagged(),
81 MachineType::AnyTagged(), 95 MachineType::AnyTagged(),
82 MachineType::TaggedSigned()}; 96 MachineType::TaggedSigned()};
83 data->InitializePlatformIndependent(arraysize(machine_types), 0, 97 data->InitializePlatformIndependent(arraysize(machine_types), 0,
84 machine_types); 98 machine_types);
85 } 99 }
86 100
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 CallInterfaceDescriptorData* data) { 593 CallInterfaceDescriptorData* data) {
580 // kNumberOfArguments, kFirstArgument, kFunctionEntry 594 // kNumberOfArguments, kFirstArgument, kFunctionEntry
581 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(), 595 MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(),
582 MachineType::Pointer()}; 596 MachineType::Pointer()};
583 data->InitializePlatformIndependent(arraysize(machine_types), 0, 597 data->InitializePlatformIndependent(arraysize(machine_types), 0,
584 machine_types); 598 machine_types);
585 } 599 }
586 600
587 } // namespace internal 601 } // namespace internal
588 } // namespace v8 602 } // namespace v8
OLDNEW
« no previous file with comments | « src/interface-descriptors.h ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698