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

Side by Side Diff: src/ia32/disasm-ia32.cc

Issue 148503002: A64: Synchronize with r15545. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/deoptimizer-ia32.cc ('k') | src/ia32/frames-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 13 matching lines...) Expand all
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #include <assert.h> 28 #include <assert.h>
29 #include <stdio.h> 29 #include <stdio.h>
30 #include <stdarg.h> 30 #include <stdarg.h>
31 31
32 #include "v8.h" 32 #include "v8.h"
33 33
34 #if defined(V8_TARGET_ARCH_IA32) 34 #if V8_TARGET_ARCH_IA32
35 35
36 #include "disasm.h" 36 #include "disasm.h"
37 37
38 namespace disasm { 38 namespace disasm {
39 39
40 enum OperandOrder { 40 enum OperandOrder {
41 UNSET_OP_ORDER = 0, 41 UNSET_OP_ORDER = 0,
42 REG_OPER_OP_ORDER, 42 REG_OPER_OP_ORDER,
43 OPER_REG_OP_ORDER 43 OPER_REG_OP_ORDER
44 }; 44 };
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 int count = PrintRightOperand(data+1); 568 int count = PrintRightOperand(data+1);
569 int32_t imm = *reinterpret_cast<int32_t*>(data+1+count); 569 int32_t imm = *reinterpret_cast<int32_t*>(data+1+count);
570 AppendToBuffer(",0x%x", imm); 570 AppendToBuffer(",0x%x", imm);
571 return 1+count+4 /*int32_t*/; 571 return 1+count+4 /*int32_t*/;
572 } else { 572 } else {
573 UnimplementedInstruction(); 573 UnimplementedInstruction();
574 return 2; 574 return 2;
575 } 575 }
576 } 576 }
577 577
578
578 int DisassemblerIA32::D1D3C1Instruction(byte* data) { 579 int DisassemblerIA32::D1D3C1Instruction(byte* data) {
579 byte op = *data; 580 byte op = *data;
580 ASSERT(op == 0xD1 || op == 0xD3 || op == 0xC1); 581 ASSERT(op == 0xD1 || op == 0xD3 || op == 0xC1);
581 byte modrm = *(data+1); 582 byte modrm = *(data+1);
582 int mod, regop, rm; 583 int mod, regop, rm;
583 get_modrm(modrm, &mod, &regop, &rm); 584 get_modrm(modrm, &mod, &regop, &rm);
584 int imm8 = -1; 585 int imm8 = -1;
585 int num_bytes = 2; 586 int num_bytes = 2;
586 if (mod == 3) { 587 if (mod == 3) {
587 const char* mnem = NULL; 588 const char* mnem = NULL;
(...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1717 fprintf(f, " "); 1718 fprintf(f, " ");
1718 } 1719 }
1719 fprintf(f, " %s\n", buffer.start()); 1720 fprintf(f, " %s\n", buffer.start());
1720 } 1721 }
1721 } 1722 }
1722 1723
1723 1724
1724 } // namespace disasm 1725 } // namespace disasm
1725 1726
1726 #endif // V8_TARGET_ARCH_IA32 1727 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/deoptimizer-ia32.cc ('k') | src/ia32/frames-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698