Lines Matching refs:if
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
49 if (functions.length >= 8) {
73 if (property_count >= 4) {
76 if (fields) {
97 if (!IS_NUMBER(number)) number = NonNumberToNumber(number);
104 if (!IS_NUMBER(number)) number = NonNumberToNumber(number);
111 if (IS_UNDEFINED(radix) || radix === 10 || radix === 0) {
117 if (%_IsSmi(string)) return string;
118 if (IS_NUMBER(string) &&
130 if (!(radix == 0 || (2 <= radix && radix <= 36))) {
135 if (%_HasCachedArrayIndex(string) &&
146 if (%_HasCachedArrayIndex(string)) return %_GetCachedArrayIndex(string);
152 if (!IS_STRING(x)) return x;
160 // We only throw if the global has been detached, since we need the
162 if (global_is_detached) {
168 if (!IS_FUNCTION(f)) return f;
206 if (%_IsConstructCall()) {
224 if (IS_UNDEFINED(this) && !IS_UNDETECTABLE(this)) {
227 if (IS_NULL(this)) return '[object Null]';
234 if (IS_NULL_OR_UNDEFINED(this) && !IS_UNDETECTABLE(this)) {
250 if (%IsJSProxy(this)) {
260 if (IS_NULL_OR_UNDEFINED(this) && !IS_UNDETECTABLE(this)) {
264 if (!IS_SPEC_OBJECT(V)) return false;
272 if (%IsJSProxy(this)) {
283 if (receiver == null && !IS_UNDETECTABLE(receiver)) {
286 if (!IS_SPEC_FUNCTION(fun)) {
300 if (receiver == null && !IS_UNDETECTABLE(receiver)) {
309 if (receiver == null && !IS_UNDETECTABLE(receiver)) {
312 if (!IS_SPEC_FUNCTION(fun)) {
326 if (receiver == null && !IS_UNDETECTABLE(receiver)) {
334 if (!IS_SPEC_OBJECT(obj)) {
337 if (%IsJSProxy(obj)) {
348 if (IS_UNDEFINED(desc)) return false;
355 if (IS_UNDEFINED(desc)) return false;
362 if (IS_UNDEFINED(desc)) return false;
374 if (IS_UNDEFINED(desc)) return desc;
376 if (IsDataDescriptor(desc)) {
392 if (IS_UNDEFINED(desc)) return desc;
395 if (desc.hasValue()) {
398 if (desc.hasWritable()) {
401 if (desc.hasGetter()) {
404 if (desc.hasSetter()) {
407 if (desc.hasEnumerable()) {
411 if (desc.hasConfigurable()) {
421 if (!IS_SPEC_OBJECT(obj)) {
426 if ("enumerable" in obj) {
430 if ("configurable" in obj) {
434 if ("value" in obj) {
438 if ("writable" in obj) {
442 if ("get" in obj) {
444 if (!IS_UNDEFINED(get) && !IS_SPEC_FUNCTION(get)) {
450 if ("set" in obj) {
452 if (!IS_UNDEFINED(set) && !IS_SPEC_FUNCTION(set)) {
458 if (IsInconsistentDescriptor(desc)) {
468 if (IsGenericDescriptor(desc) || IsDataDescriptor(desc)) {
469 if (!desc.hasValue()) desc.setValue(void 0);
470 if (!desc.hasWritable()) desc.setWritable(false);
473 if (!desc.hasGetter()) desc.setGet(void 0);
474 if (!desc.hasSetter()) desc.setSet(void 0);
476 if (!desc.hasEnumerable()) desc.setEnumerable(false);
477 if (!desc.hasConfigurable()) desc.setConfigurable(false);
582 if (desc_array === false) {
586 if (IS_UNDEFINED(desc_array)) {
592 if (desc_array[IS_ACCESSOR_INDEX]) {
609 if (IS_UNDEFINED(trap)) {
610 if (IS_UNDEFINED(defaultTrap)) {
614 } else if (!IS_SPEC_FUNCTION(trap)) {
639 if (%IsJSProxy(obj)) {
642 if (IS_UNDEFINED(descriptor)) return descriptor;
644 if (!desc.isConfigurable()) {
653 // If p is not a property on obj undefined is returned.
657 if (props === false) return void 0;
666 if (IS_UNDEFINED(desc)) return true;
667 if (desc.isConfigurable()) {
670 } else if (should_throw) {
682 if (!ToBoolean(result)) {
683 if (should_throw) {
698 if (current_or_access === false) return void 0;
705 if (IS_UNDEFINED(current) && !extensible) {
706 if (should_throw) {
713 if (!IS_UNDEFINED(current)) {
715 if ((IsGenericDescriptor(desc) ||
731 if (!current.isConfigurable()) {
733 if (desc.isConfigurable() ||
736 if (should_throw) {
743 if (!IsGenericDescriptor(desc)) {
745 if (IsDataDescriptor(current) != IsDataDescriptor(desc)) {
746 if (should_throw) {
753 if (IsDataDescriptor(current) && IsDataDescriptor(desc)) {
754 if (!current.isWritable() && desc.isWritable()) {
755 if (should_throw) {
761 if (!current.isWritable() && desc.hasValue() &&
763 if (should_throw) {
771 if (IsAccessorDescriptor(desc) && IsAccessorDescriptor(current)) {
772 if (desc.hasSetter() && !SameValue(desc.getSet(), current.getSet())) {
773 if (should_throw) {
779 if (desc.hasGetter() && !SameValue(desc.getGet(),current.getGet())) {
780 if (should_throw) {
793 // Take special care if enumerable and configurable is not defined on
796 if (desc.hasEnumerable()) {
798 } else if (!IS_UNDEFINED(current)) {
804 if (desc.hasConfigurable()) {
806 } else if (!IS_UNDEFINED(current)) {
811 if (IsDataDescriptor(desc) ||
821 if (desc.hasWritable()) {
823 } else if (!IS_UNDEFINED(current)) {
830 if (desc.hasValue()) {
832 } else if (!IS_UNDEFINED(current) && IsDataDescriptor(current)) {
859 if (p == "length") {
861 if (!desc.hasValue()) {
865 if (new_length != ToNumber(desc.getValue())) {
869 if (new_length != length && !length_desc.isWritable()) {
870 if (should_throw) {
878 if (!Delete(obj, ToString(length), false)) {
889 if (!DefineObjectProperty(obj, "length", desc, should_throw) || threw) {
890 if (should_throw) {
901 if (index == ToNumber(p) && index != 4294967295) {
904 if ((index >= length && !length_desc.isWritable()) ||
906 if (should_throw) {
912 if (index >= length) {
925 if (%IsJSProxy(obj)) {
928 } else if (IS_ARRAY(obj)) {
938 if (!IS_SPEC_OBJECT(obj)) {
947 if (!IS_SPEC_OBJECT(obj)) {
958 if (!IS_SPEC_OBJECT(obj)) {
966 if (s in names) {
978 if (!IS_SPEC_OBJECT(obj)) {
982 if (%IsJSProxy(obj)) {
994 if (%GetInterceptorInfo(obj) & 1) {
997 if (indexedInterceptorNames) {
1007 // Get names for named interceptor properties if any.
1009 if (%GetInterceptorInfo(obj) & 2) {
1012 if (namedInterceptorNames) {
1023 // properties like toString if(propertySet["toString"]) will always
1025 if (propertySet[name] === true) {
1039 if (!IS_SPEC_OBJECT(proto) && proto !== null) {
1044 if (!IS_UNDEFINED(properties)) ObjectDefineProperties(obj, properties);
1051 if (!IS_SPEC_OBJECT(obj)) {
1055 if (%IsJSProxy(obj)) {
1057 // TODO(rossberg): not spec'ed yet, so not sure if this should involve
1073 if (!(%HasLocalProperty(standardNames, N))) {
1093 if (%HasLocalProperty(properties, key)) {
1103 if (!IS_SPEC_OBJECT(obj)) {
1123 if (IS_UNDEFINED(props)) {
1127 if (%IsJSFunctionProxy(obj)) {
1150 if (!IS_SPEC_OBJECT(obj)) {
1153 if (%IsJSProxy(obj)) {
1160 if (desc.isConfigurable()) {
1172 if (!IS_SPEC_OBJECT(obj)) {
1175 if (%IsJSProxy(obj)) {
1182 if (desc.isWritable() || desc.isConfigurable()) {
1183 if (IsDataDescriptor(desc)) desc.setWritable(false);
1195 if (!IS_SPEC_OBJECT(obj)) {
1198 if (%IsJSProxy(obj)) {
1208 if (!IS_SPEC_OBJECT(obj)) {
1211 if (%IsJSProxy(obj)) {
1218 if (desc.isConfigurable()) return false;
1220 if (!ObjectIsExtensible(obj)) {
1229 if (!IS_SPEC_OBJECT(obj)) {
1232 if (%IsJSProxy(obj)) {
1239 if (IsDataDescriptor(desc) && desc.isWritable()) return false;
1240 if (desc.isConfigurable()) return false;
1242 if (!ObjectIsExtensible(obj)) {
1251 if (!IS_SPEC_OBJECT(obj)) {
1254 if (%IsJSProxy(obj)) {
1263 if (obj1 === obj2) {
1272 if (%_IsConstructCall()) {
1273 if (x == null) return this;
1276 if (x == null) return { };
1328 if (!IS_BOOLEAN(b)) {
1329 if (!IS_BOOLEAN_WRAPPER(b)) {
1341 if (!IS_BOOLEAN(this) && !IS_BOOLEAN_WRAPPER(this)) {
1368 if (%_IsConstructCall()) {
1382 if (!IS_NUMBER(this)) {
1383 if (!IS_NUMBER_WRAPPER(this)) {
1390 if (IS_UNDEFINED(radix) || radix === 10) {
1396 if (radix < 2 || radix > 36) {
1406 if (IS_NULL_OR_UNDEFINED(this) && !IS_UNDETECTABLE(this)) {
1418 if (!IS_NUMBER(this) && !IS_NUMBER_WRAPPER(this)) {
1428 if (f < 0 || f > 20) {
1431 if (IS_NULL_OR_UNDEFINED(this) && !IS_UNDETECTABLE(this)) {
1443 if (!IS_UNDEFINED(fractionDigits)) {
1445 if (f < 0 || f > 20) {
1450 if (IS_NULL_OR_UNDEFINED(this) && !IS_UNDETECTABLE(this)) {
1461 if (IS_NULL_OR_UNDEFINED(this) && !IS_UNDETECTABLE(this)) {
1465 if (IS_UNDEFINED(precision)) return ToString(%_ValueOf(this));
1467 if (p < 1 || p > 21) {
1550 if (!IS_FUNCTION(func)) {
1555 if (!IS_STRING(source) || %FunctionIsBuiltin(func)) {
1557 if (name) {
1579 if (!IS_SPEC_FUNCTION(this)) {
1587 if (%_IsConstructCall()) {
1593 if (argc == 0) {
1596 if (bindings.length === 2) {
1612 if (%_ClassOf(this) == "Function") {
1615 // FunctionProxies might provide a non-UInt32 value. If so, ignore it.
1616 if ((typeof old_length === "number") &&
1619 if (argc > 0) argc--; // Don't count the thisArg as parameter.
1621 if (new_length < 0) new_length = 0;
1632 // that bind should make these throw a TypeError if get or set
1643 if (n > 1) {
1647 // If the formal parameters string include ) - an illegal
1650 if (p.indexOf(')') != -1) throw MakeSyntaxError('unable_to_parse',[]);