| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 function->InitParameter(2, AnyTagged()); // Value | 110 function->InitParameter(2, AnyTagged()); // Value |
| 111 function->InitParameter(3, AnyTagged()); // Map | 111 function->InitParameter(3, AnyTagged()); // Map |
| 112 return function; | 112 return function; |
| 113 } | 113 } |
| 114 | 114 |
| 115 | 115 |
| 116 Type::FunctionType* | 116 Type::FunctionType* |
| 117 LoadGlobalViaContextDescriptor::BuildCallInterfaceDescriptorFunctionType( | 117 LoadGlobalViaContextDescriptor::BuildCallInterfaceDescriptorFunctionType( |
| 118 Isolate* isolate, int paramater_count) { | 118 Isolate* isolate, int paramater_count) { |
| 119 Type::FunctionType* function = Type::FunctionType::New( | 119 Type::FunctionType* function = Type::FunctionType::New( |
| 120 AnyTagged(), Type::Undefined(), 2, isolate->interface_descriptor_zone()); | 120 AnyTagged(), Type::Undefined(), 1, isolate->interface_descriptor_zone()); |
| 121 function->InitParameter(0, UntaggedSigned32()); | 121 function->InitParameter(0, UntaggedSigned32()); |
| 122 function->InitParameter(1, AnyTagged()); | |
| 123 return function; | 122 return function; |
| 124 } | 123 } |
| 125 | 124 |
| 126 | 125 |
| 127 void LoadGlobalViaContextDescriptor::InitializePlatformSpecific( | 126 void LoadGlobalViaContextDescriptor::InitializePlatformSpecific( |
| 128 CallInterfaceDescriptorData* data) { | 127 CallInterfaceDescriptorData* data) { |
| 129 Register registers[] = {SlotRegister(), NameRegister()}; | 128 Register registers[] = {SlotRegister()}; |
| 130 data->InitializePlatformSpecific(arraysize(registers), registers); | 129 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 131 } | 130 } |
| 132 | 131 |
| 133 | 132 |
| 134 Type::FunctionType* | 133 Type::FunctionType* |
| 135 StoreGlobalViaContextDescriptor::BuildCallInterfaceDescriptorFunctionType( | 134 StoreGlobalViaContextDescriptor::BuildCallInterfaceDescriptorFunctionType( |
| 136 Isolate* isolate, int paramater_count) { | 135 Isolate* isolate, int paramater_count) { |
| 137 Type::FunctionType* function = Type::FunctionType::New( | 136 Type::FunctionType* function = Type::FunctionType::New( |
| 138 AnyTagged(), Type::Undefined(), 3, isolate->interface_descriptor_zone()); | 137 AnyTagged(), Type::Undefined(), 2, isolate->interface_descriptor_zone()); |
| 139 function->InitParameter(0, UntaggedSigned32()); | 138 function->InitParameter(0, UntaggedSigned32()); |
| 140 function->InitParameter(1, AnyTagged()); | 139 function->InitParameter(1, AnyTagged()); |
| 141 function->InitParameter(2, AnyTagged()); | |
| 142 return function; | 140 return function; |
| 143 } | 141 } |
| 144 | 142 |
| 145 | 143 |
| 146 void StoreGlobalViaContextDescriptor::InitializePlatformSpecific( | 144 void StoreGlobalViaContextDescriptor::InitializePlatformSpecific( |
| 147 CallInterfaceDescriptorData* data) { | 145 CallInterfaceDescriptorData* data) { |
| 148 Register registers[] = {SlotRegister(), NameRegister(), ValueRegister()}; | 146 Register registers[] = {SlotRegister(), ValueRegister()}; |
| 149 data->InitializePlatformSpecific(arraysize(registers), registers); | 147 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 150 } | 148 } |
| 151 | 149 |
| 152 | 150 |
| 153 void InstanceofDescriptor::InitializePlatformSpecific( | 151 void InstanceofDescriptor::InitializePlatformSpecific( |
| 154 CallInterfaceDescriptorData* data) { | 152 CallInterfaceDescriptorData* data) { |
| 155 Register registers[] = {left(), right()}; | 153 Register registers[] = {left(), right()}; |
| 156 data->InitializePlatformSpecific(arraysize(registers), registers); | 154 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 157 } | 155 } |
| 158 | 156 |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 AnyTagged(), Type::Undefined(), 5, isolate->interface_descriptor_zone()); | 411 AnyTagged(), Type::Undefined(), 5, isolate->interface_descriptor_zone()); |
| 414 function->InitParameter(0, Type::Receiver()); | 412 function->InitParameter(0, Type::Receiver()); |
| 415 function->InitParameter(1, SmiType()); | 413 function->InitParameter(1, SmiType()); |
| 416 function->InitParameter(2, AnyTagged()); | 414 function->InitParameter(2, AnyTagged()); |
| 417 function->InitParameter(3, AnyTagged()); | 415 function->InitParameter(3, AnyTagged()); |
| 418 function->InitParameter(4, AnyTagged()); | 416 function->InitParameter(4, AnyTagged()); |
| 419 return function; | 417 return function; |
| 420 } | 418 } |
| 421 } // namespace internal | 419 } // namespace internal |
| 422 } // namespace v8 | 420 } // namespace v8 |
| OLD | NEW |