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

Side by Side Diff: src/mips64/assembler-mips64.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/mips64/assembler-mips64.h ('k') | src/mips64/assembler-mips64-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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // always the case inside code objects. 184 // always the case inside code objects.
185 return true; 185 return true;
186 } 186 }
187 187
188 188
189 bool RelocInfo::IsInConstantPool() { 189 bool RelocInfo::IsInConstantPool() {
190 return false; 190 return false;
191 } 191 }
192 192
193 193
194 // Patch the code at the current address with the supplied instructions.
195 void RelocInfo::PatchCode(byte* instructions, int instruction_count) {
196 Instr* pc = reinterpret_cast<Instr*>(pc_);
197 Instr* instr = reinterpret_cast<Instr*>(instructions);
198 for (int i = 0; i < instruction_count; i++) {
199 *(pc + i) = *(instr + i);
200 }
201
202 // Indicate that code has changed.
203 CpuFeatures::FlushICache(pc_, instruction_count * Assembler::kInstrSize);
204 }
205
206
207 // Patch the code at the current PC with a call to the target address.
208 // Additional guard instructions can be added if required.
209 void RelocInfo::PatchCodeWithCall(Address target, int guard_bytes) {
210 // Patch the code at the current address with a call to the target.
211 UNIMPLEMENTED_MIPS();
212 }
213
214
215 // ----------------------------------------------------------------------------- 194 // -----------------------------------------------------------------------------
216 // Implementation of Operand and MemOperand. 195 // Implementation of Operand and MemOperand.
217 // See assembler-mips-inl.h for inlined constructors. 196 // See assembler-mips-inl.h for inlined constructors.
218 197
219 Operand::Operand(Handle<Object> handle) { 198 Operand::Operand(Handle<Object> handle) {
220 AllowDeferredHandleDereference using_raw_address; 199 AllowDeferredHandleDereference using_raw_address;
221 rm_ = no_reg; 200 rm_ = no_reg;
222 // Verify all Objects referred by code are NOT in new space. 201 // Verify all Objects referred by code are NOT in new space.
223 Object* obj = *handle; 202 Object* obj = *handle;
224 if (obj->IsHeapObject()) { 203 if (obj->IsHeapObject()) {
(...skipping 2736 matching lines...) Expand 10 before | Expand all | Expand 10 after
2961 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { 2940 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) {
2962 // No out-of-line constant pool support. 2941 // No out-of-line constant pool support.
2963 DCHECK(!FLAG_enable_ool_constant_pool); 2942 DCHECK(!FLAG_enable_ool_constant_pool);
2964 return; 2943 return;
2965 } 2944 }
2966 2945
2967 2946
2968 } } // namespace v8::internal 2947 } } // namespace v8::internal
2969 2948
2970 #endif // V8_TARGET_ARCH_MIPS64 2949 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/assembler-mips64.h ('k') | src/mips64/assembler-mips64-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698