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

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

Issue 986553005: Contribution of PowerPC port (continuation of 422063005) - serialize.cc cleanup (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 return Memory::Address_at(pc_); 159 return Memory::Address_at(pc_);
160 } 160 }
161 161
162 162
163 Address RelocInfo::target_internal_reference() { 163 Address RelocInfo::target_internal_reference() {
164 DCHECK(rmode_ == INTERNAL_REFERENCE); 164 DCHECK(rmode_ == INTERNAL_REFERENCE);
165 return Memory::Address_at(pc_); 165 return Memory::Address_at(pc_);
166 } 166 }
167 167
168 168
169 void RelocInfo::set_target_internal_reference(Address target) { 169 void RelocInfo::set_target_internal_reference(
170 Address target, ICacheFlushMode icache_flush_mode) {
170 DCHECK(rmode_ == INTERNAL_REFERENCE); 171 DCHECK(rmode_ == INTERNAL_REFERENCE);
171 Memory::Address_at(pc_) = target; 172 Memory::Address_at(pc_) = target;
172 } 173 }
173 174
174 175
175 Address RelocInfo::target_runtime_entry(Assembler* origin) { 176 Address RelocInfo::target_runtime_entry(Assembler* origin) {
176 DCHECK(IsRuntimeEntry(rmode_)); 177 DCHECK(IsRuntimeEntry(rmode_));
177 return reinterpret_cast<Address>(*reinterpret_cast<int32_t*>(pc_)); 178 return reinterpret_cast<Address>(*reinterpret_cast<int32_t*>(pc_));
178 } 179 }
179 180
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 580
580 581
581 Operand::Operand(Immediate imm) { 582 Operand::Operand(Immediate imm) {
582 // [disp/r] 583 // [disp/r]
583 set_modrm(0, ebp); 584 set_modrm(0, ebp);
584 set_dispr(imm.x_, imm.rmode_); 585 set_dispr(imm.x_, imm.rmode_);
585 } 586 }
586 } } // namespace v8::internal 587 } } // namespace v8::internal
587 588
588 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_ 589 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698