| 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 3988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3999 | 3999 |
| 4000 #define SIMD128_INIT_DESC(TYPE, Type, type, lane_count, lane_type) \ | 4000 #define SIMD128_INIT_DESC(TYPE, Type, type, lane_count, lane_type) \ |
| 4001 void Allocate##Type##Stub::InitializeDescriptor( \ | 4001 void Allocate##Type##Stub::InitializeDescriptor( \ |
| 4002 CodeStubDescriptor* descriptor) { \ | 4002 CodeStubDescriptor* descriptor) { \ |
| 4003 descriptor->Initialize( \ | 4003 descriptor->Initialize( \ |
| 4004 Runtime::FunctionForId(Runtime::kCreate##Type)->entry); \ | 4004 Runtime::FunctionForId(Runtime::kCreate##Type)->entry); \ |
| 4005 } | 4005 } |
| 4006 SIMD128_TYPES(SIMD128_INIT_DESC) | 4006 SIMD128_TYPES(SIMD128_INIT_DESC) |
| 4007 #undef SIMD128_INIT_DESC | 4007 #undef SIMD128_INIT_DESC |
| 4008 | 4008 |
| 4009 void AllocateStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | |
| 4010 descriptor->Initialize(); | |
| 4011 } | |
| 4012 | |
| 4013 void ToBooleanICStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | 4009 void ToBooleanICStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { |
| 4014 descriptor->Initialize(FUNCTION_ADDR(Runtime_ToBooleanIC_Miss)); | 4010 descriptor->Initialize(FUNCTION_ADDR(Runtime_ToBooleanIC_Miss)); |
| 4015 descriptor->SetMissHandler(ExternalReference( | 4011 descriptor->SetMissHandler(ExternalReference( |
| 4016 Runtime::FunctionForId(Runtime::kToBooleanIC_Miss), isolate())); | 4012 Runtime::FunctionForId(Runtime::kToBooleanIC_Miss), isolate())); |
| 4017 } | 4013 } |
| 4018 | 4014 |
| 4019 | 4015 |
| 4020 void BinaryOpICStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | 4016 void BinaryOpICStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { |
| 4021 descriptor->Initialize(FUNCTION_ADDR(Runtime_BinaryOpIC_Miss)); | 4017 descriptor->Initialize(FUNCTION_ADDR(Runtime_BinaryOpIC_Miss)); |
| 4022 descriptor->SetMissHandler(ExternalReference( | 4018 descriptor->SetMissHandler(ExternalReference( |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4246 if (type->Is(Type::UntaggedPointer())) { | 4242 if (type->Is(Type::UntaggedPointer())) { |
| 4247 return Representation::External(); | 4243 return Representation::External(); |
| 4248 } | 4244 } |
| 4249 | 4245 |
| 4250 DCHECK(!type->Is(Type::Untagged())); | 4246 DCHECK(!type->Is(Type::Untagged())); |
| 4251 return Representation::Tagged(); | 4247 return Representation::Tagged(); |
| 4252 } | 4248 } |
| 4253 | 4249 |
| 4254 } // namespace internal | 4250 } // namespace internal |
| 4255 } // namespace v8 | 4251 } // namespace v8 |
| OLD | NEW |