| 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 4823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4834 | 4834 |
| 4835 | 4835 |
| 4836 bool Function::IsNativeAutoSetupScope() const { | 4836 bool Function::IsNativeAutoSetupScope() const { |
| 4837 return is_native() ? is_optimizable() : false; | 4837 return is_native() ? is_optimizable() : false; |
| 4838 } | 4838 } |
| 4839 | 4839 |
| 4840 | 4840 |
| 4841 void Function::SetIsOptimizable(bool value) const { | 4841 void Function::SetIsOptimizable(bool value) const { |
| 4842 ASSERT(!is_native()); | 4842 ASSERT(!is_native()); |
| 4843 set_is_optimizable(value); | 4843 set_is_optimizable(value); |
| 4844 if (!value) { |
| 4845 set_is_inlinable(false); |
| 4846 } |
| 4844 } | 4847 } |
| 4845 | 4848 |
| 4846 | 4849 |
| 4847 void Function::SetIsNativeAutoSetupScope(bool value) const { | 4850 void Function::SetIsNativeAutoSetupScope(bool value) const { |
| 4848 ASSERT(is_native()); | 4851 ASSERT(is_native()); |
| 4849 set_is_optimizable(value); | 4852 set_is_optimizable(value); |
| 4850 } | 4853 } |
| 4851 | 4854 |
| 4852 void Function::set_is_optimizable(bool value) const { | 4855 void Function::set_is_optimizable(bool value) const { |
| 4853 set_kind_tag(OptimizableBit::update(value, raw_ptr()->kind_tag_)); | 4856 set_kind_tag(OptimizableBit::update(value, raw_ptr()->kind_tag_)); |
| (...skipping 12073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16927 return "_MirrorReference"; | 16930 return "_MirrorReference"; |
| 16928 } | 16931 } |
| 16929 | 16932 |
| 16930 | 16933 |
| 16931 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { | 16934 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { |
| 16932 Instance::PrintToJSONStream(stream, ref); | 16935 Instance::PrintToJSONStream(stream, ref); |
| 16933 } | 16936 } |
| 16934 | 16937 |
| 16935 | 16938 |
| 16936 } // namespace dart | 16939 } // namespace dart |
| OLD | NEW |