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

Side by Side Diff: src/ast/ast-types.cc

Issue 2345823002: [modules] Turn JSModule into Module. (Closed)
Patch Set: Address comments. Created 4 years, 3 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/api.cc ('k') | src/compiler/types.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/ast/ast-types.h" 7 #include "src/ast/ast-types.h"
8 8
9 #include "src/handles-inl.h" 9 #include "src/handles-inl.h"
10 #include "src/ostreams.h" 10 #include "src/ostreams.h"
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 case JS_GLOBAL_PROXY_TYPE: 201 case JS_GLOBAL_PROXY_TYPE:
202 case JS_API_OBJECT_TYPE: 202 case JS_API_OBJECT_TYPE:
203 case JS_SPECIAL_API_OBJECT_TYPE: 203 case JS_SPECIAL_API_OBJECT_TYPE:
204 if (map->is_undetectable()) return kOtherUndetectable; 204 if (map->is_undetectable()) return kOtherUndetectable;
205 return kOtherObject; 205 return kOtherObject;
206 case JS_VALUE_TYPE: 206 case JS_VALUE_TYPE:
207 case JS_MESSAGE_OBJECT_TYPE: 207 case JS_MESSAGE_OBJECT_TYPE:
208 case JS_DATE_TYPE: 208 case JS_DATE_TYPE:
209 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: 209 case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
210 case JS_GENERATOR_OBJECT_TYPE: 210 case JS_GENERATOR_OBJECT_TYPE:
211 case JS_MODULE_TYPE:
212 case JS_ARRAY_BUFFER_TYPE: 211 case JS_ARRAY_BUFFER_TYPE:
213 case JS_ARRAY_TYPE: 212 case JS_ARRAY_TYPE:
214 case JS_REGEXP_TYPE: // TODO(rossberg): there should be a RegExp type. 213 case JS_REGEXP_TYPE: // TODO(rossberg): there should be a RegExp type.
215 case JS_TYPED_ARRAY_TYPE: 214 case JS_TYPED_ARRAY_TYPE:
216 case JS_DATA_VIEW_TYPE: 215 case JS_DATA_VIEW_TYPE:
217 case JS_SET_TYPE: 216 case JS_SET_TYPE:
218 case JS_MAP_TYPE: 217 case JS_MAP_TYPE:
219 case JS_SET_ITERATOR_TYPE: 218 case JS_SET_ITERATOR_TYPE:
220 case JS_MAP_ITERATOR_TYPE: 219 case JS_MAP_ITERATOR_TYPE:
221 case JS_WEAK_MAP_TYPE: 220 case JS_WEAK_MAP_TYPE:
(...skipping 15 matching lines...) Expand all
237 case ACCESSOR_PAIR_TYPE: 236 case ACCESSOR_PAIR_TYPE:
238 case FIXED_ARRAY_TYPE: 237 case FIXED_ARRAY_TYPE:
239 case FIXED_DOUBLE_ARRAY_TYPE: 238 case FIXED_DOUBLE_ARRAY_TYPE:
240 case BYTE_ARRAY_TYPE: 239 case BYTE_ARRAY_TYPE:
241 case BYTECODE_ARRAY_TYPE: 240 case BYTECODE_ARRAY_TYPE:
242 case TRANSITION_ARRAY_TYPE: 241 case TRANSITION_ARRAY_TYPE:
243 case FOREIGN_TYPE: 242 case FOREIGN_TYPE:
244 case SCRIPT_TYPE: 243 case SCRIPT_TYPE:
245 case CODE_TYPE: 244 case CODE_TYPE:
246 case PROPERTY_CELL_TYPE: 245 case PROPERTY_CELL_TYPE:
246 case MODULE_TYPE:
247 return kOtherInternal & kTaggedPointer; 247 return kOtherInternal & kTaggedPointer;
248 248
249 // Remaining instance types are unsupported for now. If any of them do 249 // Remaining instance types are unsupported for now. If any of them do
250 // require bit set types, they should get kOtherInternal & kTaggedPointer. 250 // require bit set types, they should get kOtherInternal & kTaggedPointer.
251 case MUTABLE_HEAP_NUMBER_TYPE: 251 case MUTABLE_HEAP_NUMBER_TYPE:
252 case FREE_SPACE_TYPE: 252 case FREE_SPACE_TYPE:
253 #define FIXED_TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \ 253 #define FIXED_TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \
254 case FIXED_##TYPE##_ARRAY_TYPE: 254 case FIXED_##TYPE##_ARRAY_TYPE:
255 255
256 TYPED_ARRAYS(FIXED_TYPED_ARRAY_CASE) 256 TYPED_ARRAYS(FIXED_TYPED_ARRAY_CASE)
(...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after
1259 #undef CONSTRUCT_SIMD_TYPE 1259 #undef CONSTRUCT_SIMD_TYPE
1260 1260
1261 // ----------------------------------------------------------------------------- 1261 // -----------------------------------------------------------------------------
1262 // Instantiations. 1262 // Instantiations.
1263 1263
1264 template class AstType::Iterator<i::Map>; 1264 template class AstType::Iterator<i::Map>;
1265 template class AstType::Iterator<i::Object>; 1265 template class AstType::Iterator<i::Object>;
1266 1266
1267 } // namespace internal 1267 } // namespace internal
1268 } // namespace v8 1268 } // namespace v8
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/compiler/types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698