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

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

Issue 227433004: Add runtime and native entry tags (Closed) Base URL: https://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/native_entry.cc ('k') | runtime/vm/object.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 #ifndef VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 2590 matching lines...) Expand 10 before | Expand all | Expand 10 after
2601 RawFunction* LookupFunctionInScript(const Script& script, 2601 RawFunction* LookupFunctionInScript(const Script& script,
2602 intptr_t token_pos) const; 2602 intptr_t token_pos) const;
2603 2603
2604 // Resolving native methods for script loaded in the library. 2604 // Resolving native methods for script loaded in the library.
2605 Dart_NativeEntryResolver native_entry_resolver() const { 2605 Dart_NativeEntryResolver native_entry_resolver() const {
2606 return raw_ptr()->native_entry_resolver_; 2606 return raw_ptr()->native_entry_resolver_;
2607 } 2607 }
2608 void set_native_entry_resolver(Dart_NativeEntryResolver value) const { 2608 void set_native_entry_resolver(Dart_NativeEntryResolver value) const {
2609 raw_ptr()->native_entry_resolver_ = value; 2609 raw_ptr()->native_entry_resolver_ = value;
2610 } 2610 }
2611 Dart_NativeEntrySymbol native_entry_symbol_resolver() const {
2612 return raw_ptr()->native_entry_symbol_resolver_;
2613 }
2614 void set_native_entry_symbol_resolver(
2615 Dart_NativeEntrySymbol native_symbol_resolver) const {
2616 raw_ptr()->native_entry_symbol_resolver_ = native_symbol_resolver;
2617 }
2611 2618
2612 RawError* Patch(const Script& script) const; 2619 RawError* Patch(const Script& script) const;
2613 2620
2614 RawString* PrivateName(const String& name) const; 2621 RawString* PrivateName(const String& name) const;
2615 2622
2616 intptr_t index() const { return raw_ptr()->index_; } 2623 intptr_t index() const { return raw_ptr()->index_; }
2617 void set_index(intptr_t value) const { 2624 void set_index(intptr_t value) const {
2618 raw_ptr()->index_ = value; 2625 raw_ptr()->index_ = value;
2619 } 2626 }
2620 2627
(...skipping 4154 matching lines...) Expand 10 before | Expand all | Expand 10 after
6775 6782
6776 6783
6777 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6784 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6778 intptr_t index) { 6785 intptr_t index) {
6779 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6786 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6780 } 6787 }
6781 6788
6782 } // namespace dart 6789 } // namespace dart
6783 6790
6784 #endif // VM_OBJECT_H_ 6791 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/native_entry.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698