| Index: runtime/vm/code_descriptors.cc
|
| diff --git a/runtime/vm/code_descriptors.cc b/runtime/vm/code_descriptors.cc
|
| index ac4cb24a38cd22f31507f39f3d3f876deed2ce01..7f390a123d3026607187fa8b7cd942896f08535d 100644
|
| --- a/runtime/vm/code_descriptors.cc
|
| +++ b/runtime/vm/code_descriptors.cc
|
| @@ -3,10 +3,11 @@
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| #include "vm/code_descriptors.h"
|
| -#include "vm/compiler.h"
|
|
|
| namespace dart {
|
|
|
| +DECLARE_FLAG(bool, precompilation);
|
| +
|
| void DescriptorList::AddDescriptor(RawPcDescriptors::Kind kind,
|
| intptr_t pc_offset,
|
| intptr_t deopt_id,
|
| @@ -17,7 +18,7 @@ void DescriptorList::AddDescriptor(RawPcDescriptors::Kind kind,
|
| (deopt_id != Thread::kNoDeoptId));
|
|
|
| // When precompiling, we only use pc descriptors for exceptions.
|
| - if (Compiler::allow_recompilation() || try_index != -1) {
|
| + if (!FLAG_precompilation || try_index != -1) {
|
| intptr_t merged_kind_try =
|
| RawPcDescriptors::MergedKindTry::Encode(kind, try_index);
|
|
|
|
|