| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 Label convert, done_convert; | 737 Label convert, done_convert; |
| 738 __ BranchOnSmi(r0, &convert); | 738 __ BranchOnSmi(r0, &convert); |
| 739 __ CompareObjectType(r0, r1, r1, FIRST_JS_OBJECT_TYPE); | 739 __ CompareObjectType(r0, r1, r1, FIRST_JS_OBJECT_TYPE); |
| 740 __ b(hs, &done_convert); | 740 __ b(hs, &done_convert); |
| 741 __ bind(&convert); | 741 __ bind(&convert); |
| 742 __ push(r0); | 742 __ push(r0); |
| 743 __ InvokeBuiltin(Builtins::TO_OBJECT, CALL_JS); | 743 __ InvokeBuiltin(Builtins::TO_OBJECT, CALL_JS); |
| 744 __ bind(&done_convert); | 744 __ bind(&done_convert); |
| 745 __ push(r0); | 745 __ push(r0); |
| 746 | 746 |
| 747 // TODO(kasperl): Check cache validity in generated code. This is a | 747 // BUG(867): Check cache validity in generated code. This is a fast |
| 748 // fast case for the JSObject::IsSimpleEnum cache validity | 748 // case for the JSObject::IsSimpleEnum cache validity checks. If we |
| 749 // checks. If we cannot guarantee cache validity, call the runtime | 749 // cannot guarantee cache validity, call the runtime system to check |
| 750 // system to check cache validity or get the property names in a | 750 // cache validity or get the property names in a fixed array. |
| 751 // fixed array. | |
| 752 | 751 |
| 753 // Get the set of properties to enumerate. | 752 // Get the set of properties to enumerate. |
| 754 __ push(r0); // Duplicate the enumerable object on the stack. | 753 __ push(r0); // Duplicate the enumerable object on the stack. |
| 755 __ CallRuntime(Runtime::kGetPropertyNamesFast, 1); | 754 __ CallRuntime(Runtime::kGetPropertyNamesFast, 1); |
| 756 | 755 |
| 757 // If we got a map from the runtime call, we can do a fast | 756 // If we got a map from the runtime call, we can do a fast |
| 758 // modification check. Otherwise, we got a fixed array, and we have | 757 // modification check. Otherwise, we got a fixed array, and we have |
| 759 // to do a slow check. | 758 // to do a slow check. |
| 760 Label fixed_array; | 759 Label fixed_array; |
| 761 __ mov(r2, r0); | 760 __ mov(r2, r0); |
| (...skipping 2634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3396 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. | 3395 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. |
| 3397 __ add(pc, r1, Operand(masm_->CodeObject())); | 3396 __ add(pc, r1, Operand(masm_->CodeObject())); |
| 3398 } | 3397 } |
| 3399 | 3398 |
| 3400 | 3399 |
| 3401 #undef __ | 3400 #undef __ |
| 3402 | 3401 |
| 3403 } } // namespace v8::internal | 3402 } } // namespace v8::internal |
| 3404 | 3403 |
| 3405 #endif // V8_TARGET_ARCH_ARM | 3404 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |