Bug 1476011: Initialize opcode on different value. r=jandem
authorRobert Bartlensky <rbartlensky@mozilla.com>
Mon, 16 Jul 2018 17:45:18 +0100
changeset 427113 c67bdec5c592
parent 427112 44fd25e3d484
child 427114 10ca5b14dbdb
push id34292
push usercsabou@mozilla.com
push dateWed, 18 Jul 2018 17:18:53 +0000
treeherdermozilla-central@10ca5b14dbdb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1476011
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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;