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

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

Issue 1775443002: MIPS: Assembler changes for enabling GrowHeap in Wasm. Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Removing initial CL Created 4 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 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // return the end of the instructions to be patched, allowing the 120 // return the end of the instructions to be patched, allowing the
121 // deserializer to deserialize the instructions as raw bytes and put them in 121 // deserializer to deserialize the instructions as raw bytes and put them in
122 // place, ready to be patched with the target. After jump optimization, 122 // place, ready to be patched with the target. After jump optimization,
123 // that is the address of the instruction that follows J/JAL/JR/JALR 123 // that is the address of the instruction that follows J/JAL/JR/JALR
124 // instruction. 124 // instruction.
125 // return reinterpret_cast<Address>( 125 // return reinterpret_cast<Address>(
126 // pc_ + Assembler::kInstructionsFor32BitConstant * Assembler::kInstrSize); 126 // pc_ + Assembler::kInstructionsFor32BitConstant * Assembler::kInstrSize);
127 return reinterpret_cast<Address>( 127 return reinterpret_cast<Address>(
128 pc_ + Assembler::kInstructionsFor64BitConstant * Assembler::kInstrSize); 128 pc_ + Assembler::kInstructionsFor64BitConstant * Assembler::kInstrSize);
129 } 129 }
130 130
balazs.kilvady 2016/03/09 11:00:20 Same nit and comment like on the MIPS version.
131 Address RelocInfo::wasm_memory_reference() {
132 DCHECK(IsWasmMemoryReference(rmode_));
133 return Assembler::target_address_at(pc_, host_);
134 }
135
136 void RelocInfo::update_wasm_memory_reference(
137 Address reference, ICacheFlushMode icache_flush_mode) {
138 DCHECK(IsWasmMemoryReference(rmode_));
139 Assembler::set_target_address_at(isolate_, pc_, host_, reference,
140 icache_flush_mode);
141 }
131 142
132 Address RelocInfo::constant_pool_entry_address() { 143 Address RelocInfo::constant_pool_entry_address() {
133 UNREACHABLE(); 144 UNREACHABLE();
134 return NULL; 145 return NULL;
135 } 146 }
136 147
137 148
138 int RelocInfo::target_address_size() { 149 int RelocInfo::target_address_size() {
139 return Assembler::kSpecialTargetSize; 150 return Assembler::kSpecialTargetSize;
140 } 151 }
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 void Assembler::emit(uint64_t data) { 478 void Assembler::emit(uint64_t data) {
468 CheckForEmitInForbiddenSlot(); 479 CheckForEmitInForbiddenSlot();
469 EmitHelper(data); 480 EmitHelper(data);
470 } 481 }
471 482
472 483
473 } // namespace internal 484 } // namespace internal
474 } // namespace v8 485 } // namespace v8
475 486
476 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ 487 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698