| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if V8_TARGET_ARCH_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
| 6 | 6 |
| 7 // Note on Mips implementation: | 7 // Note on Mips implementation: |
| 8 // | 8 // |
| 9 // The result_register() for mips is the 'v0' register, which is defined | 9 // The result_register() for mips is the 'v0' register, which is defined |
| 10 // by the ABI to contain function return values. However, the first | 10 // by the ABI to contain function return values. However, the first |
| (...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1072 | 1072 |
| 1073 // The enum cache is valid. Load the map of the object being | 1073 // The enum cache is valid. Load the map of the object being |
| 1074 // iterated over and use the cache for the iteration. | 1074 // iterated over and use the cache for the iteration. |
| 1075 Label use_cache; | 1075 Label use_cache; |
| 1076 __ ld(v0, FieldMemOperand(a0, HeapObject::kMapOffset)); | 1076 __ ld(v0, FieldMemOperand(a0, HeapObject::kMapOffset)); |
| 1077 __ Branch(&use_cache); | 1077 __ Branch(&use_cache); |
| 1078 | 1078 |
| 1079 // Get the set of properties to enumerate. | 1079 // Get the set of properties to enumerate. |
| 1080 __ bind(&call_runtime); | 1080 __ bind(&call_runtime); |
| 1081 __ push(a0); // Duplicate the enumerable object on the stack. | 1081 __ push(a0); // Duplicate the enumerable object on the stack. |
| 1082 __ CallRuntime(Runtime::kGetPropertyNamesFast); | 1082 __ CallRuntime(Runtime::kForInEnumerate); |
| 1083 PrepareForBailoutForId(stmt->EnumId(), TOS_REG); | 1083 PrepareForBailoutForId(stmt->EnumId(), TOS_REG); |
| 1084 | 1084 |
| 1085 // If we got a map from the runtime call, we can do a fast | 1085 // If we got a map from the runtime call, we can do a fast |
| 1086 // modification check. Otherwise, we got a fixed array, and we have | 1086 // modification check. Otherwise, we got a fixed array, and we have |
| 1087 // to do a slow check. | 1087 // to do a slow check. |
| 1088 Label fixed_array; | 1088 Label fixed_array; |
| 1089 __ ld(a2, FieldMemOperand(v0, HeapObject::kMapOffset)); | 1089 __ ld(a2, FieldMemOperand(v0, HeapObject::kMapOffset)); |
| 1090 __ LoadRoot(at, Heap::kMetaMapRootIndex); | 1090 __ LoadRoot(at, Heap::kMetaMapRootIndex); |
| 1091 __ Branch(&fixed_array, ne, a2, Operand(at)); | 1091 __ Branch(&fixed_array, ne, a2, Operand(at)); |
| 1092 | 1092 |
| (...skipping 3725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4818 reinterpret_cast<uint64_t>( | 4818 reinterpret_cast<uint64_t>( |
| 4819 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4819 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 4820 return OSR_AFTER_STACK_CHECK; | 4820 return OSR_AFTER_STACK_CHECK; |
| 4821 } | 4821 } |
| 4822 | 4822 |
| 4823 | 4823 |
| 4824 } // namespace internal | 4824 } // namespace internal |
| 4825 } // namespace v8 | 4825 } // namespace v8 |
| 4826 | 4826 |
| 4827 #endif // V8_TARGET_ARCH_MIPS64 | 4827 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |