mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
![asiva](/assets/img/avatar_default.png)
- Remove all code that generates the corelib and dart:io library sources into C++ arrays and link them into dart_bootstrap - Remove the executable dart_bootstrap and all uses of it - Remove bootstrap_nolib.cc and builtin_nocore.cc - Remove the Dart 1 code in core lib bootstrap path Change-Id: Ifd33496204285a08b42fe09e39428e7a92b416b6 Reviewed-on: https://dart-review.googlesource.com/c/77241 Commit-Queue: Siva Annamalai <asiva@google.com> Reviewed-by: Zach Anderson <zra@google.com>
37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
#ifndef RUNTIME_VM_BOOTSTRAP_H_
|
|
#define RUNTIME_VM_BOOTSTRAP_H_
|
|
|
|
#include "include/dart_api.h"
|
|
#include "vm/allocation.h"
|
|
|
|
namespace dart {
|
|
|
|
// Forward declarations.
|
|
class RawError;
|
|
namespace kernel {
|
|
class Program;
|
|
}
|
|
|
|
class Bootstrap : public AllStatic {
|
|
public:
|
|
// Compile the bootstrap libraries, either from sources or a Kernel program.
|
|
// If program is NULL, compile from sources or source paths linked into
|
|
// the VM. If it is non-NULL it represents the Kernel program to use for
|
|
// bootstrapping.
|
|
// The caller of this function is responsible for managing the kernel
|
|
// program's memory.
|
|
static RawError* DoBootstrapping(const uint8_t* kernel_buffer,
|
|
intptr_t kernel_buffer_size);
|
|
|
|
static void SetupNativeResolver();
|
|
static bool IsBootstrapResolver(Dart_NativeEntryResolver resolver);
|
|
};
|
|
|
|
} // namespace dart
|
|
|
|
#endif // RUNTIME_VM_BOOTSTRAP_H_
|