| 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 5876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5887 result.set_optimized_instruction_count(0); | 5887 result.set_optimized_instruction_count(0); |
| 5888 result.set_optimized_call_site_count(0); | 5888 result.set_optimized_call_site_count(0); |
| 5889 result.set_is_optimizable(is_native ? false : true); | 5889 result.set_is_optimizable(is_native ? false : true); |
| 5890 result.set_is_inlinable(true); | 5890 result.set_is_inlinable(true); |
| 5891 result.set_allows_hoisting_check_class(true); | 5891 result.set_allows_hoisting_check_class(true); |
| 5892 if (kind == RawFunction::kClosureFunction) { | 5892 if (kind == RawFunction::kClosureFunction) { |
| 5893 const ClosureData& data = ClosureData::Handle(ClosureData::New()); | 5893 const ClosureData& data = ClosureData::Handle(ClosureData::New()); |
| 5894 result.set_data(data); | 5894 result.set_data(data); |
| 5895 } | 5895 } |
| 5896 | 5896 |
| 5897 // TODO(zra): Remove when arm64 is ready. | |
| 5898 #if !defined(TARGET_ARCH_ARM64) | |
| 5899 result.set_code(Code::Handle(StubCode::LazyCompile_entry()->code())); | 5897 result.set_code(Code::Handle(StubCode::LazyCompile_entry()->code())); |
| 5900 #else | |
| 5901 result.set_code(Code::Handle()); | |
| 5902 #endif | |
| 5903 return result.raw(); | 5898 return result.raw(); |
| 5904 } | 5899 } |
| 5905 | 5900 |
| 5906 | 5901 |
| 5907 RawFunction* Function::Clone(const Class& new_owner) const { | 5902 RawFunction* Function::Clone(const Class& new_owner) const { |
| 5908 ASSERT(!IsConstructor()); | 5903 ASSERT(!IsConstructor()); |
| 5909 Function& clone = Function::Handle(); | 5904 Function& clone = Function::Handle(); |
| 5910 clone ^= Object::Clone(*this, Heap::kOld); | 5905 clone ^= Object::Clone(*this, Heap::kOld); |
| 5911 const Class& origin = Class::Handle(this->origin()); | 5906 const Class& origin = Class::Handle(this->origin()); |
| 5912 const PatchClass& clone_owner = | 5907 const PatchClass& clone_owner = |
| (...skipping 12547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18460 return tag_label.ToCString(); | 18455 return tag_label.ToCString(); |
| 18461 } | 18456 } |
| 18462 | 18457 |
| 18463 | 18458 |
| 18464 void UserTag::PrintToJSONStream(JSONStream* stream, bool ref) const { | 18459 void UserTag::PrintToJSONStream(JSONStream* stream, bool ref) const { |
| 18465 Instance::PrintToJSONStream(stream, ref); | 18460 Instance::PrintToJSONStream(stream, ref); |
| 18466 } | 18461 } |
| 18467 | 18462 |
| 18468 | 18463 |
| 18469 } // namespace dart | 18464 } // namespace dart |
| OLD | NEW |