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 are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // 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 991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1002 | 1002 |
1003 // Decode branch instruction at pos and return branch target pos. | 1003 // Decode branch instruction at pos and return branch target pos. |
1004 int target_at(int32_t pos); | 1004 int target_at(int32_t pos); |
1005 | 1005 |
1006 // Patch branch instruction at pos to branch to given branch target pos. | 1006 // Patch branch instruction at pos to branch to given branch target pos. |
1007 void target_at_put(int32_t pos, int32_t target_pos); | 1007 void target_at_put(int32_t pos, int32_t target_pos); |
1008 | 1008 |
1009 // Say if we need to relocate with this mode. | 1009 // Say if we need to relocate with this mode. |
1010 bool MustUseReg(RelocInfo::Mode rmode); | 1010 bool MustUseReg(RelocInfo::Mode rmode); |
1011 | 1011 |
| 1012 bool can_use_relative_load(RelocInfo::Mode rmode); |
| 1013 |
1012 // Record reloc info for current pc_. | 1014 // Record reloc info for current pc_. |
1013 void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0); | 1015 void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0); |
1014 | 1016 |
1015 // Block the emission of the trampoline pool before pc_offset. | 1017 // Block the emission of the trampoline pool before pc_offset. |
1016 void BlockTrampolinePoolBefore(int pc_offset) { | 1018 void BlockTrampolinePoolBefore(int pc_offset) { |
1017 if (no_trampoline_pool_before_ < pc_offset) | 1019 if (no_trampoline_pool_before_ < pc_offset) |
1018 no_trampoline_pool_before_ = pc_offset; | 1020 no_trampoline_pool_before_ = pc_offset; |
1019 } | 1021 } |
1020 | 1022 |
1021 void StartBlockTrampolinePool() { | 1023 void StartBlockTrampolinePool() { |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1257 class EnsureSpace BASE_EMBEDDED { | 1259 class EnsureSpace BASE_EMBEDDED { |
1258 public: | 1260 public: |
1259 explicit EnsureSpace(Assembler* assembler) { | 1261 explicit EnsureSpace(Assembler* assembler) { |
1260 assembler->CheckBuffer(); | 1262 assembler->CheckBuffer(); |
1261 } | 1263 } |
1262 }; | 1264 }; |
1263 | 1265 |
1264 } } // namespace v8::internal | 1266 } } // namespace v8::internal |
1265 | 1267 |
1266 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 1268 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
OLD | NEW |