| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // objects. | 153 // objects. |
| 154 return true; | 154 return true; |
| 155 } | 155 } |
| 156 | 156 |
| 157 | 157 |
| 158 bool RelocInfo::IsInConstantPool() { | 158 bool RelocInfo::IsInConstantPool() { |
| 159 return false; | 159 return false; |
| 160 } | 160 } |
| 161 | 161 |
| 162 | 162 |
| 163 void RelocInfo::PatchCode(byte* instructions, int instruction_count) { | |
| 164 // Patch the code at the current address with the supplied instructions. | |
| 165 Instr* pc = reinterpret_cast<Instr*>(pc_); | |
| 166 Instr* instr = reinterpret_cast<Instr*>(instructions); | |
| 167 for (int i = 0; i < instruction_count; i++) { | |
| 168 *(pc + i) = *(instr + i); | |
| 169 } | |
| 170 | |
| 171 // Indicate that code has changed. | |
| 172 CpuFeatures::FlushICache(pc_, instruction_count * Assembler::kInstrSize); | |
| 173 } | |
| 174 | |
| 175 | |
| 176 // Patch the code at the current PC with a call to the target address. | |
| 177 // Additional guard instructions can be added if required. | |
| 178 void RelocInfo::PatchCodeWithCall(Address target, int guard_bytes) { | |
| 179 // Patch the code at the current address with a call to the target. | |
| 180 UNIMPLEMENTED(); | |
| 181 } | |
| 182 | |
| 183 | |
| 184 // ----------------------------------------------------------------------------- | 163 // ----------------------------------------------------------------------------- |
| 185 // Implementation of Operand and MemOperand | 164 // Implementation of Operand and MemOperand |
| 186 // See assembler-ppc-inl.h for inlined constructors | 165 // See assembler-ppc-inl.h for inlined constructors |
| 187 | 166 |
| 188 Operand::Operand(Handle<Object> handle) { | 167 Operand::Operand(Handle<Object> handle) { |
| 189 AllowDeferredHandleDereference using_raw_address; | 168 AllowDeferredHandleDereference using_raw_address; |
| 190 rm_ = no_reg; | 169 rm_ = no_reg; |
| 191 // Verify all Objects referred by code are NOT in new space. | 170 // Verify all Objects referred by code are NOT in new space. |
| 192 Object* obj = *handle; | 171 Object* obj = *handle; |
| 193 if (obj->IsHeapObject()) { | 172 if (obj->IsHeapObject()) { |
| (...skipping 2173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2367 } | 2346 } |
| 2368 | 2347 |
| 2369 | 2348 |
| 2370 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { | 2349 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { |
| 2371 DCHECK(!FLAG_enable_ool_constant_pool); | 2350 DCHECK(!FLAG_enable_ool_constant_pool); |
| 2372 } | 2351 } |
| 2373 } | 2352 } |
| 2374 } // namespace v8::internal | 2353 } // namespace v8::internal |
| 2375 | 2354 |
| 2376 #endif // V8_TARGET_ARCH_PPC | 2355 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |