OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2593 // Calculate location of the first key name. | 2593 // Calculate location of the first key name. |
2594 __ Addu(t0, | 2594 __ Addu(t0, |
2595 t0, | 2595 t0, |
2596 Operand(FixedArray::kHeaderSize - kHeapObjectTag + | 2596 Operand(FixedArray::kHeaderSize - kHeapObjectTag + |
2597 DescriptorArray::kFirstIndex * kPointerSize)); | 2597 DescriptorArray::kFirstIndex * kPointerSize)); |
2598 // Loop through all the keys in the descriptor array. If one of these is the | 2598 // Loop through all the keys in the descriptor array. If one of these is the |
2599 // symbol valueOf the result is false. | 2599 // symbol valueOf the result is false. |
2600 Label entry, loop; | 2600 Label entry, loop; |
2601 // The use of t2 to store the valueOf symbol asumes that it is not otherwise | 2601 // The use of t2 to store the valueOf symbol asumes that it is not otherwise |
2602 // used in the loop below. | 2602 // used in the loop below. |
2603 __ li(t2, Operand(FACTORY->value_of_symbol())); | 2603 __ LoadRoot(t2, Heap::kvalue_of_symbolRootIndex); |
2604 __ jmp(&entry); | 2604 __ jmp(&entry); |
2605 __ bind(&loop); | 2605 __ bind(&loop); |
2606 __ lw(a3, MemOperand(t0, 0)); | 2606 __ lw(a3, MemOperand(t0, 0)); |
2607 __ Branch(if_false, eq, a3, Operand(t2)); | 2607 __ Branch(if_false, eq, a3, Operand(t2)); |
2608 __ Addu(t0, t0, Operand(kPointerSize)); | 2608 __ Addu(t0, t0, Operand(kPointerSize)); |
2609 __ bind(&entry); | 2609 __ bind(&entry); |
2610 __ Branch(&loop, ne, t0, Operand(a2)); | 2610 __ Branch(&loop, ne, t0, Operand(a2)); |
2611 | 2611 |
2612 // If a valueOf property is not found on the object check that it's | 2612 // If a valueOf property is not found on the object check that it's |
2613 // prototype is the un-modified String prototype. If not result is false. | 2613 // prototype is the un-modified String prototype. If not result is false. |
(...skipping 1876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4490 *context_length = 0; | 4490 *context_length = 0; |
4491 return previous_; | 4491 return previous_; |
4492 } | 4492 } |
4493 | 4493 |
4494 | 4494 |
4495 #undef __ | 4495 #undef __ |
4496 | 4496 |
4497 } } // namespace v8::internal | 4497 } } // namespace v8::internal |
4498 | 4498 |
4499 #endif // V8_TARGET_ARCH_MIPS | 4499 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |