Index: Source/bindings/core/v8/ScriptWrappable.cpp |
diff --git a/Source/bindings/core/v8/ScriptWrappable.cpp b/Source/bindings/core/v8/ScriptWrappable.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..76890acca3651af77f74c9b2aa9ff4d85e60ea99 |
--- /dev/null |
+++ b/Source/bindings/core/v8/ScriptWrappable.cpp |
@@ -0,0 +1,21 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "config.h" |
+#include "bindings/core/v8/ScriptWrappable.h" |
+ |
+namespace blink { |
+ |
+struct SameSizeAsScriptWrappableBase { }; |
+ |
+COMPILE_ASSERT(sizeof(ScriptWrappableBase) <= sizeof(SameSizeAsScriptWrappableBase), ScriptWrappableBase_should_stay_small); |
+ |
+struct SameSizeAsScriptWrappable : public ScriptWrappableBase { |
+ virtual ~SameSizeAsScriptWrappable() { } |
+ uintptr_t m_wrapperOrTypeInfo; |
+}; |
+ |
+COMPILE_ASSERT(sizeof(ScriptWrappable) <= sizeof(SameSizeAsScriptWrappable), ScriptWrappable_should_stay_small); |
+ |
+} // namespace blink |