OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 Address constant_pool_entry, Code* code, Address target) { | 547 Address constant_pool_entry, Code* code, Address target) { |
548 if (FLAG_enable_ool_constant_pool) { | 548 if (FLAG_enable_ool_constant_pool) { |
549 set_target_address_at(constant_pool_entry, code, target); | 549 set_target_address_at(constant_pool_entry, code, target); |
550 } else { | 550 } else { |
551 Memory::Address_at(constant_pool_entry) = target; | 551 Memory::Address_at(constant_pool_entry) = target; |
552 } | 552 } |
553 } | 553 } |
554 | 554 |
555 | 555 |
556 void Assembler::deserialization_set_target_internal_reference_at( | 556 void Assembler::deserialization_set_target_internal_reference_at( |
557 Address pc, Address target) { | 557 Address pc, Address target, RelocInfo::Mode mode) { |
558 Memory::Address_at(pc) = target; | 558 Memory::Address_at(pc) = target; |
559 } | 559 } |
560 | 560 |
561 | 561 |
562 bool Assembler::is_constant_pool_load(Address pc) { | 562 bool Assembler::is_constant_pool_load(Address pc) { |
563 if (CpuFeatures::IsSupported(ARMv7)) { | 563 if (CpuFeatures::IsSupported(ARMv7)) { |
564 return !Assembler::IsMovW(Memory::int32_at(pc)) || | 564 return !Assembler::IsMovW(Memory::int32_at(pc)) || |
565 (FLAG_enable_ool_constant_pool && | 565 (FLAG_enable_ool_constant_pool && |
566 Assembler::IsLdrPpRegOffset( | 566 Assembler::IsLdrPpRegOffset( |
567 Memory::int32_at(pc + 2 * Assembler::kInstrSize))); | 567 Memory::int32_at(pc + 2 * Assembler::kInstrSize))); |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { | 694 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
695 CpuFeatures::FlushICache(pc, 4 * kInstrSize); | 695 CpuFeatures::FlushICache(pc, 4 * kInstrSize); |
696 } | 696 } |
697 } | 697 } |
698 } | 698 } |
699 | 699 |
700 | 700 |
701 } } // namespace v8::internal | 701 } } // namespace v8::internal |
702 | 702 |
703 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ | 703 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ |
OLD | NEW |