Bug 1476011: Initialize opcode on different value. r=jandem
authorRobert Bartlensky <rbartlensky@mozilla.com>
Mon, 16 Jul 2018 17:45:18 +0100
changeset 819862 c67bdec5c5926fa16bc9d25ba09efd53f340f5e0
parent 819861 44fd25e3d484042f680f76ab4b0ab3ba0652b2f9
child 819863 10ca5b14dbdb6be329e3d47f4dcbc27b43ae1823
push id116678
push userbmo:nchevobbe@mozilla.com
push dateWed, 18 Jul 2018 18:05:12 +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;