Bug 1476011: Initialize opcode on different value. r=jandem draft
authorRobert Bartlensky <rbartlensky@mozilla.com>
Mon, 16 Jul 2018 17:45:18 +0100
changeset 818834 e7e11b2eb456
parent 818682 2ed1506d1dc7
push id116364
push userbmo:rbartlensky@mozilla.com
push dateMon, 16 Jul 2018 16:46:37 +0000
reviewersjandem
bugs1476011
milestone63.0a1
Bug 1476011: Initialize opcode on different value. r=jandem MozReview-Commit-ID: 10GPnHgwD24
js/src/jit/x86-shared/Disassembler-x86-shared.cpp
--- a/js/src/jit/x86-shared/Disassembler-x86-shared.cpp
+++ b/js/src/jit/x86-shared/Disassembler-x86-shared.cpp
@@ -157,17 +157,17 @@ DecodeScale(uint8_t modrm, uint8_t sib, 
 #define PackOpcode(op0, op1, op2) ((op0) | ((op1) << 8) | ((op2) << 16))
 #define Pack2ByteOpcode(op1) PackOpcode(OP_2BYTE_ESCAPE, op1, 0)
 #define Pack3ByteOpcode(op1, op2) PackOpcode(OP_2BYTE_ESCAPE, op1, op2)
 
 uint8_t*
 js::jit::Disassembler::DisassembleHeapAccess(uint8_t* ptr, HeapAccess* access)
 {
     VexOperandType type = VEX_PS;
-    uint32_t opcode = OP_HLT;
+    uint32_t opcode = OP_NOP_00;
     uint8_t modrm = 0;
     uint8_t sib = 0;
     uint8_t rex = 0;
     int32_t disp = 0;
     int32_t imm = 0;
     bool haveImm = false;
     int opsize = 4;