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

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

Issue 117723002: Allow the native resolver to setup whether it needs the Dart API scope to (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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 1717 matching lines...) Expand 10 before | Expand all | Expand 10 after
1728 } 1728 }
1729 void set_optimized_call_site_count(intptr_t value) const { 1729 void set_optimized_call_site_count(intptr_t value) const {
1730 ASSERT(value >= 0); 1730 ASSERT(value >= 0);
1731 if (value > kMaxInstructionCount) { 1731 if (value > kMaxInstructionCount) {
1732 value = kMaxInstructionCount; 1732 value = kMaxInstructionCount;
1733 } 1733 }
1734 raw_ptr()->optimized_call_site_count_ = static_cast<uint16_t>(value); 1734 raw_ptr()->optimized_call_site_count_ = static_cast<uint16_t>(value);
1735 } 1735 }
1736 1736
1737 bool IsOptimizable() const; 1737 bool IsOptimizable() const;
1738 bool IsNativeLeaf() const; 1738 bool IsNativeAutoSetupScope() const;
1739 void SetIsOptimizable(bool value) const; 1739 void SetIsOptimizable(bool value) const;
1740 void SetIsNativeLeaf(bool value) const; 1740 void SetIsNativeAutoSetupScope(bool value) const;
1741 1741
1742 bool has_finally() const { 1742 bool has_finally() const {
1743 return HasFinallyBit::decode(raw_ptr()->kind_tag_); 1743 return HasFinallyBit::decode(raw_ptr()->kind_tag_);
1744 } 1744 }
1745 void set_has_finally(bool value) const; 1745 void set_has_finally(bool value) const;
1746 1746
1747 bool is_native() const { return NativeBit::decode(raw_ptr()->kind_tag_); } 1747 bool is_native() const { return NativeBit::decode(raw_ptr()->kind_tag_); }
1748 void set_is_native(bool value) const; 1748 void set_is_native(bool value) const;
1749 1749
1750 bool is_abstract() const { return AbstractBit::decode(raw_ptr()->kind_tag_); } 1750 bool is_abstract() const { return AbstractBit::decode(raw_ptr()->kind_tag_); }
(...skipping 4812 matching lines...) Expand 10 before | Expand all | Expand 10 after
6563 6563
6564 6564
6565 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6565 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6566 intptr_t index) { 6566 intptr_t index) {
6567 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6567 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6568 } 6568 }
6569 6569
6570 } // namespace dart 6570 } // namespace dart
6571 6571
6572 #endif // VM_OBJECT_H_ 6572 #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