From 423b8a2011e8def61180aff9c75325e36c17dda3 Mon Sep 17 00:00:00 2001 From: Clemens Hammacher Date: Tue, 5 Jun 2018 18:11:40 +0200 Subject: [PATCH] [ia32] Add disassembler support for 'pause' R=mstarzinger@chromium.org Bug: chromium:849656 Change-Id: I34effca4770f732216b93b5e4e8c28383f2f9963 Reviewed-on: https://chromium-review.googlesource.com/1087271 Reviewed-by: Michael Starzinger Commit-Queue: Clemens Hammacher Cr-Commit-Position: refs/heads/master@{#53534} --- src/ia32/disasm-ia32.cc | 3 +++ test/cctest/test-disasm-ia32.cc | 1 + 2 files changed, 4 insertions(+) diff --git a/src/ia32/disasm-ia32.cc b/src/ia32/disasm-ia32.cc index e8d7aba2f6..519f181dc9 100644 --- a/src/ia32/disasm-ia32.cc +++ b/src/ia32/disasm-ia32.cc @@ -2516,6 +2516,9 @@ int DisassemblerIA32::InstructionDecode(v8::internal::Vector out_buffer, } else if (*(data+1) == 0xAB) { data += 2; AppendToBuffer("rep_stos"); + } else if (*(data + 1) == 0x90) { + data += 2; + AppendToBuffer("pause"); } else { UnimplementedInstruction(); } diff --git a/test/cctest/test-disasm-ia32.cc b/test/cctest/test-disasm-ia32.cc index 4bc4a2b193..42c412933d 100644 --- a/test/cctest/test-disasm-ia32.cc +++ b/test/cctest/test-disasm-ia32.cc @@ -883,6 +883,7 @@ TEST(DisasmIa320) { __ Nop(i); } + __ pause(); __ ret(0); CodeDesc desc;