Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Side by Side Diff: runtime/vm/object.cc

Issue 246293010: Enables first codegen test on arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/intermediate_language_arm64.cc ('k') | runtime/vm/unit_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_arm64.cc ('k') | runtime/vm/unit_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698