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/factory.h" | 10 #include "src/factory.h" |
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 } | 737 } |
738 | 738 |
739 | 739 |
740 void AllocateHeapNumberStub::InitializeDescriptor( | 740 void AllocateHeapNumberStub::InitializeDescriptor( |
741 CodeStubDescriptor* descriptor) { | 741 CodeStubDescriptor* descriptor) { |
742 descriptor->Initialize( | 742 descriptor->Initialize( |
743 Runtime::FunctionForId(Runtime::kAllocateHeapNumber)->entry); | 743 Runtime::FunctionForId(Runtime::kAllocateHeapNumber)->entry); |
744 } | 744 } |
745 | 745 |
746 | 746 |
| 747 void AllocateInNewSpaceStub::InitializeDescriptor( |
| 748 CodeStubDescriptor* descriptor) { |
| 749 descriptor->Initialize(); |
| 750 } |
| 751 |
| 752 |
747 void CompareNilICStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | 753 void CompareNilICStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { |
748 descriptor->Initialize(FUNCTION_ADDR(Runtime_CompareNilIC_Miss)); | 754 descriptor->Initialize(FUNCTION_ADDR(Runtime_CompareNilIC_Miss)); |
749 descriptor->SetMissHandler(ExternalReference( | 755 descriptor->SetMissHandler(ExternalReference( |
750 Runtime::FunctionForId(Runtime::kCompareNilIC_Miss), isolate())); | 756 Runtime::FunctionForId(Runtime::kCompareNilIC_Miss), isolate())); |
751 } | 757 } |
752 | 758 |
753 | 759 |
754 void ToBooleanStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | 760 void ToBooleanStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { |
755 descriptor->Initialize(FUNCTION_ADDR(Runtime_ToBooleanIC_Miss)); | 761 descriptor->Initialize(FUNCTION_ADDR(Runtime_ToBooleanIC_Miss)); |
756 descriptor->SetMissHandler(ExternalReference( | 762 descriptor->SetMissHandler(ExternalReference( |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1059 | 1065 |
1060 if (type->Is(Type::UntaggedPointer())) { | 1066 if (type->Is(Type::UntaggedPointer())) { |
1061 return Representation::External(); | 1067 return Representation::External(); |
1062 } | 1068 } |
1063 | 1069 |
1064 DCHECK(!type->Is(Type::Untagged())); | 1070 DCHECK(!type->Is(Type::Untagged())); |
1065 return Representation::Tagged(); | 1071 return Representation::Tagged(); |
1066 } | 1072 } |
1067 } // namespace internal | 1073 } // namespace internal |
1068 } // namespace v8 | 1074 } // namespace v8 |
OLD | NEW |