X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/ba379fdc102753d6be2c4d937058fe40257329fe..4e4e5a6f2694187498445a6ac6f1634ce8141119:/interpreter/Register.h diff --git a/interpreter/Register.h b/interpreter/Register.h index e159812..ecd7403 100644 --- a/interpreter/Register.h +++ b/interpreter/Register.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008 Apple Inc. All rights reserved. + * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -55,9 +55,6 @@ namespace JSC { Register(const JSValue&); Register& operator=(const JSValue&); JSValue jsValue() const; - - bool marked() const; - void mark(); Register& operator=(JSActivation*); Register& operator=(CallFrame*); @@ -108,6 +105,9 @@ namespace JSC { ALWAYS_INLINE Register::Register(const JSValue& v) { +#if ENABLE(JSC_ZOMBIES) + ASSERT(!v.isZombie()); +#endif u.value = JSValue::encode(v); } @@ -124,17 +124,7 @@ namespace JSC { { return JSValue::decode(u.value); } - - ALWAYS_INLINE bool Register::marked() const - { - return jsValue().marked(); - } - ALWAYS_INLINE void Register::mark() - { - jsValue().mark(); - } - // Interpreter functions ALWAYS_INLINE Register& Register::operator=(JSActivation* activation)