OLD | NEW |
(Empty) | |
| 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(SameSizeAsScriptWrappableBa
se), 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), Scr
iptWrappable_should_stay_small); |
| 20 |
| 21 } // namespace blink |
OLD | NEW |