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

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

Issue 3003183003: Fix inlining annotations for AOT. (Closed)
Patch Set: const Created 3 years, 4 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
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/parser.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/become.h" 10 #include "vm/become.h"
(...skipping 10687 matching lines...) Expand 10 before | Expand all | Expand 10 after
10698 return LibraryPrefix::Cast(obj).raw(); 10698 return LibraryPrefix::Cast(obj).raw();
10699 } 10699 }
10700 return LibraryPrefix::null(); 10700 return LibraryPrefix::null();
10701 } 10701 }
10702 10702
10703 void Library::set_toplevel_class(const Class& value) const { 10703 void Library::set_toplevel_class(const Class& value) const {
10704 ASSERT(raw_ptr()->toplevel_class_ == Class::null()); 10704 ASSERT(raw_ptr()->toplevel_class_ == Class::null());
10705 StorePointer(&raw_ptr()->toplevel_class_, value.raw()); 10705 StorePointer(&raw_ptr()->toplevel_class_, value.raw());
10706 } 10706 }
10707 10707
10708 void Library::set_metadata(const GrowableObjectArray& value) const {
10709 StorePointer(&raw_ptr()->metadata_, value.raw());
10710 }
10711
10708 RawLibrary* Library::ImportLibraryAt(intptr_t index) const { 10712 RawLibrary* Library::ImportLibraryAt(intptr_t index) const {
10709 Namespace& import = Namespace::Handle(ImportAt(index)); 10713 Namespace& import = Namespace::Handle(ImportAt(index));
10710 if (import.IsNull()) { 10714 if (import.IsNull()) {
10711 return Library::null(); 10715 return Library::null();
10712 } 10716 }
10713 return import.library(); 10717 return import.library();
10714 } 10718 }
10715 10719
10716 RawNamespace* Library::ImportAt(intptr_t index) const { 10720 RawNamespace* Library::ImportAt(intptr_t index) const {
10717 if ((index < 0) || index >= num_imports()) { 10721 if ((index < 0) || index >= num_imports()) {
(...skipping 11721 matching lines...) Expand 10 before | Expand all | Expand 10 after
22439 } 22443 }
22440 return UserTag::null(); 22444 return UserTag::null();
22441 } 22445 }
22442 22446
22443 const char* UserTag::ToCString() const { 22447 const char* UserTag::ToCString() const {
22444 const String& tag_label = String::Handle(label()); 22448 const String& tag_label = String::Handle(label());
22445 return tag_label.ToCString(); 22449 return tag_label.ToCString();
22446 } 22450 }
22447 22451
22448 } // namespace dart 22452 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698