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

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

Issue 1404773002: Introduce AllocateInNewSpace stub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@begin-macro
Patch Set: Rebase Created 5 years, 2 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/code-stubs.h ('k') | src/code-stubs-hydrogen.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/factory.h" 10 #include "src/factory.h"
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698