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

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

Issue 1416953006: [types] Use unified integral representation bits. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | src/compiler/typer.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 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 } 1054 }
1055 1055
1056 1056
1057 InternalArrayConstructorStub::InternalArrayConstructorStub( 1057 InternalArrayConstructorStub::InternalArrayConstructorStub(
1058 Isolate* isolate) : PlatformCodeStub(isolate) { 1058 Isolate* isolate) : PlatformCodeStub(isolate) {
1059 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 1059 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
1060 } 1060 }
1061 1061
1062 1062
1063 Representation RepresentationFromType(Type* type) { 1063 Representation RepresentationFromType(Type* type) {
1064 if (type->Is(Type::UntaggedSigned()) || type->Is(Type::UntaggedUnsigned())) { 1064 if (type->Is(Type::UntaggedIntegral())) {
1065 return Representation::Integer32(); 1065 return Representation::Integer32();
1066 } 1066 }
1067 1067
1068 if (type->Is(Type::TaggedSigned())) { 1068 if (type->Is(Type::TaggedSigned())) {
1069 return Representation::Smi(); 1069 return Representation::Smi();
1070 } 1070 }
1071 1071
1072 if (type->Is(Type::UntaggedPointer())) { 1072 if (type->Is(Type::UntaggedPointer())) {
1073 return Representation::External(); 1073 return Representation::External();
1074 } 1074 }
1075 1075
1076 DCHECK(!type->Is(Type::Untagged())); 1076 DCHECK(!type->Is(Type::Untagged()));
1077 return Representation::Tagged(); 1077 return Representation::Tagged();
1078 } 1078 }
1079
1079 } // namespace internal 1080 } // namespace internal
1080 } // namespace v8 1081 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698