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

Unified Diff: runtime/vm/object.h

Issue 12025038: Hide private corelib's method from stack trace in exceptions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/exceptions.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 17487)
+++ runtime/vm/object.h (working copy)
@@ -1392,6 +1392,11 @@
bool IsInlineable() const;
void set_is_inlinable(bool value) const;
+ bool is_visible() const {
+ return VisibleBit::decode(raw_ptr()->kind_tag_);
+ }
+ void set_is_visible(bool value) const;
+
enum IntrinsicKind {
kUnknownIntrinsic = 0, // Initial value.
kIsIntrinsic,
@@ -1547,9 +1552,10 @@
kNativeBit = 5,
kAbstractBit = 6,
kExternalBit = 7,
- kIntrinsicTagBit = 8,
+ kVisibleBit = 8,
+ kIntrinsicTagBit = 9,
kIntrinsicTagSize = 2,
- kKindTagBit = 10,
+ kKindTagBit = 11,
kKindTagSize = 4,
};
class StaticBit : public BitField<bool, kStaticBit, 1> {};
@@ -1560,6 +1566,7 @@
class NativeBit : public BitField<bool, kNativeBit, 1> {};
class AbstractBit : public BitField<bool, kAbstractBit, 1> {};
class ExternalBit : public BitField<bool, kExternalBit, 1> {};
+ class VisibleBit : public BitField<bool, kVisibleBit, 1> {};
class IntrinsicKindBits :
public BitField<Function::IntrinsicKind,
kIntrinsicTagBit, kIntrinsicTagSize> {}; // NOLINT
« no previous file with comments | « runtime/vm/exceptions.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698