| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 macro IS_FUNCTION(arg) = (%IsFunction(arg)); | 53 macro IS_FUNCTION(arg) = (%IsFunction(arg)); |
| 54 macro IS_GENERATOR(arg) = (%_ClassOf(arg) === 'Generator'); | 54 macro IS_GENERATOR(arg) = (%_ClassOf(arg) === 'Generator'); |
| 55 macro IS_GLOBAL(arg) = (%_ClassOf(arg) === 'global'); | 55 macro IS_GLOBAL(arg) = (%_ClassOf(arg) === 'global'); |
| 56 macro IS_MAP(arg) = (%_ClassOf(arg) === 'Map'); | 56 macro IS_MAP(arg) = (%_ClassOf(arg) === 'Map'); |
| 57 macro IS_MAP_ITERATOR(arg) = (%_ClassOf(arg) === 'Map Iterator'); | 57 macro IS_MAP_ITERATOR(arg) = (%_ClassOf(arg) === 'Map Iterator'); |
| 58 macro IS_NULL(arg) = (arg === null); | 58 macro IS_NULL(arg) = (arg === null); |
| 59 macro IS_NULL_OR_UNDEFINED(arg) = (arg == null); | 59 macro IS_NULL_OR_UNDEFINED(arg) = (arg == null); |
| 60 macro IS_NUMBER(arg) = (typeof(arg) === 'number'); | 60 macro IS_NUMBER(arg) = (typeof(arg) === 'number'); |
| 61 macro IS_OBJECT(arg) = (typeof(arg) === 'object'); | 61 macro IS_OBJECT(arg) = (typeof(arg) === 'object'); |
| 62 macro IS_PROXY(arg) = (%_IsJSProxy(arg)); | 62 macro IS_PROXY(arg) = (%_IsJSProxy(arg)); |
| 63 macro IS_REGEXP(arg) = (%_IsRegExp(arg)); | |
| 64 macro IS_SCRIPT(arg) = (%_ClassOf(arg) === 'Script'); | 63 macro IS_SCRIPT(arg) = (%_ClassOf(arg) === 'Script'); |
| 65 macro IS_SET(arg) = (%_ClassOf(arg) === 'Set'); | 64 macro IS_SET(arg) = (%_ClassOf(arg) === 'Set'); |
| 66 macro IS_SET_ITERATOR(arg) = (%_ClassOf(arg) === 'Set Iterator'); | 65 macro IS_SET_ITERATOR(arg) = (%_ClassOf(arg) === 'Set Iterator'); |
| 67 macro IS_SHAREDARRAYBUFFER(arg) = (%_ClassOf(arg) === 'SharedArrayBuffer'); | 66 macro IS_SHAREDARRAYBUFFER(arg) = (%_ClassOf(arg) === 'SharedArrayBuffer'); |
| 68 macro IS_SIMD_VALUE(arg) = (%IsSimdValue(arg)); | 67 macro IS_SIMD_VALUE(arg) = (%IsSimdValue(arg)); |
| 69 macro IS_STRING(arg) = (typeof(arg) === 'string'); | 68 macro IS_STRING(arg) = (typeof(arg) === 'string'); |
| 70 macro IS_SYMBOL(arg) = (typeof(arg) === 'symbol'); | 69 macro IS_SYMBOL(arg) = (typeof(arg) === 'symbol'); |
| 71 macro IS_TYPEDARRAY(arg) = (%_IsTypedArray(arg)); | 70 macro IS_TYPEDARRAY(arg) = (%_IsTypedArray(arg)); |
| 72 macro IS_UNDEFINED(arg) = (arg === (void 0)); | 71 macro IS_UNDEFINED(arg) = (arg === (void 0)); |
| 73 macro IS_WEAKMAP(arg) = (%_ClassOf(arg) === 'WeakMap'); | 72 macro IS_WEAKMAP(arg) = (%_ClassOf(arg) === 'WeakMap'); |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 define kPromiseReject = 3; | 212 define kPromiseReject = 3; |
| 214 define kPromiseResolveThenableJob = 4; | 213 define kPromiseResolveThenableJob = 4; |
| 215 | 214 |
| 216 # These values must be kept in sync with PromiseDebugActionType in | 215 # These values must be kept in sync with PromiseDebugActionType in |
| 217 # src/debug/debug.h | 216 # src/debug/debug.h |
| 218 define kEnqueue = 0; | 217 define kEnqueue = 0; |
| 219 define kEnqueueRecurring = 1; | 218 define kEnqueueRecurring = 1; |
| 220 define kCancel = 2; | 219 define kCancel = 2; |
| 221 define kWillHandle = 3; | 220 define kWillHandle = 3; |
| 222 define kDidHandle = 4; | 221 define kDidHandle = 4; |
| OLD | NEW |