OLD | NEW |
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/v8.h" | 5 #include "src/v8.h" |
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 data->Initialize(arraysize(registers), registers, NULL); | 81 data->Initialize(arraysize(registers), registers, NULL); |
82 } | 82 } |
83 | 83 |
84 | 84 |
85 void InstanceofDescriptor::Initialize(CallInterfaceDescriptorData* data) { | 85 void InstanceofDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
86 Register registers[] = {ContextRegister(), left(), right()}; | 86 Register registers[] = {ContextRegister(), left(), right()}; |
87 data->Initialize(arraysize(registers), registers, NULL); | 87 data->Initialize(arraysize(registers), registers, NULL); |
88 } | 88 } |
89 | 89 |
90 | 90 |
| 91 void MathPowTaggedDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
| 92 Register registers[] = {ContextRegister(), exponent()}; |
| 93 data->Initialize(arraysize(registers), registers, NULL); |
| 94 } |
| 95 |
| 96 |
| 97 void MathPowIntegerDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
| 98 Register registers[] = {ContextRegister(), exponent()}; |
| 99 data->Initialize(arraysize(registers), registers, NULL); |
| 100 } |
| 101 |
| 102 |
| 103 void VectorLoadICTrampolineDescriptor::Initialize( |
| 104 CallInterfaceDescriptorData* data) { |
| 105 Register registers[] = {ContextRegister(), ReceiverRegister(), NameRegister(), |
| 106 SlotRegister()}; |
| 107 data->Initialize(arraysize(registers), registers, NULL); |
| 108 } |
| 109 |
| 110 |
91 void VectorLoadICDescriptor::Initialize(CallInterfaceDescriptorData* data) { | 111 void VectorLoadICDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
92 Register registers[] = {ContextRegister(), ReceiverRegister(), NameRegister(), | 112 Register registers[] = {ContextRegister(), ReceiverRegister(), NameRegister(), |
93 SlotRegister(), VectorRegister()}; | 113 SlotRegister(), VectorRegister()}; |
| 114 Representation representations[] = { |
| 115 Representation::Tagged(), Representation::Tagged(), |
| 116 Representation::Tagged(), Representation::Smi(), |
| 117 Representation::Tagged()}; |
| 118 data->Initialize(arraysize(registers), registers, representations); |
| 119 } |
| 120 |
| 121 |
| 122 void ApiGetterDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
| 123 Register registers[] = {ContextRegister(), function_address()}; |
| 124 Representation representations[] = {Representation::Tagged(), |
| 125 Representation::External()}; |
| 126 data->Initialize(arraysize(registers), registers, representations); |
| 127 } |
| 128 |
| 129 |
| 130 void ArgumentsAccessReadDescriptor::Initialize( |
| 131 CallInterfaceDescriptorData* data) { |
| 132 Register registers[] = {ContextRegister(), index(), parameter_count()}; |
94 data->Initialize(arraysize(registers), registers, NULL); | 133 data->Initialize(arraysize(registers), registers, NULL); |
95 } | 134 } |
96 | 135 |
| 136 |
| 137 void ContextOnlyDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
| 138 Register registers[] = {ContextRegister()}; |
| 139 data->Initialize(arraysize(registers), registers, NULL); |
| 140 } |
| 141 |
97 } | 142 } |
98 } // namespace v8::internal | 143 } // namespace v8::internal |
OLD | NEW |