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

Side by Side Diff: src/globals.h

Issue 2484003002: [builtins] implement JSBuiltinReducer for ArrayIteratorNext() (Closed)
Patch Set: fix tests when ignition is used Created 4 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 | « src/compiler/verifier.cc ('k') | src/heap/heap.h » ('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 #ifndef V8_GLOBALS_H_ 5 #ifndef V8_GLOBALS_H_
6 #define V8_GLOBALS_H_ 6 #define V8_GLOBALS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 switch (encoding) { 1272 switch (encoding) {
1273 case UnicodeEncoding::UTF16: 1273 case UnicodeEncoding::UTF16:
1274 return os << "UTF16"; 1274 return os << "UTF16";
1275 case UnicodeEncoding::UTF32: 1275 case UnicodeEncoding::UTF32:
1276 return os << "UTF32"; 1276 return os << "UTF32";
1277 } 1277 }
1278 UNREACHABLE(); 1278 UNREACHABLE();
1279 return os; 1279 return os;
1280 } 1280 }
1281 1281
1282 enum class IterationKind { kKeys, kValues, kEntries };
1283
1284 inline std::ostream& operator<<(std::ostream& os, IterationKind kind) {
1285 switch (kind) {
1286 case IterationKind::kKeys:
1287 return os << "IterationKind::kKeys";
1288 case IterationKind::kValues:
1289 return os << "IterationKind::kValues";
1290 case IterationKind::kEntries:
1291 return os << "IterationKind::kEntries";
1292 }
1293 UNREACHABLE();
1294 return os;
1295 }
1296
1282 } // namespace internal 1297 } // namespace internal
1283 } // namespace v8 1298 } // namespace v8
1284 1299
1300 // Used by js-builtin-reducer to identify whether ReduceArrayIterator() is
1301 // reducing a JSArray method, or a JSTypedArray method.
1302 enum class ArrayIteratorKind { kArray, kTypedArray };
1303
1285 namespace i = v8::internal; 1304 namespace i = v8::internal;
1286 1305
1287 #endif // V8_GLOBALS_H_ 1306 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698