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
parent f39ff5c6
......@@ -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()
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment