| Index: runtime/vm/compiler.cc
|
| diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc
|
| index 63723a5294f860787a51a87b88ef7f938a916cd9..a0f01ac3b62f97618d0b08c754ed0fdd5604eb01 100644
|
| --- a/runtime/vm/compiler.cc
|
| +++ b/runtime/vm/compiler.cc
|
| @@ -646,6 +646,10 @@ bool CompileParsedFunctionHelper::Compile(CompilationPipeline* pipeline) {
|
| const bool clone_descriptors = Compiler::IsBackgroundCompilation();
|
| function.RestoreICDataMap(ic_data_array, clone_descriptors);
|
|
|
| + if (Compiler::IsBackgroundCompilation() &&
|
| + (function.ic_data_array() == Array::null())) {
|
| + Compiler::AbortBackgroundCompilation(Thread::kNoDeoptId);
|
| + }
|
| if (FLAG_print_ic_data_map) {
|
| for (intptr_t i = 0; i < ic_data_array->length(); i++) {
|
| if ((*ic_data_array)[i] != NULL) {
|
| @@ -1691,6 +1695,13 @@ RawObject* Compiler::ExecuteOnce(SequenceNode* fragment) {
|
| }
|
|
|
|
|
| +void Compiler::AbortBackgroundCompilation(intptr_t deopt_id) {
|
| + ASSERT(Compiler::IsBackgroundCompilation());
|
| + Thread::Current()->long_jump_base()->Jump(
|
| + deopt_id, Object::background_compilation_error());
|
| +}
|
| +
|
| +
|
| // C-heap allocated background compilation queue element.
|
| class QueueElement {
|
| public:
|
| @@ -2022,6 +2033,11 @@ RawObject* Compiler::ExecuteOnce(SequenceNode* fragment) {
|
| }
|
|
|
|
|
| +void Compiler::AbortBackgroundCompilation(intptr_t deopt_id) {
|
| + UNREACHABLE();
|
| +}
|
| +
|
| +
|
| void BackgroundCompiler::CompileOptimized(const Function& function) {
|
| UNREACHABLE();
|
| }
|
|
|