X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/14957cd040308e3eeec43d26bae5d76da13fcd85..HEAD:/runtime/BooleanObject.cpp diff --git a/runtime/BooleanObject.cpp b/runtime/BooleanObject.cpp index e24a30a..28cad6a 100644 --- a/runtime/BooleanObject.cpp +++ b/runtime/BooleanObject.cpp @@ -21,16 +21,24 @@ #include "config.h" #include "BooleanObject.h" +#include "JSScope.h" +#include "JSCInlines.h" + namespace JSC { -ASSERT_CLASS_FITS_IN_CELL(BooleanObject); +STATIC_ASSERT_IS_TRIVIALLY_DESTRUCTIBLE(BooleanObject); + +const ClassInfo BooleanObject::s_info = { "Boolean", &JSWrapperObject::s_info, 0, CREATE_METHOD_TABLE(BooleanObject) }; -const ClassInfo BooleanObject::s_info = { "Boolean", &JSWrapperObject::s_info, 0, 0 }; +BooleanObject::BooleanObject(VM& vm, Structure* structure) + : JSWrapperObject(vm, structure) +{ +} -BooleanObject::BooleanObject(JSGlobalData& globalData, Structure* structure) - : JSWrapperObject(globalData, structure) +void BooleanObject::finishCreation(VM& vm) { - ASSERT(inherits(&s_info)); + Base::finishCreation(vm); + ASSERT(inherits(info())); } } // namespace JSC