OLD | NEW |
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 macro IS_NULL_OR_UNDEFINED(arg) = (arg == null); | 78 macro IS_NULL_OR_UNDEFINED(arg) = (arg == null); |
79 macro IS_NUMBER(arg) = (typeof(arg) === 'number'); | 79 macro IS_NUMBER(arg) = (typeof(arg) === 'number'); |
80 macro IS_NUMBER_WRAPPER(arg) = (%_ClassOf(arg) === 'Number'); | 80 macro IS_NUMBER_WRAPPER(arg) = (%_ClassOf(arg) === 'Number'); |
81 macro IS_OBJECT(arg) = (typeof(arg) === 'object'); | 81 macro IS_OBJECT(arg) = (typeof(arg) === 'object'); |
82 macro IS_PROXY(arg) = (%_IsJSProxy(arg)); | 82 macro IS_PROXY(arg) = (%_IsJSProxy(arg)); |
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_STRONG(arg) = (%IsStrong(arg)); | 91 macro IS_STRONG(arg) = (%IsStrong(arg)); |
92 macro IS_SYMBOL(arg) = (typeof(arg) === 'symbol'); | 92 macro IS_SYMBOL(arg) = (typeof(arg) === 'symbol'); |
93 macro IS_SYMBOL_WRAPPER(arg) = (%_ClassOf(arg) === 'Symbol'); | 93 macro IS_SYMBOL_WRAPPER(arg) = (%_ClassOf(arg) === 'Symbol'); |
94 macro IS_UNDEFINED(arg) = (arg === (void 0)); | 94 macro IS_UNDEFINED(arg) = (arg === (void 0)); |
95 macro IS_WEAKMAP(arg) = (%_ClassOf(arg) === 'WeakMap'); | 95 macro IS_WEAKMAP(arg) = (%_ClassOf(arg) === 'WeakMap'); |
96 macro IS_WEAKSET(arg) = (%_ClassOf(arg) === 'WeakSet'); | 96 macro IS_WEAKSET(arg) = (%_ClassOf(arg) === 'WeakSet'); |
97 | 97 |
98 # Macro for ES queries of the type: "Type(O) is Object." | 98 # Macro for ES queries of the type: "Type(O) is Object." |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 define kStrongMode = 10; | 258 define kStrongMode = 10; |
259 define kRegExpPrototypeStickyGetter = 11; | 259 define kRegExpPrototypeStickyGetter = 11; |
260 define kRegExpPrototypeToString = 12; | 260 define kRegExpPrototypeToString = 12; |
261 define kRegExpPrototypeUnicodeGetter = 13; | 261 define kRegExpPrototypeUnicodeGetter = 13; |
262 define kIntlV8Parse = 14; | 262 define kIntlV8Parse = 14; |
263 define kIntlPattern = 15; | 263 define kIntlPattern = 15; |
264 define kIntlResolved = 16; | 264 define kIntlResolved = 16; |
265 define kPromiseChain = 17; | 265 define kPromiseChain = 17; |
266 define kPromiseAccept = 18; | 266 define kPromiseAccept = 18; |
267 define kPromiseDefer = 19; | 267 define kPromiseDefer = 19; |
OLD | NEW |