Lines Matching refs:macro

65 macro IS_ARRAY(arg)             = (%_IsArray(arg));
66 macro IS_ARRAYBUFFER(arg) = (%_ClassOf(arg) === 'ArrayBuffer');
67 macro IS_BOOLEAN(arg) = (typeof(arg) === 'boolean');
68 macro IS_BOOLEAN_WRAPPER(arg) = (%_ClassOf(arg) === 'Boolean');
69 macro IS_DATAVIEW(arg) = (%_ClassOf(arg) === 'DataView');
70 macro IS_DATE(arg) = (%_IsDate(arg));
71 macro IS_ERROR(arg) = (%_ClassOf(arg) === 'Error');
72 macro IS_FUNCTION(arg) = (%_IsFunction(arg));
73 macro IS_GENERATOR(arg) = (%_ClassOf(arg) === 'Generator');
74 macro IS_GLOBAL(arg) = (%_ClassOf(arg) === 'global');
75 macro IS_MAP(arg) = (%_ClassOf(arg) === 'Map');
76 macro IS_MAP_ITERATOR(arg) = (%_ClassOf(arg) === 'Map Iterator');
77 macro IS_NULL(arg) = (arg === null);
78 macro IS_NULL_OR_UNDEFINED(arg) = (arg == null);
79 macro IS_NUMBER(arg) = (typeof(arg) === 'number');
80 macro IS_NUMBER_WRAPPER(arg) = (%_ClassOf(arg) === 'Number');
81 macro IS_OBJECT(arg) = (typeof(arg) === 'object');
82 macro IS_PROXY(arg) = (%_IsJSProxy(arg));
83 macro IS_REGEXP(arg) = (%_IsRegExp(arg));
84 macro IS_SCRIPT(arg) = (%_ClassOf(arg) === 'Script');
85 macro IS_SET(arg) = (%_ClassOf(arg) === 'Set');
86 macro IS_SET_ITERATOR(arg) = (%_ClassOf(arg) === 'Set Iterator');
87 macro IS_SHAREDARRAYBUFFER(arg) = (%_ClassOf(arg) === 'SharedArrayBuffer');
88 macro IS_SIMD_VALUE(arg) = (%_IsSimdValue(arg));
89 macro IS_STRING(arg) = (typeof(arg) === 'string');
90 macro IS_STRING_WRAPPER(arg) = (%_ClassOf(arg) === 'String');
91 macro IS_STRONG(arg) = (%IsStrong(arg));
92 macro IS_SYMBOL(arg) = (typeof(arg) === 'symbol');
93 macro IS_SYMBOL_WRAPPER(arg) = (%_ClassOf(arg) === 'Symbol');
94 macro IS_UNDEFINED(arg) = (arg === (void 0));
95 macro IS_WEAKMAP(arg) = (%_ClassOf(arg) === 'WeakMap');
96 macro IS_WEAKSET(arg) = (%_ClassOf(arg) === 'WeakSet');
99 macro IS_RECEIVER(arg) = (%_IsJSReceiver(arg));
102 macro IS_CALLABLE(arg) = (typeof(arg) === 'function');
106 macro CHECK_OBJECT_COERCIBLE(arg, functionName) = if (IS_NULL(%IS_VAR(arg)) || IS_UNDEFINED(arg)) t…
109 macro NUMBER_IS_NAN(arg) = (!%_IsSmi(%IS_VAR(arg)) && !(arg == arg));
110 macro NUMBER_IS_FINITE(arg) = (%_IsSmi(%IS_VAR(arg)) || ((arg == arg) && (arg != 1/0) && (arg != -1…
111 macro TO_BOOLEAN(arg) = (!!(arg));
112 macro TO_INTEGER(arg) = (%_ToInteger(arg));
113 macro TO_INTEGER_MAP_MINUS_ZERO(arg) = (%_IsSmi(%IS_VAR(arg)) ? arg : %NumberToIntegerMapMinusZero(…
114 macro TO_INT32(arg) = ((arg) | 0);
115 macro TO_UINT32(arg) = ((arg) >>> 0);
116 macro TO_LENGTH(arg) = (%_ToLength(arg));
117 macro TO_LENGTH_OR_UINT32(arg) = (FLAG_harmony_tolength ? TO_LENGTH(arg) : TO_UINT32(arg));
118 macro TO_LENGTH_OR_INTEGER(arg) = (FLAG_harmony_tolength ? TO_LENGTH(arg) : TO_INTEGER(arg));
119 macro TO_STRING(arg) = (%_ToString(arg));
120 macro TO_NUMBER(arg) = (%_ToNumber(arg));
121 macro TO_OBJECT(arg) = (%_ToObject(arg));
122 macro TO_PRIMITIVE(arg) = (%_ToPrimitive(arg));
123 macro TO_PRIMITIVE_NUMBER(arg) = (%_ToPrimitive_Number(arg));
124 macro TO_PRIMITIVE_STRING(arg) = (%_ToPrimitive_String(arg));
125 macro TO_NAME(arg) = (%_ToName(arg));
126 macro JSON_NUMBER_TO_STRING(arg) = ((%_IsSmi(%IS_VAR(arg)) || arg - arg == 0) ? %_NumberToString(ar…
127 macro HAS_OWN_PROPERTY(arg, index) = (%_Call(ObjectHasOwnProperty, arg, index));
128 macro HAS_INDEX(array, index, is_array) = ((is_array && %_HasFastPackedElements(%IS_VAR(array))) ? …
131 macro IS_PRIVATE(sym) = (%SymbolIsPrivate(sym));
132 macro HAS_PRIVATE(obj, sym) = (%HasOwnProperty(obj, sym));
133 macro HAS_DEFINED_PRIVATE(obj, sym) = (!IS_UNDEFINED(obj[sym]));
134 macro GET_PRIVATE(obj, sym) = (obj[sym]);
135 macro SET_PRIVATE(obj, sym, val) = (obj[sym] = val);
142 python macro CHAR_CODE(str) = ord(str[1]);
149 macro REGEXP_GLOBAL(regexp) = (%_RegExpFlags(regexp) & 1);
150 macro REGEXP_IGNORE_CASE(regexp) = (%_RegExpFlags(regexp) & 2);
151 macro REGEXP_MULTILINE(regexp) = (%_RegExpFlags(regexp) & 4);
152 macro REGEXP_STICKY(regexp) = (%_RegExpFlags(regexp) & 8);
153 macro REGEXP_UNICODE(regexp) = (%_RegExpFlags(regexp) & 16);
154 macro REGEXP_SOURCE(regexp) = (%_RegExpSource(regexp));
158 macro NUMBER_OF_CAPTURES(array) = ((array)[0]);
162 macro LAST_SUBJECT(array) = ((array)[1]);
163 macro LAST_INPUT(array) = ((array)[2]);
166 macro CAPTURE(index) = (3 + (index));
173 macro OVERRIDE_MATCH(override) = ((override)[0]);
174 macro OVERRIDE_POS(override) = ((override)[(override).length - 2]);
175 macro OVERRIDE_SUBJECT(override) = ((override)[(override).length - 1]);
177 macro OVERRIDE_CAPTURE(override, index) = ((override)[(index)]);
214 macro FIXED_ARRAY_GET(array, index) = (%_FixedArrayGet(array, (index) | 0));
215 macro FIXED_ARRAY_SET(array, index, value) = (%_FixedArraySet(array, (index) | 0, value));
217 macro FIXED_ARRAY_SET_SMI(array, index, value) = (FIXED_ARRAY_SET(array, index, (value) | 0));
219 macro ORDERED_HASH_TABLE_BUCKET_COUNT(table) = (FIXED_ARRAY_GET(table, 0));
220 macro ORDERED_HASH_TABLE_ELEMENT_COUNT(table) = (FIXED_ARRAY_GET(table, 1));
221 macro ORDERED_HASH_TABLE_SET_ELEMENT_COUNT(table, count) = (FIXED_ARRAY_SET_SMI(table, 1, count));
222 macro ORDERED_HASH_TABLE_DELETED_COUNT(table) = (FIXED_ARRAY_GET(table, 2));
223 macro ORDERED_HASH_TABLE_SET_DELETED_COUNT(table, count) = (FIXED_ARRAY_SET_SMI(table, 2, count));
224 macro ORDERED_HASH_TABLE_BUCKET_AT(table, bucket) = (FIXED_ARRAY_GET(table, 3 + (bucket)));
225 macro ORDERED_HASH_TABLE_SET_BUCKET_AT(table, bucket, entry) = (FIXED_ARRAY_SET(table, 3 + (bucket)…
227 macro ORDERED_HASH_TABLE_HASH_TO_BUCKET(hash, numBuckets) = (hash & ((numBuckets) - 1));
229 macro ORDERED_HASH_SET_ENTRY_TO_INDEX(entry, numBuckets) = (3 + (numBuckets) + ((entry) << 1));
230 macro ORDERED_HASH_SET_KEY_AT(table, entry, numBuckets) = (FIXED_ARRAY_GET(table, ORDERED_HASH_SET_…
231 macro ORDERED_HASH_SET_CHAIN_AT(table, entry, numBuckets) = (FIXED_ARRAY_GET(table, ORDERED_HASH_SE…
233 macro ORDERED_HASH_MAP_ENTRY_TO_INDEX(entry, numBuckets) = (3 + (numBuckets) + ((entry) * 3));
234 macro ORDERED_HASH_MAP_KEY_AT(table, entry, numBuckets) = (FIXED_ARRAY_GET(table, ORDERED_HASH_MAP_…
235 macro ORDERED_HASH_MAP_VALUE_AT(table, entry, numBuckets) = (FIXED_ARRAY_GET(table, ORDERED_HASH_MA…
236 macro ORDERED_HASH_MAP_CHAIN_AT(table, entry, numBuckets) = (FIXED_ARRAY_GET(table, ORDERED_HASH_MA…
243 macro DEBUG_PREPARE_STEP_IN_IF_STEPPING(function) = if (%_DebugIsActive() != 0) %DebugPrepareStepIn…