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

Side by Side Diff: src/js/macros.py

Issue 1754593003: Implement TypedArray(typedarray) constructor (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: use the right equality Created 4 years, 9 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 | « no previous file | src/js/typedarray.js » ('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 2006-2009 the V8 project authors. All rights reserved. 1 # Copyright 2006-2009 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 macro IS_REGEXP(arg) = (%_IsRegExp(arg)); 83 macro IS_REGEXP(arg) = (%_IsRegExp(arg));
84 macro IS_SCRIPT(arg) = (%_ClassOf(arg) === 'Script'); 84 macro IS_SCRIPT(arg) = (%_ClassOf(arg) === 'Script');
85 macro IS_SET(arg) = (%_ClassOf(arg) === 'Set'); 85 macro IS_SET(arg) = (%_ClassOf(arg) === 'Set');
86 macro IS_SET_ITERATOR(arg) = (%_ClassOf(arg) === 'Set Iterator'); 86 macro IS_SET_ITERATOR(arg) = (%_ClassOf(arg) === 'Set Iterator');
87 macro IS_SHAREDARRAYBUFFER(arg) = (%_ClassOf(arg) === 'SharedArrayBuffer'); 87 macro IS_SHAREDARRAYBUFFER(arg) = (%_ClassOf(arg) === 'SharedArrayBuffer');
88 macro IS_SIMD_VALUE(arg) = (%IsSimdValue(arg)); 88 macro IS_SIMD_VALUE(arg) = (%IsSimdValue(arg));
89 macro IS_STRING(arg) = (typeof(arg) === 'string'); 89 macro IS_STRING(arg) = (typeof(arg) === 'string');
90 macro IS_STRING_WRAPPER(arg) = (%_ClassOf(arg) === 'String'); 90 macro IS_STRING_WRAPPER(arg) = (%_ClassOf(arg) === 'String');
91 macro IS_SYMBOL(arg) = (typeof(arg) === 'symbol'); 91 macro IS_SYMBOL(arg) = (typeof(arg) === 'symbol');
92 macro IS_SYMBOL_WRAPPER(arg) = (%_ClassOf(arg) === 'Symbol'); 92 macro IS_SYMBOL_WRAPPER(arg) = (%_ClassOf(arg) === 'Symbol');
93 macro IS_TYPEDARRAY(arg) = (%_IsTypedArray(arg));
93 macro IS_UNDEFINED(arg) = (arg === (void 0)); 94 macro IS_UNDEFINED(arg) = (arg === (void 0));
94 macro IS_WEAKMAP(arg) = (%_ClassOf(arg) === 'WeakMap'); 95 macro IS_WEAKMAP(arg) = (%_ClassOf(arg) === 'WeakMap');
95 macro IS_WEAKSET(arg) = (%_ClassOf(arg) === 'WeakSet'); 96 macro IS_WEAKSET(arg) = (%_ClassOf(arg) === 'WeakSet');
96 97
97 # Macro for ES queries of the type: "Type(O) is Object." 98 # Macro for ES queries of the type: "Type(O) is Object."
98 macro IS_RECEIVER(arg) = (%_IsJSReceiver(arg)); 99 macro IS_RECEIVER(arg) = (%_IsJSReceiver(arg));
99 100
100 # Macro for ES queries of the type: "IsCallable(O)" 101 # Macro for ES queries of the type: "IsCallable(O)"
101 macro IS_CALLABLE(arg) = (typeof(arg) === 'function'); 102 macro IS_CALLABLE(arg) = (typeof(arg) === 'function');
102 103
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 define kStrongMode = 10; 258 define kStrongMode = 10;
258 define kRegExpPrototypeStickyGetter = 11; 259 define kRegExpPrototypeStickyGetter = 11;
259 define kRegExpPrototypeToString = 12; 260 define kRegExpPrototypeToString = 12;
260 define kRegExpPrototypeUnicodeGetter = 13; 261 define kRegExpPrototypeUnicodeGetter = 13;
261 define kIntlV8Parse = 14; 262 define kIntlV8Parse = 14;
262 define kIntlPattern = 15; 263 define kIntlPattern = 15;
263 define kIntlResolved = 16; 264 define kIntlResolved = 16;
264 define kPromiseChain = 17; 265 define kPromiseChain = 17;
265 define kPromiseAccept = 18; 266 define kPromiseAccept = 18;
266 define kPromiseDefer = 19; 267 define kPromiseDefer = 19;
OLDNEW
« no previous file with comments | « no previous file | src/js/typedarray.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698