Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: src/code-stubs.cc

Issue 1269323003: Cleanup unnecessary duplication of runtime functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Adapt test case. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 691
692 void FastNewContextStub::InitializeDescriptor(CodeStubDescriptor* d) {} 692 void FastNewContextStub::InitializeDescriptor(CodeStubDescriptor* d) {}
693 693
694 694
695 void TypeofStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {} 695 void TypeofStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {}
696 696
697 697
698 void NumberToStringStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { 698 void NumberToStringStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
699 NumberToStringDescriptor call_descriptor(isolate()); 699 NumberToStringDescriptor call_descriptor(isolate());
700 descriptor->Initialize( 700 descriptor->Initialize(
701 Runtime::FunctionForId(Runtime::kNumberToStringRT)->entry); 701 Runtime::FunctionForId(Runtime::kNumberToString)->entry);
702 } 702 }
703 703
704 704
705 void FastCloneShallowArrayStub::InitializeDescriptor( 705 void FastCloneShallowArrayStub::InitializeDescriptor(
706 CodeStubDescriptor* descriptor) { 706 CodeStubDescriptor* descriptor) {
707 FastCloneShallowArrayDescriptor call_descriptor(isolate()); 707 FastCloneShallowArrayDescriptor call_descriptor(isolate());
708 descriptor->Initialize( 708 descriptor->Initialize(
709 Runtime::FunctionForId(Runtime::kCreateArrayLiteralStubBailout)->entry); 709 Runtime::FunctionForId(Runtime::kCreateArrayLiteralStubBailout)->entry);
710 } 710 }
711 711
712 712
713 void FastCloneShallowObjectStub::InitializeDescriptor( 713 void FastCloneShallowObjectStub::InitializeDescriptor(
714 CodeStubDescriptor* descriptor) { 714 CodeStubDescriptor* descriptor) {
715 FastCloneShallowObjectDescriptor call_descriptor(isolate()); 715 FastCloneShallowObjectDescriptor call_descriptor(isolate());
716 descriptor->Initialize( 716 descriptor->Initialize(
717 Runtime::FunctionForId(Runtime::kCreateObjectLiteral)->entry); 717 Runtime::FunctionForId(Runtime::kCreateObjectLiteral)->entry);
718 } 718 }
719 719
720 720
721 void CreateAllocationSiteStub::InitializeDescriptor(CodeStubDescriptor* d) {} 721 void CreateAllocationSiteStub::InitializeDescriptor(CodeStubDescriptor* d) {}
722 722
723 723
724 void CreateWeakCellStub::InitializeDescriptor(CodeStubDescriptor* d) {} 724 void CreateWeakCellStub::InitializeDescriptor(CodeStubDescriptor* d) {}
725 725
726 726
727 void RegExpConstructResultStub::InitializeDescriptor( 727 void RegExpConstructResultStub::InitializeDescriptor(
728 CodeStubDescriptor* descriptor) { 728 CodeStubDescriptor* descriptor) {
729 descriptor->Initialize( 729 descriptor->Initialize(
730 Runtime::FunctionForId(Runtime::kRegExpConstructResultRT)->entry); 730 Runtime::FunctionForId(Runtime::kRegExpConstructResult)->entry);
731 } 731 }
732 732
733 733
734 void TransitionElementsKindStub::InitializeDescriptor( 734 void TransitionElementsKindStub::InitializeDescriptor(
735 CodeStubDescriptor* descriptor) { 735 CodeStubDescriptor* descriptor) {
736 descriptor->Initialize( 736 descriptor->Initialize(
737 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry); 737 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry);
738 } 738 }
739 739
740 740
(...skipping 26 matching lines...) Expand all
767 767
768 768
769 void BinaryOpWithAllocationSiteStub::InitializeDescriptor( 769 void BinaryOpWithAllocationSiteStub::InitializeDescriptor(
770 CodeStubDescriptor* descriptor) { 770 CodeStubDescriptor* descriptor) {
771 descriptor->Initialize( 771 descriptor->Initialize(
772 FUNCTION_ADDR(Runtime_BinaryOpIC_MissWithAllocationSite)); 772 FUNCTION_ADDR(Runtime_BinaryOpIC_MissWithAllocationSite));
773 } 773 }
774 774
775 775
776 void StringAddStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { 776 void StringAddStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
777 descriptor->Initialize(Runtime::FunctionForId(Runtime::kStringAddRT)->entry); 777 descriptor->Initialize(Runtime::FunctionForId(Runtime::kStringAdd)->entry);
778 } 778 }
779 779
780 780
781 void GrowArrayElementsStub::InitializeDescriptor( 781 void GrowArrayElementsStub::InitializeDescriptor(
782 CodeStubDescriptor* descriptor) { 782 CodeStubDescriptor* descriptor) {
783 descriptor->Initialize( 783 descriptor->Initialize(
784 Runtime::FunctionForId(Runtime::kGrowArrayElements)->entry); 784 Runtime::FunctionForId(Runtime::kGrowArrayElements)->entry);
785 } 785 }
786 786
787 787
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 1076
1077 if (type->Is(Type::UntaggedPointer())) { 1077 if (type->Is(Type::UntaggedPointer())) {
1078 return Representation::External(); 1078 return Representation::External();
1079 } 1079 }
1080 1080
1081 DCHECK(!type->Is(Type::Untagged())); 1081 DCHECK(!type->Is(Type::Untagged()));
1082 return Representation::Tagged(); 1082 return Representation::Tagged();
1083 } 1083 }
1084 } // namespace internal 1084 } // namespace internal
1085 } // namespace v8 1085 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698