Move IsArgumentsMarker from class MaybeObject to Object.

Since we never need to ask it of a MaybeObject, put it with the other
oddball testers in class Object for consistency.

Review URL: http://codereview.chromium.org/6138004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6216 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
kmillikin@chromium.org 2011-01-07 10:06:28 +00:00
parent f39ff5c679
commit 12b34fa927
2 changed files with 6 additions and 6 deletions

View File

@ -423,11 +423,6 @@ bool MaybeObject::IsTheHole() {
}
bool MaybeObject::IsArgumentsMarker() {
return this == Heap::arguments_marker();
}
Failure* Failure::cast(MaybeObject* obj) {
ASSERT(HAS_FAILURE_TAG(obj));
return reinterpret_cast<Failure*>(obj);
@ -735,6 +730,11 @@ bool Object::IsFalse() {
}
bool Object::IsArgumentsMarker() {
return this == Heap::arguments_marker();
}
double Object::Number() {
ASSERT(IsNumber());
return IsSmi()

View File

@ -593,7 +593,6 @@ class MaybeObject BASE_EMBEDDED {
inline bool IsOutOfMemory();
inline bool IsException();
INLINE(bool IsTheHole());
INLINE(bool IsArgumentsMarker());
inline bool ToObject(Object** obj) {
if (IsFailure()) return false;
*obj = reinterpret_cast<Object*>(this);
@ -710,6 +709,7 @@ class Object : public MaybeObject {
INLINE(bool IsNull());
INLINE(bool IsTrue());
INLINE(bool IsFalse());
inline bool IsArgumentsMarker();
// Extract the number.
inline double Number();