Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / bindings / core / v8 / ScriptWrappable.cpp
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.
4
5 #include "config.h"
6 #include "bindings/core/v8/ScriptWrappable.h"
7
8 namespace blink {
9
10 struct SameSizeAsScriptWrappableBase { };
11
12 COMPILE_ASSERT(sizeof(ScriptWrappableBase) <= sizeof(SameSizeAsScriptWrappableBase), ScriptWrappableBase_should_stay_small);
13
14 struct SameSizeAsScriptWrappable : public ScriptWrappableBase {
15     virtual ~SameSizeAsScriptWrappable() { }
16     uintptr_t m_wrapperOrTypeInfo;
17 };
18
19 COMPILE_ASSERT(sizeof(ScriptWrappable) <= sizeof(SameSizeAsScriptWrappable), ScriptWrappable_should_stay_small);
20
21 } // namespace blink