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/code-stubs.h" | 5 #include "src/code-stubs.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 4017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4028 | 4028 |
4029 #define SIMD128_INIT_DESC(TYPE, Type, type, lane_count, lane_type) \ | 4029 #define SIMD128_INIT_DESC(TYPE, Type, type, lane_count, lane_type) \ |
4030 void Allocate##Type##Stub::InitializeDescriptor( \ | 4030 void Allocate##Type##Stub::InitializeDescriptor( \ |
4031 CodeStubDescriptor* descriptor) { \ | 4031 CodeStubDescriptor* descriptor) { \ |
4032 descriptor->Initialize( \ | 4032 descriptor->Initialize( \ |
4033 Runtime::FunctionForId(Runtime::kCreate##Type)->entry); \ | 4033 Runtime::FunctionForId(Runtime::kCreate##Type)->entry); \ |
4034 } | 4034 } |
4035 SIMD128_TYPES(SIMD128_INIT_DESC) | 4035 SIMD128_TYPES(SIMD128_INIT_DESC) |
4036 #undef SIMD128_INIT_DESC | 4036 #undef SIMD128_INIT_DESC |
4037 | 4037 |
4038 void AllocateStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | |
4039 descriptor->Initialize(); | |
4040 } | |
4041 | |
4042 void ToBooleanICStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | 4038 void ToBooleanICStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { |
4043 descriptor->Initialize(FUNCTION_ADDR(Runtime_ToBooleanIC_Miss)); | 4039 descriptor->Initialize(FUNCTION_ADDR(Runtime_ToBooleanIC_Miss)); |
4044 descriptor->SetMissHandler(ExternalReference( | 4040 descriptor->SetMissHandler(ExternalReference( |
4045 Runtime::FunctionForId(Runtime::kToBooleanIC_Miss), isolate())); | 4041 Runtime::FunctionForId(Runtime::kToBooleanIC_Miss), isolate())); |
4046 } | 4042 } |
4047 | 4043 |
4048 | 4044 |
4049 void BinaryOpICStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | 4045 void BinaryOpICStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { |
4050 descriptor->Initialize(FUNCTION_ADDR(Runtime_BinaryOpIC_Miss)); | 4046 descriptor->Initialize(FUNCTION_ADDR(Runtime_BinaryOpIC_Miss)); |
4051 descriptor->SetMissHandler(ExternalReference( | 4047 descriptor->SetMissHandler(ExternalReference( |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4275 if (type->Is(Type::UntaggedPointer())) { | 4271 if (type->Is(Type::UntaggedPointer())) { |
4276 return Representation::External(); | 4272 return Representation::External(); |
4277 } | 4273 } |
4278 | 4274 |
4279 DCHECK(!type->Is(Type::Untagged())); | 4275 DCHECK(!type->Is(Type::Untagged())); |
4280 return Representation::Tagged(); | 4276 return Representation::Tagged(); |
4281 } | 4277 } |
4282 | 4278 |
4283 } // namespace internal | 4279 } // namespace internal |
4284 } // namespace v8 | 4280 } // namespace v8 |
OLD | NEW |