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 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
958 __ cmp(r0, Operand(Smi::FromInt(0))); | 958 __ cmp(r0, Operand(Smi::FromInt(0))); |
959 __ b(ne, &skip); | 959 __ b(ne, &skip); |
960 __ Ret(); | 960 __ Ret(); |
961 | 961 |
962 __ bind(&skip); | 962 __ bind(&skip); |
963 | 963 |
964 // Load deoptimization data from the code object. | 964 // Load deoptimization data from the code object. |
965 // <deopt_data> = <code>[#deoptimization_data_offset] | 965 // <deopt_data> = <code>[#deoptimization_data_offset] |
966 __ ldr(r1, MemOperand(r0, Code::kDeoptimizationDataOffset - kHeapObjectTag)); | 966 __ ldr(r1, MemOperand(r0, Code::kDeoptimizationDataOffset - kHeapObjectTag)); |
967 | 967 |
968 ConstantPoolUnavailableScope constant_pool_unavailable(masm); | |
969 if (FLAG_enable_ool_constant_pool) { | |
970 __ ldr(pp, MemOperand(r0, Code::kConstantPoolOffset - kHeapObjectTag)); | |
Rodolph Perfetta (ARM)
2014/03/12 14:46:20
use FieldMemOperand so you don't need to substract
rmcilroy
2014/03/17 18:31:34
Done (also for surrounding calls).
| |
971 } | |
972 | |
968 // Load the OSR entrypoint offset from the deoptimization data. | 973 // Load the OSR entrypoint offset from the deoptimization data. |
969 // <osr_offset> = <deopt_data>[#header_size + #osr_pc_offset] | 974 // <osr_offset> = <deopt_data>[#header_size + #osr_pc_offset] |
970 __ ldr(r1, MemOperand(r1, FixedArray::OffsetOfElementAt( | 975 __ ldr(r1, MemOperand(r1, FixedArray::OffsetOfElementAt( |
971 DeoptimizationInputData::kOsrPcOffsetIndex) - kHeapObjectTag)); | 976 DeoptimizationInputData::kOsrPcOffsetIndex) - kHeapObjectTag)); |
972 | 977 |
973 // Compute the target address = code_obj + header_size + osr_offset | 978 // Compute the target address = code_obj + header_size + osr_offset |
974 // <entry_addr> = <code_obj> + #header_size + <osr_offset> | 979 // <entry_addr> = <code_obj> + #header_size + <osr_offset> |
975 __ add(r0, r0, Operand::SmiUntag(r1)); | 980 __ add(r0, r0, Operand::SmiUntag(r1)); |
976 __ add(lr, r0, Operand(Code::kHeaderSize - kHeapObjectTag)); | 981 __ add(lr, r0, Operand(Code::kHeaderSize - kHeapObjectTag)); |
977 | 982 |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1468 __ bind(&dont_adapt_arguments); | 1473 __ bind(&dont_adapt_arguments); |
1469 __ Jump(r3); | 1474 __ Jump(r3); |
1470 } | 1475 } |
1471 | 1476 |
1472 | 1477 |
1473 #undef __ | 1478 #undef __ |
1474 | 1479 |
1475 } } // namespace v8::internal | 1480 } } // namespace v8::internal |
1476 | 1481 |
1477 #endif // V8_TARGET_ARCH_ARM | 1482 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |