| 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 5840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5851 result.set_optimized_instruction_count(0); | 5851 result.set_optimized_instruction_count(0); |
| 5852 result.set_optimized_call_site_count(0); | 5852 result.set_optimized_call_site_count(0); |
| 5853 result.set_is_optimizable(is_native ? false : true); | 5853 result.set_is_optimizable(is_native ? false : true); |
| 5854 result.set_is_inlinable(true); | 5854 result.set_is_inlinable(true); |
| 5855 result.set_allows_hoisting_check_class(true); | 5855 result.set_allows_hoisting_check_class(true); |
| 5856 if (kind == RawFunction::kClosureFunction) { | 5856 if (kind == RawFunction::kClosureFunction) { |
| 5857 const ClosureData& data = ClosureData::Handle(ClosureData::New()); | 5857 const ClosureData& data = ClosureData::Handle(ClosureData::New()); |
| 5858 result.set_data(data); | 5858 result.set_data(data); |
| 5859 } | 5859 } |
| 5860 | 5860 |
| 5861 // TODO(zra): Remove when arm64 is ready. | |
| 5862 #if !defined(TARGET_ARCH_ARM64) | |
| 5863 result.set_code(Code::Handle(StubCode::LazyCompile_entry()->code())); | 5861 result.set_code(Code::Handle(StubCode::LazyCompile_entry()->code())); |
| 5864 #else | |
| 5865 result.set_code(Code::Handle()); | |
| 5866 #endif | |
| 5867 return result.raw(); | 5862 return result.raw(); |
| 5868 } | 5863 } |
| 5869 | 5864 |
| 5870 | 5865 |
| 5871 RawFunction* Function::Clone(const Class& new_owner) const { | 5866 RawFunction* Function::Clone(const Class& new_owner) const { |
| 5872 ASSERT(!IsConstructor()); | 5867 ASSERT(!IsConstructor()); |
| 5873 Function& clone = Function::Handle(); | 5868 Function& clone = Function::Handle(); |
| 5874 clone ^= Object::Clone(*this, Heap::kOld); | 5869 clone ^= Object::Clone(*this, Heap::kOld); |
| 5875 const Class& origin = Class::Handle(this->origin()); | 5870 const Class& origin = Class::Handle(this->origin()); |
| 5876 const PatchClass& clone_owner = | 5871 const PatchClass& clone_owner = |
| (...skipping 12552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18429 return tag_label.ToCString(); | 18424 return tag_label.ToCString(); |
| 18430 } | 18425 } |
| 18431 | 18426 |
| 18432 | 18427 |
| 18433 void UserTag::PrintToJSONStream(JSONStream* stream, bool ref) const { | 18428 void UserTag::PrintToJSONStream(JSONStream* stream, bool ref) const { |
| 18434 Instance::PrintToJSONStream(stream, ref); | 18429 Instance::PrintToJSONStream(stream, ref); |
| 18435 } | 18430 } |
| 18436 | 18431 |
| 18437 | 18432 |
| 18438 } // namespace dart | 18433 } // namespace dart |
| OLD | NEW |