| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index 1481f63969e3f279e2f0a3078a891d3cfa9666bd..1459aee4fa9e81ab48f6e364f80911800c36fd2e 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -5905,6 +5905,9 @@ bool Function::IsOptimizable() const {
|
| // Native methods don't need to be optimized.
|
| return false;
|
| }
|
| + if (FLAG_precompiled_mode) {
|
| + return true;
|
| + }
|
| const intptr_t function_length = end_token_pos().Pos() - token_pos().Pos();
|
| if (is_optimizable() && (script() != Script::null()) &&
|
| (function_length < FLAG_huge_method_cutoff_in_tokens)) {
|
| @@ -12490,6 +12493,12 @@ bool DeoptInfo::VerifyDecompression(const GrowableArray<DeoptInstr*>& original,
|
| }
|
|
|
|
|
| +void ICData::ResetSwitchable(Zone* zone) const {
|
| + ASSERT(NumArgsTested() == 1);
|
| + set_ic_data_array(Array::Handle(zone, CachedEmptyICDataArray(1)));
|
| +}
|
| +
|
| +
|
| const char* ICData::ToCString() const {
|
| const String& name = String::Handle(target_name());
|
| const intptr_t num_args = NumArgsTested();
|
|
|