| 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 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 void CreateWeakCellStub::InitializeDescriptor(CodeStubDescriptor* d) {} | 717 void CreateWeakCellStub::InitializeDescriptor(CodeStubDescriptor* d) {} |
| 718 | 718 |
| 719 | 719 |
| 720 void RegExpConstructResultStub::InitializeDescriptor( | 720 void RegExpConstructResultStub::InitializeDescriptor( |
| 721 CodeStubDescriptor* descriptor) { | 721 CodeStubDescriptor* descriptor) { |
| 722 descriptor->Initialize( | 722 descriptor->Initialize( |
| 723 Runtime::FunctionForId(Runtime::kRegExpConstructResultRT)->entry); | 723 Runtime::FunctionForId(Runtime::kRegExpConstructResultRT)->entry); |
| 724 } | 724 } |
| 725 | 725 |
| 726 | 726 |
| 727 void LoadGlobalViaContextStub::InitializeDescriptor( | |
| 728 CodeStubDescriptor* descriptor) { | |
| 729 // Must never deoptimize. | |
| 730 descriptor->Initialize(FUNCTION_ADDR(UnexpectedStubMiss)); | |
| 731 } | |
| 732 | |
| 733 | |
| 734 void StoreGlobalViaContextStub::InitializeDescriptor( | |
| 735 CodeStubDescriptor* descriptor) { | |
| 736 // Must never deoptimize. | |
| 737 descriptor->Initialize(FUNCTION_ADDR(UnexpectedStubMiss)); | |
| 738 } | |
| 739 | |
| 740 | |
| 741 void TransitionElementsKindStub::InitializeDescriptor( | 727 void TransitionElementsKindStub::InitializeDescriptor( |
| 742 CodeStubDescriptor* descriptor) { | 728 CodeStubDescriptor* descriptor) { |
| 743 descriptor->Initialize( | 729 descriptor->Initialize( |
| 744 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry); | 730 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry); |
| 745 } | 731 } |
| 746 | 732 |
| 747 | 733 |
| 748 void AllocateHeapNumberStub::InitializeDescriptor( | 734 void AllocateHeapNumberStub::InitializeDescriptor( |
| 749 CodeStubDescriptor* descriptor) { | 735 CodeStubDescriptor* descriptor) { |
| 750 descriptor->Initialize( | 736 descriptor->Initialize( |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1083 | 1069 |
| 1084 if (type->Is(Type::UntaggedPointer())) { | 1070 if (type->Is(Type::UntaggedPointer())) { |
| 1085 return Representation::External(); | 1071 return Representation::External(); |
| 1086 } | 1072 } |
| 1087 | 1073 |
| 1088 DCHECK(!type->Is(Type::Untagged())); | 1074 DCHECK(!type->Is(Type::Untagged())); |
| 1089 return Representation::Tagged(); | 1075 return Representation::Tagged(); |
| 1090 } | 1076 } |
| 1091 } // namespace internal | 1077 } // namespace internal |
| 1092 } // namespace v8 | 1078 } // namespace v8 |
| OLD | NEW |