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

Unified Diff: src/x64/assembler-x64.cc

Issue 2690523003: [wasm] Use PC after EnsureSpace in RecordProtectedInstruction (Closed)
Patch Set: Rebasing Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/x64/assembler-x64.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/x64/assembler-x64.cc
diff --git a/src/x64/assembler-x64.cc b/src/x64/assembler-x64.cc
index e7a53f18f3d368971cc70c5dc1b5cb0ff938dc3e..4fb6edbc1ca6902501c45008420b3c76fe1c34dd 100644
--- a/src/x64/assembler-x64.cc
+++ b/src/x64/assembler-x64.cc
@@ -4669,9 +4669,9 @@ void Assembler::emit_sse_operand(XMMRegister dst) {
emit(0xD8 | dst.low_bits());
}
-void Assembler::RecordProtectedInstruction(int pc_offset, byte* landing) {
+void Assembler::RecordProtectedInstructionLanding(int pc_offset) {
EnsureSpace ensure_space(this);
- RelocInfo rinfo(isolate(), landing,
+ RelocInfo rinfo(isolate(), pc(),
RelocInfo::WASM_PROTECTED_INSTRUCTION_LANDING, pc_offset,
nullptr);
reloc_info_writer.Write(&rinfo);
« no previous file with comments | « src/x64/assembler-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698