Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: src/mips/assembler-mips.cc

Issue 967323002: Refactor BreakLocationIterator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: static_cast instead Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips/assembler-mips.h ('k') | src/mips/assembler-mips-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 // always the case inside code objects. 207 // always the case inside code objects.
208 return true; 208 return true;
209 } 209 }
210 210
211 211
212 bool RelocInfo::IsInConstantPool() { 212 bool RelocInfo::IsInConstantPool() {
213 return false; 213 return false;
214 } 214 }
215 215
216 216
217 // Patch the code at the current address with the supplied instructions.
218 void RelocInfo::PatchCode(byte* instructions, int instruction_count) {
219 Instr* pc = reinterpret_cast<Instr*>(pc_);
220 Instr* instr = reinterpret_cast<Instr*>(instructions);
221 for (int i = 0; i < instruction_count; i++) {
222 *(pc + i) = *(instr + i);
223 }
224
225 // Indicate that code has changed.
226 CpuFeatures::FlushICache(pc_, instruction_count * Assembler::kInstrSize);
227 }
228
229
230 // Patch the code at the current PC with a call to the target address.
231 // Additional guard instructions can be added if required.
232 void RelocInfo::PatchCodeWithCall(Address target, int guard_bytes) {
233 // Patch the code at the current address with a call to the target.
234 UNIMPLEMENTED_MIPS();
235 }
236
237
238 // ----------------------------------------------------------------------------- 217 // -----------------------------------------------------------------------------
239 // Implementation of Operand and MemOperand. 218 // Implementation of Operand and MemOperand.
240 // See assembler-mips-inl.h for inlined constructors. 219 // See assembler-mips-inl.h for inlined constructors.
241 220
242 Operand::Operand(Handle<Object> handle) { 221 Operand::Operand(Handle<Object> handle) {
243 AllowDeferredHandleDereference using_raw_address; 222 AllowDeferredHandleDereference using_raw_address;
244 rm_ = no_reg; 223 rm_ = no_reg;
245 // Verify all Objects referred by code are NOT in new space. 224 // Verify all Objects referred by code are NOT in new space.
246 Object* obj = *handle; 225 Object* obj = *handle;
247 if (obj->IsHeapObject()) { 226 if (obj->IsHeapObject()) {
(...skipping 2523 matching lines...) Expand 10 before | Expand all | Expand 10 after
2771 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { 2750 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) {
2772 // No out-of-line constant pool support. 2751 // No out-of-line constant pool support.
2773 DCHECK(!FLAG_enable_ool_constant_pool); 2752 DCHECK(!FLAG_enable_ool_constant_pool);
2774 return; 2753 return;
2775 } 2754 }
2776 2755
2777 2756
2778 } } // namespace v8::internal 2757 } } // namespace v8::internal
2779 2758
2780 #endif // V8_TARGET_ARCH_MIPS 2759 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.h ('k') | src/mips/assembler-mips-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698