| 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/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 namespace { | 10 namespace { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 Type* AnyTagged(Zone* zone) { | 22 Type* AnyTagged(Zone* zone) { |
| 23 return Type::Intersect( | 23 return Type::Intersect( |
| 24 Type::Any(), | 24 Type::Any(), |
| 25 Type::Union(Type::TaggedPointer(), Type::TaggedSigned(), zone), zone); | 25 Type::Union(Type::TaggedPointer(), Type::TaggedSigned(), zone), zone); |
| 26 } | 26 } |
| 27 | 27 |
| 28 | 28 |
| 29 Type* ExternalPointer(Zone* zone) { | 29 Type* ExternalPointer(Zone* zone) { |
| 30 return Type::Intersect(Type::Internal(), Type::UntaggedPointer(), zone); | 30 return Type::Intersect(Type::Internal(), Type::UntaggedPointer(), zone); |
| 31 } | 31 } |
| 32 } | 32 } // namespace |
| 33 | 33 |
| 34 | 34 |
| 35 Type::FunctionType* CallInterfaceDescriptor::BuildDefaultFunctionType( | 35 Type::FunctionType* CallInterfaceDescriptor::BuildDefaultFunctionType( |
| 36 Isolate* isolate, int parameter_count) { | 36 Isolate* isolate, int parameter_count) { |
| 37 Zone* zone = isolate->interface_descriptor_zone(); | 37 Zone* zone = isolate->interface_descriptor_zone(); |
| 38 Type::FunctionType* function = Type::FunctionType::New( | 38 Type::FunctionType* function = Type::FunctionType::New( |
| 39 AnyTagged(zone), Type::Undefined(), parameter_count, zone); | 39 AnyTagged(zone), Type::Undefined(), parameter_count, zone); |
| 40 while (parameter_count-- != 0) { | 40 while (parameter_count-- != 0) { |
| 41 function->InitParameter(parameter_count, AnyTagged(zone)); | 41 function->InitParameter(parameter_count, AnyTagged(zone)); |
| 42 } | 42 } |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 5, zone); | 512 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 5, zone); |
| 513 function->InitParameter(0, Type::Receiver()); | 513 function->InitParameter(0, Type::Receiver()); |
| 514 function->InitParameter(1, SmiType(zone)); | 514 function->InitParameter(1, SmiType(zone)); |
| 515 function->InitParameter(2, AnyTagged(zone)); | 515 function->InitParameter(2, AnyTagged(zone)); |
| 516 function->InitParameter(3, AnyTagged(zone)); | 516 function->InitParameter(3, AnyTagged(zone)); |
| 517 function->InitParameter(4, AnyTagged(zone)); | 517 function->InitParameter(4, AnyTagged(zone)); |
| 518 return function; | 518 return function; |
| 519 } | 519 } |
| 520 } // namespace internal | 520 } // namespace internal |
| 521 } // namespace v8 | 521 } // namespace v8 |
| OLD | NEW |