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

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

Issue 159266: Add inline caching for keyed loads and stores. Remove extra parentheses from... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 5 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/x64/codegen-x64.cc ('k') | src/x64/ic-x64.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 680
681 int DisassemblerX64::ShiftInstruction(byte* data) { 681 int DisassemblerX64::ShiftInstruction(byte* data) {
682 byte op = *data & (~1); 682 byte op = *data & (~1);
683 if (op != 0xD0 && op != 0xD2 && op != 0xC0) { 683 if (op != 0xD0 && op != 0xD2 && op != 0xC0) {
684 UnimplementedInstruction(); 684 UnimplementedInstruction();
685 return 1; 685 return 1;
686 } 686 }
687 byte modrm = *(data + 1); 687 byte modrm = *(data + 1);
688 int mod, regop, rm; 688 int mod, regop, rm;
689 get_modrm(modrm, &mod, &regop, &rm); 689 get_modrm(modrm, &mod, &regop, &rm);
690 ASSERT(regop < 8); 690 regop &= 0x7; // The REX.R bit does not affect the operation.
691 int imm8 = -1; 691 int imm8 = -1;
692 int num_bytes = 2; 692 int num_bytes = 2;
693 if (mod != 3) { 693 if (mod != 3) {
694 UnimplementedInstruction(); 694 UnimplementedInstruction();
695 return num_bytes; 695 return num_bytes;
696 } 696 }
697 const char* mnem = NULL; 697 const char* mnem = NULL;
698 switch (regop) { 698 switch (regop) {
699 case 0: 699 case 0:
700 mnem = "rol"; 700 mnem = "rol";
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
1524 fprintf(f, "%02x", *bp); 1524 fprintf(f, "%02x", *bp);
1525 } 1525 }
1526 for (int i = 6 - (pc - prev_pc); i >= 0; i--) { 1526 for (int i = 6 - (pc - prev_pc); i >= 0; i--) {
1527 fprintf(f, " "); 1527 fprintf(f, " ");
1528 } 1528 }
1529 fprintf(f, " %s\n", buffer.start()); 1529 fprintf(f, " %s\n", buffer.start());
1530 } 1530 }
1531 } 1531 }
1532 1532
1533 } // namespace disasm 1533 } // namespace disasm
OLDNEW
« no previous file with comments | « src/x64/codegen-x64.cc ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698