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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
8 | 8 |
9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
10 // | 10 // |
(...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1217 | 1217 |
1218 // Check if the expected map still matches that of the enumerable. | 1218 // Check if the expected map still matches that of the enumerable. |
1219 // If not, we may have to filter the key. | 1219 // If not, we may have to filter the key. |
1220 Label update_each; | 1220 Label update_each; |
1221 __ ld(a1, MemOperand(sp, 4 * kPointerSize)); | 1221 __ ld(a1, MemOperand(sp, 4 * kPointerSize)); |
1222 __ ld(a4, FieldMemOperand(a1, HeapObject::kMapOffset)); | 1222 __ ld(a4, FieldMemOperand(a1, HeapObject::kMapOffset)); |
1223 __ Branch(&update_each, eq, a4, Operand(a2)); | 1223 __ Branch(&update_each, eq, a4, Operand(a2)); |
1224 | 1224 |
1225 // For proxies, no filtering is done. | 1225 // For proxies, no filtering is done. |
1226 // TODO(rossberg): What if only a prototype is a proxy? Not specified yet. | 1226 // TODO(rossberg): What if only a prototype is a proxy? Not specified yet. |
1227 DCHECK_EQ(Smi::FromInt(0), 0); | 1227 DCHECK_EQ(static_cast<Smi*>(0), Smi::FromInt(0)); |
1228 __ Branch(&update_each, eq, a2, Operand(zero_reg)); | 1228 __ Branch(&update_each, eq, a2, Operand(zero_reg)); |
1229 | 1229 |
1230 // Convert the entry to a string or (smi) 0 if it isn't a property | 1230 // Convert the entry to a string or (smi) 0 if it isn't a property |
1231 // any more. If the property has been removed while iterating, we | 1231 // any more. If the property has been removed while iterating, we |
1232 // just skip it. | 1232 // just skip it. |
1233 __ Push(a1, a3); // Enumerable and current entry. | 1233 __ Push(a1, a3); // Enumerable and current entry. |
1234 __ InvokeBuiltin(Builtins::FILTER_KEY, CALL_FUNCTION); | 1234 __ InvokeBuiltin(Builtins::FILTER_KEY, CALL_FUNCTION); |
1235 __ mov(a3, result_register()); | 1235 __ mov(a3, result_register()); |
1236 __ Branch(loop_statement.continue_label(), eq, a3, Operand(zero_reg)); | 1236 __ Branch(loop_statement.continue_label(), eq, a3, Operand(zero_reg)); |
1237 | 1237 |
(...skipping 4109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5347 Assembler::target_address_at(pc_immediate_load_address)) == | 5347 Assembler::target_address_at(pc_immediate_load_address)) == |
5348 reinterpret_cast<uint64_t>( | 5348 reinterpret_cast<uint64_t>( |
5349 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5349 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5350 return OSR_AFTER_STACK_CHECK; | 5350 return OSR_AFTER_STACK_CHECK; |
5351 } | 5351 } |
5352 | 5352 |
5353 | 5353 |
5354 } } // namespace v8::internal | 5354 } } // namespace v8::internal |
5355 | 5355 |
5356 #endif // V8_TARGET_ARCH_MIPS64 | 5356 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |