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

Side by Side Diff: src/x87/assembler-x87.cc

Issue 607723003: X87: convert disassembler to use OStream. (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@bleeding_edge
Patch Set: Created 6 years, 2 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
« no previous file with comments | « src/x87/assembler-x87.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1879 matching lines...) Expand 10 before | Expand all | Expand 10 after
1890 1890
1891 void Assembler::setcc(Condition cc, Register reg) { 1891 void Assembler::setcc(Condition cc, Register reg) {
1892 DCHECK(reg.is_byte_register()); 1892 DCHECK(reg.is_byte_register());
1893 EnsureSpace ensure_space(this); 1893 EnsureSpace ensure_space(this);
1894 EMIT(0x0F); 1894 EMIT(0x0F);
1895 EMIT(0x90 | cc); 1895 EMIT(0x90 | cc);
1896 EMIT(0xC0 | reg.code()); 1896 EMIT(0xC0 | reg.code());
1897 } 1897 }
1898 1898
1899 1899
1900 void Assembler::Print() {
1901 Disassembler::Decode(isolate(), stdout, buffer_, pc_);
1902 }
1903
1904
1905 void Assembler::RecordJSReturn() { 1900 void Assembler::RecordJSReturn() {
1906 positions_recorder()->WriteRecordedPositions(); 1901 positions_recorder()->WriteRecordedPositions();
1907 EnsureSpace ensure_space(this); 1902 EnsureSpace ensure_space(this);
1908 RecordRelocInfo(RelocInfo::JS_RETURN); 1903 RecordRelocInfo(RelocInfo::JS_RETURN);
1909 } 1904 }
1910 1905
1911 1906
1912 void Assembler::RecordDebugBreakSlot() { 1907 void Assembler::RecordDebugBreakSlot() {
1913 positions_recorder()->WriteRecordedPositions(); 1908 positions_recorder()->WriteRecordedPositions();
1914 EnsureSpace ensure_space(this); 1909 EnsureSpace ensure_space(this);
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
2094 fprintf(coverage_log, "%s\n", file_line); 2089 fprintf(coverage_log, "%s\n", file_line);
2095 fflush(coverage_log); 2090 fflush(coverage_log);
2096 } 2091 }
2097 } 2092 }
2098 2093
2099 #endif 2094 #endif
2100 2095
2101 } } // namespace v8::internal 2096 } } // namespace v8::internal
2102 2097
2103 #endif // V8_TARGET_ARCH_X87 2098 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/assembler-x87.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698