OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // | 2 // |
3 // Redistribution and use in source and binary forms, with or without | 3 // Redistribution and use in source and binary forms, with or without |
4 // modification, are permitted provided that the following conditions are | 4 // modification, are permitted provided that the following conditions are |
5 // met: | 5 // met: |
6 // | 6 // |
7 // * Redistributions of source code must retain the above copyright | 7 // * Redistributions of source code must retain the above copyright |
8 // notice, this list of conditions and the following disclaimer. | 8 // notice, this list of conditions and the following disclaimer. |
9 // * Redistributions in binary form must reproduce the above | 9 // * Redistributions in binary form must reproduce the above |
10 // copyright notice, this list of conditions and the following | 10 // copyright notice, this list of conditions and the following |
(...skipping 2271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2282 RelocInfo& rinfo = pending_reloc_info_[i]; | 2282 RelocInfo& rinfo = pending_reloc_info_[i]; |
2283 ASSERT(rinfo.rmode() != RelocInfo::COMMENT && | 2283 ASSERT(rinfo.rmode() != RelocInfo::COMMENT && |
2284 rinfo.rmode() != RelocInfo::POSITION); | 2284 rinfo.rmode() != RelocInfo::POSITION); |
2285 if (rinfo.rmode() != RelocInfo::JS_RETURN) { | 2285 if (rinfo.rmode() != RelocInfo::JS_RETURN) { |
2286 rinfo.set_pc(rinfo.pc() + pc_delta); | 2286 rinfo.set_pc(rinfo.pc() + pc_delta); |
2287 } | 2287 } |
2288 } | 2288 } |
2289 } | 2289 } |
2290 | 2290 |
2291 | 2291 |
2292 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, int64_t data) { | 2292 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) { |
2293 // We do not try to reuse pool constants. | 2293 // We do not try to reuse pool constants. |
2294 RelocInfo rinfo(reinterpret_cast<byte*>(pc_), rmode, data, NULL); | 2294 RelocInfo rinfo(reinterpret_cast<byte*>(pc_), rmode, data, NULL); |
2295 if (((rmode >= RelocInfo::JS_RETURN) && | 2295 if (((rmode >= RelocInfo::JS_RETURN) && |
2296 (rmode <= RelocInfo::DEBUG_BREAK_SLOT)) || | 2296 (rmode <= RelocInfo::DEBUG_BREAK_SLOT)) || |
2297 (rmode == RelocInfo::CONST_POOL)) { | 2297 (rmode == RelocInfo::CONST_POOL)) { |
2298 // Adjust code for new modes. | 2298 // Adjust code for new modes. |
2299 ASSERT(RelocInfo::IsDebugBreakSlot(rmode) | 2299 ASSERT(RelocInfo::IsDebugBreakSlot(rmode) |
2300 || RelocInfo::IsJSReturn(rmode) | 2300 || RelocInfo::IsJSReturn(rmode) |
2301 || RelocInfo::IsComment(rmode) | 2301 || RelocInfo::IsComment(rmode) |
2302 || RelocInfo::IsPosition(rmode) | 2302 || RelocInfo::IsPosition(rmode) |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2494 // code. | 2494 // code. |
2495 #ifdef ENABLE_DEBUGGER_SUPPORT | 2495 #ifdef ENABLE_DEBUGGER_SUPPORT |
2496 RecordRelocInfo(RelocInfo::CONST_POOL, static_cast<intptr_t>(size)); | 2496 RecordRelocInfo(RelocInfo::CONST_POOL, static_cast<intptr_t>(size)); |
2497 #endif | 2497 #endif |
2498 } | 2498 } |
2499 | 2499 |
2500 | 2500 |
2501 } } // namespace v8::internal | 2501 } } // namespace v8::internal |
2502 | 2502 |
2503 #endif // V8_TARGET_ARCH_A64 | 2503 #endif // V8_TARGET_ARCH_A64 |
OLD | NEW |