mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 16:41:07 +00:00
VM: [Kernel] Go back to previous behavior in loader.cc
Review URL: https://codereview.chromium.org/2523183002 .
This commit is contained in:
parent
4bfe727db6
commit
2c9cbb1d2c
|
@ -370,6 +370,13 @@ bool Loader::ProcessResultLocked(Loader* loader, Loader::IOResult* result) {
|
|||
if (payload_type == DartUtils::kSnapshotMagicNumber) {
|
||||
dart_result = Dart_LoadScriptFromSnapshot(payload, payload_length);
|
||||
reload_extensions = true;
|
||||
} else if (payload_type == DartUtils::kKernelMagicNumber) {
|
||||
// TODO(27590): This code path is only hit when trying to spawn
|
||||
// isolates. We currently do not have support for neither
|
||||
// `Isolate.spawn()` nor `Isolate.spawnUri()` with kernel-based
|
||||
// frontend.
|
||||
void* kernel_binary = Dart_ReadKernelBinary(payload, payload_length);
|
||||
dart_result = Dart_LoadKernel(kernel_binary);
|
||||
} else {
|
||||
dart_result = Dart_LoadScript(uri, resolved_uri, source, 0, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue