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 3810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3821 Register key = r0; | 3821 Register key = r0; |
3822 Register cache = r1; | 3822 Register cache = r1; |
3823 __ ldr(cache, ContextOperand(cp, Context::GLOBAL_OBJECT_INDEX)); | 3823 __ ldr(cache, ContextOperand(cp, Context::GLOBAL_OBJECT_INDEX)); |
3824 __ ldr(cache, FieldMemOperand(cache, GlobalObject::kNativeContextOffset)); | 3824 __ ldr(cache, FieldMemOperand(cache, GlobalObject::kNativeContextOffset)); |
3825 __ ldr(cache, ContextOperand(cache, Context::JSFUNCTION_RESULT_CACHES_INDEX)); | 3825 __ ldr(cache, ContextOperand(cache, Context::JSFUNCTION_RESULT_CACHES_INDEX)); |
3826 __ ldr(cache, | 3826 __ ldr(cache, |
3827 FieldMemOperand(cache, FixedArray::OffsetOfElementAt(cache_id))); | 3827 FieldMemOperand(cache, FixedArray::OffsetOfElementAt(cache_id))); |
3828 | 3828 |
3829 | 3829 |
3830 Label done, not_found; | 3830 Label done, not_found; |
3831 // tmp now holds finger offset as a smi. | |
3832 __ ldr(r2, FieldMemOperand(cache, JSFunctionResultCache::kFingerOffset)); | 3831 __ ldr(r2, FieldMemOperand(cache, JSFunctionResultCache::kFingerOffset)); |
3833 // r2 now holds finger offset as a smi. | 3832 // r2 now holds finger offset as a smi. |
3834 __ add(r3, cache, Operand(FixedArray::kHeaderSize - kHeapObjectTag)); | 3833 __ add(r3, cache, Operand(FixedArray::kHeaderSize - kHeapObjectTag)); |
3835 // r3 now points to the start of fixed array elements. | 3834 // r3 now points to the start of fixed array elements. |
3836 __ ldr(r2, MemOperand::PointerAddressFromSmiKey(r3, r2, PreIndex)); | 3835 __ ldr(r2, MemOperand::PointerAddressFromSmiKey(r3, r2, PreIndex)); |
3837 // Note side effect of PreIndex: r3 now points to the key of the pair. | 3836 // Note side effect of PreIndex: r3 now points to the key of the pair. |
3838 __ cmp(key, r2); | 3837 __ cmp(key, r2); |
3839 __ b(ne, ¬_found); | 3838 __ b(ne, ¬_found); |
3840 | 3839 |
3841 __ ldr(r0, MemOperand(r3, kPointerSize)); | 3840 __ ldr(r0, MemOperand(r3, kPointerSize)); |
(...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4920 ASSERT(Memory::uint32_at(interrupt_address_pointer) == | 4919 ASSERT(Memory::uint32_at(interrupt_address_pointer) == |
4921 reinterpret_cast<uint32_t>( | 4920 reinterpret_cast<uint32_t>( |
4922 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4921 isolate->builtins()->OsrAfterStackCheck()->entry())); |
4923 return OSR_AFTER_STACK_CHECK; | 4922 return OSR_AFTER_STACK_CHECK; |
4924 } | 4923 } |
4925 | 4924 |
4926 | 4925 |
4927 } } // namespace v8::internal | 4926 } } // namespace v8::internal |
4928 | 4927 |
4929 #endif // V8_TARGET_ARCH_ARM | 4928 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |