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

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

Issue 50413004: Removed RelocInfo::target_object_address() and reconstructed_obj_ptr_. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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/assembler.h ('k') | src/mark-compact.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 // 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 return Memory::Object_at(pc_); 118 return Memory::Object_at(pc_);
119 } 119 }
120 120
121 121
122 Handle<Object> RelocInfo::target_object_handle(Assembler* origin) { 122 Handle<Object> RelocInfo::target_object_handle(Assembler* origin) {
123 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); 123 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
124 return Memory::Object_Handle_at(pc_); 124 return Memory::Object_Handle_at(pc_);
125 } 125 }
126 126
127 127
128 Object** RelocInfo::target_object_address() {
129 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
130 return &Memory::Object_at(pc_);
131 }
132
133
134 void RelocInfo::set_target_object(Object* target, WriteBarrierMode mode) { 128 void RelocInfo::set_target_object(Object* target, WriteBarrierMode mode) {
135 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); 129 ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
136 ASSERT(!target->IsConsString()); 130 ASSERT(!target->IsConsString());
137 Memory::Object_at(pc_) = target; 131 Memory::Object_at(pc_) = target;
138 CPU::FlushICache(pc_, sizeof(Address)); 132 CPU::FlushICache(pc_, sizeof(Address));
139 if (mode == UPDATE_WRITE_BARRIER && 133 if (mode == UPDATE_WRITE_BARRIER &&
140 host() != NULL && 134 host() != NULL &&
141 target->IsHeapObject()) { 135 target->IsHeapObject()) {
142 host()->GetHeap()->incremental_marking()->RecordWrite( 136 host()->GetHeap()->incremental_marking()->RecordWrite(
143 host(), &Memory::Object_at(pc_), HeapObject::cast(target)); 137 host(), &Memory::Object_at(pc_), HeapObject::cast(target));
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 518
525 Operand::Operand(int32_t disp, RelocInfo::Mode rmode) { 519 Operand::Operand(int32_t disp, RelocInfo::Mode rmode) {
526 // [disp/r] 520 // [disp/r]
527 set_modrm(0, ebp); 521 set_modrm(0, ebp);
528 set_dispr(disp, rmode); 522 set_dispr(disp, rmode);
529 } 523 }
530 524
531 } } // namespace v8::internal 525 } } // namespace v8::internal
532 526
533 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_ 527 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698