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

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

Issue 2485993002: VM: Support bootstrapping core libraries from Kernel binaries instead of source. (Closed)
Patch Set: Done Created 4 years, 1 month 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 (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 #if !defined(DART_PRECOMPILED_RUNTIME)
4 5
5 #include <map> 6 #include <map>
6 #include <vector> 7 #include <vector>
7 8
8 #include "platform/globals.h" 9 #include "platform/globals.h"
9 #include "vm/flags.h" 10 #include "vm/flags.h"
10 #include "vm/kernel.h" 11 #include "vm/kernel.h"
11 #include "vm/os.h" 12 #include "vm/os.h"
12 13
13 #if defined(DEBUG) 14 #if defined(DEBUG)
(...skipping 2880 matching lines...) Expand 10 before | Expand all | Expand 10 after
2894 2895
2895 void WritePrecompiledKernel(ByteWriter* byte_writer, kernel::Program* program) { 2896 void WritePrecompiledKernel(ByteWriter* byte_writer, kernel::Program* program) {
2896 ASSERT(byte_writer != NULL); 2897 ASSERT(byte_writer != NULL);
2897 2898
2898 kernel::Writer writer(byte_writer); 2899 kernel::Writer writer(byte_writer);
2899 program->WriteTo(&writer); 2900 program->WriteTo(&writer);
2900 } 2901 }
2901 2902
2902 2903
2903 } // namespace dart 2904 } // namespace dart
2905 #endif // !defined(DART_PRECOMPILED_RUNTIME)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698