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

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

Issue 1877323002: [turbofan] Generalize AllocateStub to allow old space allocation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Go for minor key and AllocateStub Created 4 years, 8 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/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 3752 matching lines...) Expand 10 before | Expand all | Expand 10 after
3763 3763
3764 #define SIMD128_INIT_DESC(TYPE, Type, type, lane_count, lane_type) \ 3764 #define SIMD128_INIT_DESC(TYPE, Type, type, lane_count, lane_type) \
3765 void Allocate##Type##Stub::InitializeDescriptor( \ 3765 void Allocate##Type##Stub::InitializeDescriptor( \
3766 CodeStubDescriptor* descriptor) { \ 3766 CodeStubDescriptor* descriptor) { \
3767 descriptor->Initialize( \ 3767 descriptor->Initialize( \
3768 Runtime::FunctionForId(Runtime::kCreate##Type)->entry); \ 3768 Runtime::FunctionForId(Runtime::kCreate##Type)->entry); \
3769 } 3769 }
3770 SIMD128_TYPES(SIMD128_INIT_DESC) 3770 SIMD128_TYPES(SIMD128_INIT_DESC)
3771 #undef SIMD128_INIT_DESC 3771 #undef SIMD128_INIT_DESC
3772 3772
3773 void AllocateInNewSpaceStub::InitializeDescriptor( 3773 void AllocateStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
3774 CodeStubDescriptor* descriptor) {
3775 descriptor->Initialize(); 3774 descriptor->Initialize();
3776 } 3775 }
3777 3776
3778 void ToBooleanICStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { 3777 void ToBooleanICStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
3779 descriptor->Initialize(FUNCTION_ADDR(Runtime_ToBooleanIC_Miss)); 3778 descriptor->Initialize(FUNCTION_ADDR(Runtime_ToBooleanIC_Miss));
3780 descriptor->SetMissHandler(ExternalReference( 3779 descriptor->SetMissHandler(ExternalReference(
3781 Runtime::FunctionForId(Runtime::kToBooleanIC_Miss), isolate())); 3780 Runtime::FunctionForId(Runtime::kToBooleanIC_Miss), isolate()));
3782 } 3781 }
3783 3782
3784 3783
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
4011 if (type->Is(Type::UntaggedPointer())) { 4010 if (type->Is(Type::UntaggedPointer())) {
4012 return Representation::External(); 4011 return Representation::External();
4013 } 4012 }
4014 4013
4015 DCHECK(!type->Is(Type::Untagged())); 4014 DCHECK(!type->Is(Type::Untagged()));
4016 return Representation::Tagged(); 4015 return Representation::Tagged();
4017 } 4016 }
4018 4017
4019 } // namespace internal 4018 } // namespace internal
4020 } // namespace v8 4019 } // 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