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

Unified Diff: test/cctest/test-disasm-arm.cc

Issue 1941: Fixed arm disassembler build problems. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/simulator-arm.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-disasm-arm.cc
===================================================================
--- test/cctest/test-disasm-arm.cc (revision 286)
+++ test/cctest/test-disasm-arm.cc (working copy)
@@ -51,17 +51,17 @@
bool DisassembleAndCompare(byte* pc, const char* compare_string) {
disasm::Disassembler disasm;
- char disasm_buffer[128];
+ EmbeddedVector<char, 128> disasm_buffer;
- disasm.InstructionDecode(disasm_buffer, sizeof disasm_buffer, pc);
+ disasm.InstructionDecode(disasm_buffer, pc);
- if (strcmp(compare_string, disasm_buffer) != 0) {
+ if (strcmp(compare_string, disasm_buffer.start()) != 0) {
fprintf(stderr,
"expected: \n"
"%s\n"
"disassembled: \n"
"%s\n\n",
- compare_string, disasm_buffer);
+ compare_string, disasm_buffer.start());
return false;
}
return true;
« no previous file with comments | « src/simulator-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698