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

Side by Side Diff: src/x87/assembler-x87-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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 return Memory::Address_at(pc_); 160 return Memory::Address_at(pc_);
161 } 161 }
162 162
163 163
164 Address RelocInfo::target_internal_reference() { 164 Address RelocInfo::target_internal_reference() {
165 DCHECK(rmode_ == INTERNAL_REFERENCE); 165 DCHECK(rmode_ == INTERNAL_REFERENCE);
166 return Memory::Address_at(pc_); 166 return Memory::Address_at(pc_);
167 } 167 }
168 168
169 169
170 void RelocInfo::set_target_internal_reference(Address target) { 170 void RelocInfo::set_target_internal_reference(
171 Address target, ICacheFlushMode icache_flush_mode) {
171 DCHECK(rmode_ == INTERNAL_REFERENCE); 172 DCHECK(rmode_ == INTERNAL_REFERENCE);
172 Memory::Address_at(pc_) = target; 173 Memory::Address_at(pc_) = target;
173 } 174 }
174 175
175 176
176 Address RelocInfo::target_runtime_entry(Assembler* origin) { 177 Address RelocInfo::target_runtime_entry(Assembler* origin) {
177 DCHECK(IsRuntimeEntry(rmode_)); 178 DCHECK(IsRuntimeEntry(rmode_));
178 return reinterpret_cast<Address>(*reinterpret_cast<int32_t*>(pc_)); 179 return reinterpret_cast<Address>(*reinterpret_cast<int32_t*>(pc_));
179 } 180 }
180 181
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 575
575 576
576 Operand::Operand(Immediate imm) { 577 Operand::Operand(Immediate imm) {
577 // [disp/r] 578 // [disp/r]
578 set_modrm(0, ebp); 579 set_modrm(0, ebp);
579 set_dispr(imm.x_, imm.rmode_); 580 set_dispr(imm.x_, imm.rmode_);
580 } 581 }
581 } } // namespace v8::internal 582 } } // namespace v8::internal
582 583
583 #endif // V8_X87_ASSEMBLER_X87_INL_H_ 584 #endif // V8_X87_ASSEMBLER_X87_INL_H_
OLDNEW
« src/serialize.cc ('K') | « src/x87/assembler-x87.cc ('k') | test/cctest/cctest.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698