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/cpu-profiler.h" | 10 #include "src/cpu-profiler.h" |
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 } | 665 } |
666 | 666 |
667 | 667 |
668 void ElementsTransitionAndStoreStub::InitializeDescriptor( | 668 void ElementsTransitionAndStoreStub::InitializeDescriptor( |
669 CodeStubDescriptor* descriptor) { | 669 CodeStubDescriptor* descriptor) { |
670 descriptor->Initialize( | 670 descriptor->Initialize( |
671 FUNCTION_ADDR(Runtime_ElementsTransitionAndStoreIC_Miss)); | 671 FUNCTION_ADDR(Runtime_ElementsTransitionAndStoreIC_Miss)); |
672 } | 672 } |
673 | 673 |
674 | 674 |
| 675 void ToObjectStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { |
| 676 descriptor->Initialize(Runtime::FunctionForId(Runtime::kToObject)->entry); |
| 677 } |
| 678 |
| 679 |
675 CallInterfaceDescriptor StoreTransitionStub::GetCallInterfaceDescriptor() | 680 CallInterfaceDescriptor StoreTransitionStub::GetCallInterfaceDescriptor() |
676 const { | 681 const { |
677 return StoreTransitionDescriptor(isolate()); | 682 return StoreTransitionDescriptor(isolate()); |
678 } | 683 } |
679 | 684 |
680 | 685 |
681 void FastNewClosureStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | 686 void FastNewClosureStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { |
682 descriptor->Initialize( | 687 descriptor->Initialize( |
683 Runtime::FunctionForId(Runtime::kNewClosureFromStubFailure)->entry); | 688 Runtime::FunctionForId(Runtime::kNewClosureFromStubFailure)->entry); |
684 } | 689 } |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1071 | 1076 |
1072 if (type->Is(Type::UntaggedPointer())) { | 1077 if (type->Is(Type::UntaggedPointer())) { |
1073 return Representation::External(); | 1078 return Representation::External(); |
1074 } | 1079 } |
1075 | 1080 |
1076 DCHECK(!type->Is(Type::Untagged())); | 1081 DCHECK(!type->Is(Type::Untagged())); |
1077 return Representation::Tagged(); | 1082 return Representation::Tagged(); |
1078 } | 1083 } |
1079 } // namespace internal | 1084 } // namespace internal |
1080 } // namespace v8 | 1085 } // namespace v8 |
OLD | NEW |