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

Unified Diff: src/disasm-ia32.cc

Issue 8939: Backport the changes from the readability. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/disasm-arm.cc ('k') | src/globals.h » ('j') | src/v8.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/disasm-ia32.cc
===================================================================
--- src/disasm-ia32.cc (revision 661)
+++ src/disasm-ia32.cc (working copy)
@@ -1095,11 +1095,6 @@
//------------------------------------------------------------------------------
-static NameConverter defaultConverter;
-
-Disassembler::Disassembler() : converter_(defaultConverter) {}
-
-
Disassembler::Disassembler(const NameConverter& converter)
: converter_(converter) {}
@@ -1119,7 +1114,8 @@
/*static*/ void Disassembler::Disassemble(FILE* f, byte* begin, byte* end) {
- Disassembler d;
+ NameConverter converter;
+ Disassembler d(converter);
for (byte* pc = begin; pc < end;) {
v8::internal::EmbeddedVector<char, 128> buffer;
buffer[0] = '\0';
« no previous file with comments | « src/disasm-arm.cc ('k') | src/globals.h » ('j') | src/v8.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698