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

Side by Side Diff: src/disassembler.cc

Issue 115756: Split nested namespaces declaration in two lines in accordance with C++ Style Guide. (Closed)
Patch Set: Created 11 years, 6 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
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 18 matching lines...) Expand all
29 29
30 #include "code-stubs.h" 30 #include "code-stubs.h"
31 #include "codegen-inl.h" 31 #include "codegen-inl.h"
32 #include "debug.h" 32 #include "debug.h"
33 #include "disasm.h" 33 #include "disasm.h"
34 #include "disassembler.h" 34 #include "disassembler.h"
35 #include "macro-assembler.h" 35 #include "macro-assembler.h"
36 #include "serialize.h" 36 #include "serialize.h"
37 #include "string-stream.h" 37 #include "string-stream.h"
38 38
39 namespace v8 { namespace internal { 39 namespace v8 {
40 namespace internal {
40 41
41 #ifdef ENABLE_DISASSEMBLER 42 #ifdef ENABLE_DISASSEMBLER
42 43
43 void Disassembler::Dump(FILE* f, byte* begin, byte* end) { 44 void Disassembler::Dump(FILE* f, byte* begin, byte* end) {
44 for (byte* pc = begin; pc < end; pc++) { 45 for (byte* pc = begin; pc < end; pc++) {
45 if (f == NULL) { 46 if (f == NULL) {
46 PrintF("%" V8PRIxPTR " %4" V8PRIdPTR " %02x\n", pc, pc - begin, *pc); 47 PrintF("%" V8PRIxPTR " %4" V8PRIdPTR " %02x\n", pc, pc - begin, *pc);
47 } else { 48 } else {
48 fprintf(f, "%" V8PRIxPTR " %4" V8PRIdPTR " %02x\n", 49 fprintf(f, "%" V8PRIxPTR " %4" V8PRIdPTR " %02x\n",
49 reinterpret_cast<uintptr_t>(pc), pc - begin, *pc); 50 reinterpret_cast<uintptr_t>(pc), pc - begin, *pc);
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 302
302 #else // ENABLE_DISASSEMBLER 303 #else // ENABLE_DISASSEMBLER
303 304
304 void Disassembler::Dump(FILE* f, byte* begin, byte* end) {} 305 void Disassembler::Dump(FILE* f, byte* begin, byte* end) {}
305 int Disassembler::Decode(FILE* f, byte* begin, byte* end) { return 0; } 306 int Disassembler::Decode(FILE* f, byte* begin, byte* end) { return 0; }
306 void Disassembler::Decode(FILE* f, Code* code) {} 307 void Disassembler::Decode(FILE* f, Code* code) {}
307 308
308 #endif // ENABLE_DISASSEMBLER 309 #endif // ENABLE_DISASSEMBLER
309 310
310 } } // namespace v8::internal 311 } } // namespace v8::internal
OLDNEW
« src/accessors.h ('K') | « src/disassembler.h ('k') | src/execution.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698