Add missing assert to Label destructor.
Review URL: http://codereview.chromium.org/7172026 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8316 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
f4e4bc43a8
commit
fbe89ca13e
@ -90,14 +90,18 @@ class Label BASE_EMBEDDED {
|
||||
Unuse();
|
||||
UnuseNear();
|
||||
}
|
||||
INLINE(~Label()) { ASSERT(!is_linked()); }
|
||||
|
||||
INLINE(void Unuse()) { pos_ = 0; }
|
||||
INLINE(void UnuseNear()) { near_link_pos_ = 0; }
|
||||
INLINE(~Label()) {
|
||||
ASSERT(!is_linked());
|
||||
ASSERT(!is_near_linked());
|
||||
}
|
||||
|
||||
INLINE(bool is_bound() const) { return pos_ < 0; }
|
||||
INLINE(bool is_unused() const) { return pos_ == 0 && near_link_pos_ == 0; }
|
||||
INLINE(bool is_linked() const) { return pos_ > 0; }
|
||||
INLINE(void Unuse()) { pos_ = 0; }
|
||||
INLINE(void UnuseNear()) { near_link_pos_ = 0; }
|
||||
|
||||
INLINE(bool is_bound() const) { return pos_ < 0; }
|
||||
INLINE(bool is_unused() const) { return pos_ == 0 && near_link_pos_ == 0; }
|
||||
INLINE(bool is_linked() const) { return pos_ > 0; }
|
||||
INLINE(bool is_near_linked() const) { return near_link_pos_ > 0; }
|
||||
|
||||
// Returns the position of bound or linked labels. Cannot be used
|
||||
|
Loading…
Reference in New Issue
Block a user