• Home
  • Raw
  • Download

Lines Matching refs:macro

47 macro IS_ARRAY(arg)             = (%_IsArray(arg));
48 macro IS_ARRAYBUFFER(arg) = (%_ClassOf(arg) === 'ArrayBuffer');
49 macro IS_BOOLEAN(arg) = (typeof(arg) === 'boolean');
50 macro IS_DATAVIEW(arg) = (%_ClassOf(arg) === 'DataView');
51 macro IS_DATE(arg) = (%IsDate(arg));
52 macro IS_ERROR(arg) = (%_ClassOf(arg) === 'Error');
53 macro IS_FUNCTION(arg) = (%IsFunction(arg));
54 macro IS_GENERATOR(arg) = (%_ClassOf(arg) === 'Generator');
55 macro IS_GLOBAL(arg) = (%_ClassOf(arg) === 'global');
56 macro IS_MAP(arg) = (%_ClassOf(arg) === 'Map');
57 macro IS_MAP_ITERATOR(arg) = (%_ClassOf(arg) === 'Map Iterator');
58 macro IS_NULL(arg) = (arg === null);
59 macro IS_NULL_OR_UNDEFINED(arg) = (arg == null);
60 macro IS_NUMBER(arg) = (typeof(arg) === 'number');
61 macro IS_OBJECT(arg) = (typeof(arg) === 'object');
62 macro IS_PROXY(arg) = (%_IsJSProxy(arg));
63 macro IS_SCRIPT(arg) = (%_ClassOf(arg) === 'Script');
64 macro IS_SET(arg) = (%_ClassOf(arg) === 'Set');
65 macro IS_SET_ITERATOR(arg) = (%_ClassOf(arg) === 'Set Iterator');
66 macro IS_SHAREDARRAYBUFFER(arg) = (%_ClassOf(arg) === 'SharedArrayBuffer');
67 macro IS_STRING(arg) = (typeof(arg) === 'string');
68 macro IS_SYMBOL(arg) = (typeof(arg) === 'symbol');
69 macro IS_TYPEDARRAY(arg) = (%_IsTypedArray(arg));
70 macro IS_UNDEFINED(arg) = (arg === (void 0));
71 macro IS_WEAKMAP(arg) = (%_ClassOf(arg) === 'WeakMap');
72 macro IS_WEAKSET(arg) = (%_ClassOf(arg) === 'WeakSet');
75 macro IS_RECEIVER(arg) = (%_IsJSReceiver(arg));
78 macro IS_CALLABLE(arg) = (typeof(arg) === 'function');
82 macro CHECK_OBJECT_COERCIBLE(arg, functionName) = if (IS_NULL(%IS_VAR(arg)) || IS_UNDEFINED(arg)) t…
85 macro NUMBER_IS_NAN(arg) = (!%_IsSmi(%IS_VAR(arg)) && !(arg == arg));
86 macro NUMBER_IS_FINITE(arg) = (%_IsSmi(%IS_VAR(arg)) || ((arg == arg) && (arg != 1/0) && (arg != -1…
87 macro TO_BOOLEAN(arg) = (!!(arg));
88 macro TO_INTEGER(arg) = (%_ToInteger(arg));
89 macro TO_INT32(arg) = ((arg) | 0);
90 macro TO_UINT32(arg) = ((arg) >>> 0);
91 macro INVERT_NEG_ZERO(arg) = ((arg) + 0);
92 macro TO_LENGTH(arg) = (%_ToLength(arg));
93 macro TO_STRING(arg) = (%_ToString(arg));
94 macro TO_NUMBER(arg) = (%_ToNumber(arg));
95 macro TO_OBJECT(arg) = (%_ToObject(arg));
96 macro HAS_OWN_PROPERTY(obj, key) = (%_Call(ObjectHasOwnProperty, obj, key));
99 macro IS_PRIVATE(sym) = (%SymbolIsPrivate(sym));
100 macro HAS_PRIVATE(obj, key) = HAS_OWN_PROPERTY(obj, key);
101 macro HAS_DEFINED_PRIVATE(obj, sym) = (!IS_UNDEFINED(obj[sym]));
102 macro GET_PRIVATE(obj, sym) = (obj[sym]);
103 macro SET_PRIVATE(obj, sym, val) = (obj[sym] = val);
106 macro ANONYMOUS_FUNCTION(fn) = (0, (fn));
113 python macro CHAR_CODE(str) = ord(str[1]);
137 macro FIXED_ARRAY_GET(array, index) = (%_FixedArrayGet(array, (index) | 0));
138 macro FIXED_ARRAY_SET(array, index, value) = (%_FixedArraySet(array, (index) | 0, value));
140 macro FIXED_ARRAY_SET_SMI(array, index, value) = (FIXED_ARRAY_SET(array, index, (value) | 0));
142 macro ORDERED_HASH_TABLE_BUCKET_COUNT(table) = (FIXED_ARRAY_GET(table, 2));
143 macro ORDERED_HASH_TABLE_ELEMENT_COUNT(table) = (FIXED_ARRAY_GET(table, 0));
144 macro ORDERED_HASH_TABLE_SET_ELEMENT_COUNT(table, count) = (FIXED_ARRAY_SET_SMI(table, 0, count));
145 macro ORDERED_HASH_TABLE_DELETED_COUNT(table) = (FIXED_ARRAY_GET(table, 1));
146 macro ORDERED_HASH_TABLE_SET_DELETED_COUNT(table, count) = (FIXED_ARRAY_SET_SMI(table, 1, count));
147 macro ORDERED_HASH_TABLE_BUCKET_AT(table, bucket) = (FIXED_ARRAY_GET(table, 3 + (bucket)));
148 macro ORDERED_HASH_TABLE_SET_BUCKET_AT(table, bucket, entry) = (FIXED_ARRAY_SET(table, 3 + (bucket)…
150 macro ORDERED_HASH_TABLE_HASH_TO_BUCKET(hash, numBuckets) = (hash & ((numBuckets) - 1));
152 macro ORDERED_HASH_SET_ENTRY_TO_INDEX(entry, numBuckets) = (3 + (numBuckets) + ((entry) << 1));
153 macro ORDERED_HASH_SET_KEY_AT(table, entry, numBuckets) = (FIXED_ARRAY_GET(table, ORDERED_HASH_SET_…
154 macro ORDERED_HASH_SET_CHAIN_AT(table, entry, numBuckets) = (FIXED_ARRAY_GET(table, ORDERED_HASH_SE…
156 macro ORDERED_HASH_MAP_ENTRY_TO_INDEX(entry, numBuckets) = (3 + (numBuckets) + ((entry) * 3));
157 macro ORDERED_HASH_MAP_KEY_AT(table, entry, numBuckets) = (FIXED_ARRAY_GET(table, ORDERED_HASH_MAP_…
158 macro ORDERED_HASH_MAP_VALUE_AT(table, entry, numBuckets) = (FIXED_ARRAY_GET(table, ORDERED_HASH_MA…
159 macro ORDERED_HASH_MAP_CHAIN_AT(table, entry, numBuckets) = (FIXED_ARRAY_GET(table, ORDERED_HASH_MA…