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

Side by Side Diff: src/compiler/types.cc

Issue 2819583002: [turbofan] Introduce a dedicated Array type. (Closed)
Patch Set: Created 3 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/compiler/types.h ('k') | src/compiler/verifier.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 <iomanip> 5 #include <iomanip>
6 6
7 #include "src/compiler/types.h" 7 #include "src/compiler/types.h"
8 8
9 #include "src/handles-inl.h" 9 #include "src/handles-inl.h"
10 #include "src/objects-inl.h" 10 #include "src/objects-inl.h"
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // callable, which is what we need to support document.all. We 201 // callable, which is what we need to support document.all. We
202 // could add another Type bit to support other use cases in the 202 // could add another Type bit to support other use cases in the
203 // future if necessary. 203 // future if necessary.
204 DCHECK(map->is_callable()); 204 DCHECK(map->is_callable());
205 return kOtherUndetectable; 205 return kOtherUndetectable;
206 } 206 }
207 if (map->is_callable()) { 207 if (map->is_callable()) {
208 return kOtherCallable; 208 return kOtherCallable;
209 } 209 }
210 return kOtherObject; 210 return kOtherObject;
211 case JS_ARRAY_TYPE:
212 return kArray;
211 case JS_VALUE_TYPE: 213 case JS_VALUE_TYPE:
212 case JS_MESSAGE_OBJECT_TYPE: 214 case JS_MESSAGE_OBJECT_TYPE:
213 case JS_DATE_TYPE: 215 case JS_DATE_TYPE:
214 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: 216 case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
215 case JS_GENERATOR_OBJECT_TYPE: 217 case JS_GENERATOR_OBJECT_TYPE:
216 case JS_ASYNC_GENERATOR_OBJECT_TYPE: 218 case JS_ASYNC_GENERATOR_OBJECT_TYPE:
217 case JS_MODULE_NAMESPACE_TYPE: 219 case JS_MODULE_NAMESPACE_TYPE:
218 case JS_ARRAY_BUFFER_TYPE: 220 case JS_ARRAY_BUFFER_TYPE:
219 case JS_ARRAY_TYPE:
220 case JS_REGEXP_TYPE: // TODO(rossberg): there should be a RegExp type. 221 case JS_REGEXP_TYPE: // TODO(rossberg): there should be a RegExp type.
221 case JS_TYPED_ARRAY_TYPE: 222 case JS_TYPED_ARRAY_TYPE:
222 case JS_DATA_VIEW_TYPE: 223 case JS_DATA_VIEW_TYPE:
223 case JS_SET_TYPE: 224 case JS_SET_TYPE:
224 case JS_MAP_TYPE: 225 case JS_MAP_TYPE:
225 case JS_SET_ITERATOR_TYPE: 226 case JS_SET_ITERATOR_TYPE:
226 case JS_MAP_ITERATOR_TYPE: 227 case JS_MAP_ITERATOR_TYPE:
227 case JS_STRING_ITERATOR_TYPE: 228 case JS_STRING_ITERATOR_TYPE:
228 case JS_ASYNC_FROM_SYNC_ITERATOR_TYPE: 229 case JS_ASYNC_FROM_SYNC_ITERATOR_TYPE:
229 230
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 return i::SmiValuesAre31Bits() ? kSigned31 : kSigned32; 1056 return i::SmiValuesAre31Bits() ? kSigned31 : kSigned32;
1056 } 1057 }
1057 1058
1058 BitsetType::bitset BitsetType::UnsignedSmall() { 1059 BitsetType::bitset BitsetType::UnsignedSmall() {
1059 return i::SmiValuesAre31Bits() ? kUnsigned30 : kUnsigned31; 1060 return i::SmiValuesAre31Bits() ? kUnsigned30 : kUnsigned31;
1060 } 1061 }
1061 1062
1062 } // namespace compiler 1063 } // namespace compiler
1063 } // namespace internal 1064 } // namespace internal
1064 } // namespace v8 1065 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/types.h ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698