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

Side by Side Diff: runtime/vm/kernel_binary.cc

Issue 2425043002: GN: Fix Debug flags. Fix Windows build. (Closed)
Patch Set: Created 4 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 | « runtime/platform/globals.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include <map> 5 #include <map>
6 #include <vector> 6 #include <vector>
7 7
8 #include "platform/globals.h"
8 #include "vm/flags.h" 9 #include "vm/flags.h"
9 #include "vm/kernel.h" 10 #include "vm/kernel.h"
10 #include "vm/os.h" 11 #include "vm/os.h"
11 12
12 #if defined(DEBUG) 13 #if defined(DEBUG)
13 #define TRACE_READ_OFFSET() do { \ 14 #define TRACE_READ_OFFSET() do { \
14 if (FLAG_trace_kernel_binary) \ 15 if (FLAG_trace_kernel_binary) \
15 reader->DumpOffset(__PRETTY_FUNCTION__); \ 16 reader->DumpOffset(DART_PRETTY_FUNCTION); \
16 } while (0) 17 } while (0)
17 #define TRACE_WRITE_OFFSET() do { \ 18 #define TRACE_WRITE_OFFSET() do { \
18 if (FLAG_trace_kernel_binary) \ 19 if (FLAG_trace_kernel_binary) \
19 writer->DumpOffset(__PRETTY_FUNCTION__); \ 20 writer->DumpOffset(DART_PRETTY_FUNCTION); \
20 } while (0) 21 } while (0)
21 #else 22 #else
22 #define TRACE_READ_OFFSET() 23 #define TRACE_READ_OFFSET()
23 #define TRACE_WRITE_OFFSET() 24 #define TRACE_WRITE_OFFSET()
24 #endif 25 #endif
25 26
26 namespace dart { 27 namespace dart {
27 28
28 29
29 ByteWriter::~ByteWriter() {} 30 ByteWriter::~ByteWriter() {}
(...skipping 2863 matching lines...) Expand 10 before | Expand all | Expand 10 after
2893 2894
2894 void WritePrecompiledKernel(ByteWriter* byte_writer, kernel::Program* program) { 2895 void WritePrecompiledKernel(ByteWriter* byte_writer, kernel::Program* program) {
2895 ASSERT(byte_writer != NULL); 2896 ASSERT(byte_writer != NULL);
2896 2897
2897 kernel::Writer writer(byte_writer); 2898 kernel::Writer writer(byte_writer);
2898 program->WriteTo(&writer); 2899 program->WriteTo(&writer);
2899 } 2900 }
2900 2901
2901 2902
2902 } // namespace dart 2903 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/platform/globals.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698