| 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/compiler/code-stub-assembler.h" | 10 #include "src/compiler/code-stub-assembler.h" |
| (...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 descriptor->Initialize( | 725 descriptor->Initialize( |
| 726 Runtime::FunctionForId(Runtime::kAllocateHeapNumber)->entry); | 726 Runtime::FunctionForId(Runtime::kAllocateHeapNumber)->entry); |
| 727 } | 727 } |
| 728 | 728 |
| 729 | 729 |
| 730 void AllocateMutableHeapNumberStub::InitializeDescriptor( | 730 void AllocateMutableHeapNumberStub::InitializeDescriptor( |
| 731 CodeStubDescriptor* descriptor) { | 731 CodeStubDescriptor* descriptor) { |
| 732 descriptor->Initialize(); | 732 descriptor->Initialize(); |
| 733 } | 733 } |
| 734 | 734 |
| 735 #define SIMD128_INIT_DESC(TYPE, Type, type, lane_count, lane_type) \ |
| 736 void Allocate##Type##Stub::InitializeDescriptor( \ |
| 737 CodeStubDescriptor* descriptor) { \ |
| 738 descriptor->Initialize( \ |
| 739 Runtime::FunctionForId(Runtime::kCreate##Type)->entry); \ |
| 740 } |
| 741 SIMD128_TYPES(SIMD128_INIT_DESC) |
| 742 #undef SIMD128_INIT_DESC |
| 735 | 743 |
| 736 void AllocateInNewSpaceStub::InitializeDescriptor( | 744 void AllocateInNewSpaceStub::InitializeDescriptor( |
| 737 CodeStubDescriptor* descriptor) { | 745 CodeStubDescriptor* descriptor) { |
| 738 descriptor->Initialize(); | 746 descriptor->Initialize(); |
| 739 } | 747 } |
| 740 | 748 |
| 741 | |
| 742 void CompareNilICStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | 749 void CompareNilICStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { |
| 743 descriptor->Initialize(FUNCTION_ADDR(Runtime_CompareNilIC_Miss)); | 750 descriptor->Initialize(FUNCTION_ADDR(Runtime_CompareNilIC_Miss)); |
| 744 descriptor->SetMissHandler(ExternalReference( | 751 descriptor->SetMissHandler(ExternalReference( |
| 745 Runtime::FunctionForId(Runtime::kCompareNilIC_Miss), isolate())); | 752 Runtime::FunctionForId(Runtime::kCompareNilIC_Miss), isolate())); |
| 746 } | 753 } |
| 747 | 754 |
| 748 | 755 |
| 749 void ToBooleanStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | 756 void ToBooleanStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { |
| 750 descriptor->Initialize(FUNCTION_ADDR(Runtime_ToBooleanIC_Miss)); | 757 descriptor->Initialize(FUNCTION_ADDR(Runtime_ToBooleanIC_Miss)); |
| 751 descriptor->SetMissHandler(ExternalReference( | 758 descriptor->SetMissHandler(ExternalReference( |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 986 if (type->Is(Type::UntaggedPointer())) { | 993 if (type->Is(Type::UntaggedPointer())) { |
| 987 return Representation::External(); | 994 return Representation::External(); |
| 988 } | 995 } |
| 989 | 996 |
| 990 DCHECK(!type->Is(Type::Untagged())); | 997 DCHECK(!type->Is(Type::Untagged())); |
| 991 return Representation::Tagged(); | 998 return Representation::Tagged(); |
| 992 } | 999 } |
| 993 | 1000 |
| 994 } // namespace internal | 1001 } // namespace internal |
| 995 } // namespace v8 | 1002 } // namespace v8 |
| OLD | NEW |