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

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

Issue 221133002: Begins work on ARM64, first assembler test. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: adds files 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/json_test.cc ('k') | runtime/vm/object_arm64_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 5845 matching lines...) Expand 10 before | Expand all | Expand 10 after
5856 result.set_deoptimization_counter(0); 5856 result.set_deoptimization_counter(0);
5857 result.set_optimized_instruction_count(0); 5857 result.set_optimized_instruction_count(0);
5858 result.set_optimized_call_site_count(0); 5858 result.set_optimized_call_site_count(0);
5859 result.set_is_optimizable(is_native ? false : true); 5859 result.set_is_optimizable(is_native ? false : true);
5860 result.set_is_inlinable(true); 5860 result.set_is_inlinable(true);
5861 result.set_allows_hoisting_check_class(true); 5861 result.set_allows_hoisting_check_class(true);
5862 if (kind == RawFunction::kClosureFunction) { 5862 if (kind == RawFunction::kClosureFunction) {
5863 const ClosureData& data = ClosureData::Handle(ClosureData::New()); 5863 const ClosureData& data = ClosureData::Handle(ClosureData::New());
5864 result.set_data(data); 5864 result.set_data(data);
5865 } 5865 }
5866
5867 // TODO(zra): Remove when arm64 is ready.
5868 #if !defined(TARGET_ARCH_ARM64)
5866 result.set_code(Code::Handle(StubCode::LazyCompile_entry()->code())); 5869 result.set_code(Code::Handle(StubCode::LazyCompile_entry()->code()));
5870 #else
5871 result.set_code(Code::Handle());
5872 #endif
5867 return result.raw(); 5873 return result.raw();
5868 } 5874 }
5869 5875
5870 5876
5871 RawFunction* Function::Clone(const Class& new_owner) const { 5877 RawFunction* Function::Clone(const Class& new_owner) const {
5872 ASSERT(!IsConstructor()); 5878 ASSERT(!IsConstructor());
5873 Function& clone = Function::Handle(); 5879 Function& clone = Function::Handle();
5874 clone ^= Object::Clone(*this, Heap::kOld); 5880 clone ^= Object::Clone(*this, Heap::kOld);
5875 const Class& origin = Class::Handle(this->origin()); 5881 const Class& origin = Class::Handle(this->origin());
5876 const PatchClass& clone_owner = 5882 const PatchClass& clone_owner =
(...skipping 12350 matching lines...) Expand 10 before | Expand all | Expand 10 after
18227 return "_MirrorReference"; 18233 return "_MirrorReference";
18228 } 18234 }
18229 18235
18230 18236
18231 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { 18237 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const {
18232 Instance::PrintToJSONStream(stream, ref); 18238 Instance::PrintToJSONStream(stream, ref);
18233 } 18239 }
18234 18240
18235 18241
18236 } // namespace dart 18242 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/json_test.cc ('k') | runtime/vm/object_arm64_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698