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

Side by Side Diff: runtime/vm/kernel.h

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 4
5 #ifndef RUNTIME_VM_KERNEL_H_ 5 #ifndef RUNTIME_VM_KERNEL_H_
6 #define RUNTIME_VM_KERNEL_H_ 6 #define RUNTIME_VM_KERNEL_H_
7 7
8 #if !defined(DART_PRECOMPILED_RUNTIME)
8 #include "platform/assert.h" 9 #include "platform/assert.h"
9 #include "vm/allocation.h" 10 #include "vm/allocation.h"
10 #include "vm/globals.h" 11 #include "vm/globals.h"
11 12
13
12 #define KERNEL_NODES_DO(M) \ 14 #define KERNEL_NODES_DO(M) \
13 M(Name) \ 15 M(Name) \
14 M(InferredValue) \ 16 M(InferredValue) \
15 M(DartType) \ 17 M(DartType) \
16 M(InvalidType) \ 18 M(InvalidType) \
17 M(DynamicType) \ 19 M(DynamicType) \
18 M(VoidType) \ 20 M(VoidType) \
19 M(InterfaceType) \ 21 M(InterfaceType) \
20 M(FunctionType) \ 22 M(FunctionType) \
21 M(TypeParameterType) 23 M(TypeParameterType)
(...skipping 3214 matching lines...) Expand 10 before | Expand all | Expand 10 after
3236 3238
3237 virtual void WriteBytes(uint8_t* buffer, int count) = 0; 3239 virtual void WriteBytes(uint8_t* buffer, int count) = 0;
3238 }; 3240 };
3239 3241
3240 3242
3241 void WritePrecompiledKernel(ByteWriter* out, kernel::Program* program); 3243 void WritePrecompiledKernel(ByteWriter* out, kernel::Program* program);
3242 3244
3243 3245
3244 } // namespace dart 3246 } // namespace dart
3245 3247
3248 #endif // !defined(DART_PRECOMPILED_RUNTIME)
3246 #endif // RUNTIME_VM_KERNEL_H_ 3249 #endif // RUNTIME_VM_KERNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698