1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 #include "bindings/core/v8/ScriptWrappable.h"
10 struct SameSizeAsScriptWrappableBase { };
12 COMPILE_ASSERT(sizeof(ScriptWrappableBase) <= sizeof(SameSizeAsScriptWrappableBase), ScriptWrappableBase_should_stay_small);
14 struct SameSizeAsScriptWrappable : public ScriptWrappableBase {
15 virtual ~SameSizeAsScriptWrappable() { }
16 uintptr_t m_wrapperOrTypeInfo;
19 COMPILE_ASSERT(sizeof(ScriptWrappable) <= sizeof(SameSizeAsScriptWrappable), ScriptWrappable_should_stay_small);