OLD | NEW |
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 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 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1056 "eax", "ecx", "edx", "ebx", "esp", "ebp", "esi", "edi", | 1056 "eax", "ecx", "edx", "ebx", "esp", "ebp", "esi", "edi", |
1057 }; | 1057 }; |
1058 | 1058 |
1059 | 1059 |
1060 static const char* xmm_regs[8] = { | 1060 static const char* xmm_regs[8] = { |
1061 "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7", | 1061 "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7", |
1062 }; | 1062 }; |
1063 | 1063 |
1064 | 1064 |
1065 const char* NameConverter::NameOfAddress(byte* addr) const { | 1065 const char* NameConverter::NameOfAddress(byte* addr) const { |
1066 v8::internal::EmbeddedVector<char, 32> tmp_buffer; | 1066 static v8::internal::EmbeddedVector<char, 32> tmp_buffer; |
1067 v8::internal::OS::SNPrintF(tmp_buffer, "%p", addr); | 1067 v8::internal::OS::SNPrintF(tmp_buffer, "%p", addr); |
1068 return tmp_buffer.start(); | 1068 return tmp_buffer.start(); |
1069 } | 1069 } |
1070 | 1070 |
1071 | 1071 |
1072 const char* NameConverter::NameOfConstant(byte* addr) const { | 1072 const char* NameConverter::NameOfConstant(byte* addr) const { |
1073 return NameOfAddress(addr); | 1073 return NameOfAddress(addr); |
1074 } | 1074 } |
1075 | 1075 |
1076 | 1076 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1133 } | 1133 } |
1134 for (int i = 6 - (pc - prev_pc); i >= 0; i--) { | 1134 for (int i = 6 - (pc - prev_pc); i >= 0; i--) { |
1135 fprintf(f, " "); | 1135 fprintf(f, " "); |
1136 } | 1136 } |
1137 fprintf(f, " %s\n", buffer.start()); | 1137 fprintf(f, " %s\n", buffer.start()); |
1138 } | 1138 } |
1139 } | 1139 } |
1140 | 1140 |
1141 | 1141 |
1142 } // namespace disasm | 1142 } // namespace disasm |
OLD | NEW |