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