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

Side by Side Diff: src/mips/assembler-mips-inl.h

Issue 17585003: Rollback of r15267, r15263, r15193 in trunk branch in preparation for 3.19 branch (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/assembler-ia32-inl.h ('k') | src/version.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 // Copyright (c) 1994-2006 Sun Microsystems Inc. 2 // Copyright (c) 1994-2006 Sun Microsystems Inc.
3 // All Rights Reserved. 3 // All Rights Reserved.
4 // 4 //
5 // Redistribution and use in source and binary forms, with or without 5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are 6 // modification, are permitted provided that the following conditions are
7 // met: 7 // met:
8 // 8 //
9 // - Redistributions of source code must retain the above copyright notice, 9 // - Redistributions of source code must retain the above copyright notice,
10 // this list of conditions and the following disclaimer. 10 // this list of conditions and the following disclaimer.
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 // which can be de-referenced during heap iteration. 195 // which can be de-referenced during heap iteration.
196 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); 196 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
197 reconstructed_obj_ptr_ = 197 reconstructed_obj_ptr_ =
198 reinterpret_cast<Object*>(Assembler::target_address_at(pc_)); 198 reinterpret_cast<Object*>(Assembler::target_address_at(pc_));
199 return &reconstructed_obj_ptr_; 199 return &reconstructed_obj_ptr_;
200 } 200 }
201 201
202 202
203 void RelocInfo::set_target_object(Object* target, WriteBarrierMode mode) { 203 void RelocInfo::set_target_object(Object* target, WriteBarrierMode mode) {
204 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); 204 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
205 ASSERT(!target->IsConsString());
206 Assembler::set_target_address_at(pc_, reinterpret_cast<Address>(target)); 205 Assembler::set_target_address_at(pc_, reinterpret_cast<Address>(target));
207 if (mode == UPDATE_WRITE_BARRIER && 206 if (mode == UPDATE_WRITE_BARRIER &&
208 host() != NULL && 207 host() != NULL &&
209 target->IsHeapObject()) { 208 target->IsHeapObject()) {
210 host()->GetHeap()->incremental_marking()->RecordWrite( 209 host()->GetHeap()->incremental_marking()->RecordWrite(
211 host(), &Memory::Object_at(pc_), HeapObject::cast(target)); 210 host(), &Memory::Object_at(pc_), HeapObject::cast(target));
212 } 211 }
213 } 212 }
214 213
215 214
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 } 415 }
417 *reinterpret_cast<Instr*>(pc_) = x; 416 *reinterpret_cast<Instr*>(pc_) = x;
418 pc_ += kInstrSize; 417 pc_ += kInstrSize;
419 CheckTrampolinePoolQuick(); 418 CheckTrampolinePoolQuick();
420 } 419 }
421 420
422 421
423 } } // namespace v8::internal 422 } } // namespace v8::internal
424 423
425 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ 424 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32-inl.h ('k') | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698