| 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 5893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5904 | 5904 |
| 5905 void Function::SetIsNativeAutoSetupScope(bool value) const { | 5905 void Function::SetIsNativeAutoSetupScope(bool value) const { |
| 5906 ASSERT(is_native()); | 5906 ASSERT(is_native()); |
| 5907 set_is_optimizable(value); | 5907 set_is_optimizable(value); |
| 5908 } | 5908 } |
| 5909 | 5909 |
| 5910 | 5910 |
| 5911 bool Function::CanBeInlined() const { | 5911 bool Function::CanBeInlined() const { |
| 5912 return is_inlinable() && | 5912 return is_inlinable() && |
| 5913 !is_generated_body() && | 5913 !is_generated_body() && |
| 5914 HasCode() && | |
| 5915 !Isolate::Current()->debugger()->HasBreakpoint(*this); | 5914 !Isolate::Current()->debugger()->HasBreakpoint(*this); |
| 5916 } | 5915 } |
| 5917 | 5916 |
| 5918 | 5917 |
| 5919 intptr_t Function::NumParameters() const { | 5918 intptr_t Function::NumParameters() const { |
| 5920 return num_fixed_parameters() + NumOptionalParameters(); | 5919 return num_fixed_parameters() + NumOptionalParameters(); |
| 5921 } | 5920 } |
| 5922 | 5921 |
| 5923 | 5922 |
| 5924 intptr_t Function::NumImplicitParameters() const { | 5923 intptr_t Function::NumImplicitParameters() const { |
| (...skipping 15831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21756 return tag_label.ToCString(); | 21755 return tag_label.ToCString(); |
| 21757 } | 21756 } |
| 21758 | 21757 |
| 21759 | 21758 |
| 21760 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 21759 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 21761 Instance::PrintJSONImpl(stream, ref); | 21760 Instance::PrintJSONImpl(stream, ref); |
| 21762 } | 21761 } |
| 21763 | 21762 |
| 21764 | 21763 |
| 21765 } // namespace dart | 21764 } // namespace dart |
| OLD | NEW |