OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/object.h" | 5 #include "vm/object.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
(...skipping 4560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4571 FLAG_huge_method_cutoff_in_code_size)) { | 4571 FLAG_huge_method_cutoff_in_code_size)) { |
4572 return false; | 4572 return false; |
4573 } else { | 4573 } else { |
4574 return true; | 4574 return true; |
4575 } | 4575 } |
4576 } | 4576 } |
4577 return false; | 4577 return false; |
4578 } | 4578 } |
4579 | 4579 |
4580 | 4580 |
4581 bool Function::IsNativeLeaf() const { | 4581 bool Function::IsNativeAutoSetupScope() const { |
4582 return is_native() ? is_optimizable() : false; | 4582 return is_native() ? is_optimizable() : false; |
4583 } | 4583 } |
4584 | 4584 |
4585 | 4585 |
4586 void Function::SetIsOptimizable(bool value) const { | 4586 void Function::SetIsOptimizable(bool value) const { |
4587 ASSERT(!is_native()); | 4587 ASSERT(!is_native()); |
4588 set_is_optimizable(value); | 4588 set_is_optimizable(value); |
4589 } | 4589 } |
4590 | 4590 |
4591 | 4591 |
4592 void Function::SetIsNativeLeaf(bool value) const { | 4592 void Function::SetIsNativeAutoSetupScope(bool value) const { |
4593 ASSERT(is_native()); | 4593 ASSERT(is_native()); |
4594 set_is_optimizable(value); | 4594 set_is_optimizable(value); |
4595 } | 4595 } |
4596 | 4596 |
4597 void Function::set_is_optimizable(bool value) const { | 4597 void Function::set_is_optimizable(bool value) const { |
4598 set_kind_tag(OptimizableBit::update(value, raw_ptr()->kind_tag_)); | 4598 set_kind_tag(OptimizableBit::update(value, raw_ptr()->kind_tag_)); |
4599 } | 4599 } |
4600 | 4600 |
4601 | 4601 |
4602 void Function::set_has_finally(bool value) const { | 4602 void Function::set_has_finally(bool value) const { |
(...skipping 11909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16512 return "_MirrorReference"; | 16512 return "_MirrorReference"; |
16513 } | 16513 } |
16514 | 16514 |
16515 | 16515 |
16516 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { | 16516 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { |
16517 Instance::PrintToJSONStream(stream, ref); | 16517 Instance::PrintToJSONStream(stream, ref); |
16518 } | 16518 } |
16519 | 16519 |
16520 | 16520 |
16521 } // namespace dart | 16521 } // namespace dart |
OLD | NEW |