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/factory.h" | 10 #include "src/factory.h" |
(...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |