| 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 4817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4828 | 4828 |
| 4829 | 4829 |
| 4830 static Address GetInterruptImmediateLoadAddress(Address pc) { | 4830 static Address GetInterruptImmediateLoadAddress(Address pc) { |
| 4831 Address load_address = pc - 2 * Assembler::kInstrSize; | 4831 Address load_address = pc - 2 * Assembler::kInstrSize; |
| 4832 if (!FLAG_enable_ool_constant_pool) { | 4832 if (!FLAG_enable_ool_constant_pool) { |
| 4833 ASSERT(Assembler::IsLdrPcImmediateOffset(Memory::int32_at(load_address))); | 4833 ASSERT(Assembler::IsLdrPcImmediateOffset(Memory::int32_at(load_address))); |
| 4834 } else if (Assembler::IsMovT(Memory::int32_at(load_address))) { | 4834 } else if (Assembler::IsMovT(Memory::int32_at(load_address))) { |
| 4835 load_address -= Assembler::kInstrSize; | 4835 load_address -= Assembler::kInstrSize; |
| 4836 ASSERT(Assembler::IsMovW(Memory::int32_at(load_address))); | 4836 ASSERT(Assembler::IsMovW(Memory::int32_at(load_address))); |
| 4837 } else { | 4837 } else { |
| 4838 // TODO(rmcilroy): uncomment when IsLdrPpImmediateOffset lands. | 4838 ASSERT(Assembler::IsLdrPpImmediateOffset(Memory::int32_at(load_address))); |
| 4839 // ASSERT(IsLdrPpImmediateOffset(Memory::int32_at(load_address))); | |
| 4840 } | 4839 } |
| 4841 return load_address; | 4840 return load_address; |
| 4842 } | 4841 } |
| 4843 | 4842 |
| 4844 | 4843 |
| 4845 void BackEdgeTable::PatchAt(Code* unoptimized_code, | 4844 void BackEdgeTable::PatchAt(Code* unoptimized_code, |
| 4846 Address pc, | 4845 Address pc, |
| 4847 BackEdgeState target_state, | 4846 BackEdgeState target_state, |
| 4848 Code* replacement_code) { | 4847 Code* replacement_code) { |
| 4849 static const int kInstrSize = Assembler::kInstrSize; | 4848 static const int kInstrSize = Assembler::kInstrSize; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4916 | 4915 |
| 4917 ASSERT(interrupt_address == | 4916 ASSERT(interrupt_address == |
| 4918 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4917 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 4919 return OSR_AFTER_STACK_CHECK; | 4918 return OSR_AFTER_STACK_CHECK; |
| 4920 } | 4919 } |
| 4921 | 4920 |
| 4922 | 4921 |
| 4923 } } // namespace v8::internal | 4922 } } // namespace v8::internal |
| 4924 | 4923 |
| 4925 #endif // V8_TARGET_ARCH_ARM | 4924 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |