| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "bindings/core/v8/ToV8.h" | 6 #include "bindings/core/v8/ToV8.h" |
| 7 | 7 |
| 8 #include "bindings/core/v8/V8Binding.h" | 8 #include "bindings/core/v8/V8Binding.h" |
| 9 #include "core/testing/GarbageCollectedScriptWrappable.h" | 9 #include "core/testing/GarbageCollectedScriptWrappable.h" |
| 10 #include "core/testing/RefCountedScriptWrappable.h" | 10 #include "core/testing/RefCountedScriptWrappable.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 } | 39 } |
| 40 | 40 |
| 41 V8TestingScope m_scope; | 41 V8TestingScope m_scope; |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 class GarbageCollectedHolder : public GarbageCollectedFinalized<GarbageCollected
Holder> { | 44 class GarbageCollectedHolder : public GarbageCollectedFinalized<GarbageCollected
Holder> { |
| 45 public: | 45 public: |
| 46 GarbageCollectedHolder(GarbageCollectedScriptWrappable* scriptWrappable) | 46 GarbageCollectedHolder(GarbageCollectedScriptWrappable* scriptWrappable) |
| 47 : m_scriptWrappable(scriptWrappable) { } | 47 : m_scriptWrappable(scriptWrappable) { } |
| 48 | 48 |
| 49 void trace(Visitor* visitor) { visitor->trace(m_scriptWrappable); } | 49 DEFINE_INLINE_TRACE() { visitor->trace(m_scriptWrappable); } |
| 50 | 50 |
| 51 // This should be public in order to access a Member<X> object. | 51 // This should be public in order to access a Member<X> object. |
| 52 Member<GarbageCollectedScriptWrappable> m_scriptWrappable; | 52 Member<GarbageCollectedScriptWrappable> m_scriptWrappable; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 class OffHeapGarbageCollectedHolder { | 55 class OffHeapGarbageCollectedHolder { |
| 56 public: | 56 public: |
| 57 OffHeapGarbageCollectedHolder(GarbageCollectedScriptWrappable* scriptWrappab
le) | 57 OffHeapGarbageCollectedHolder(GarbageCollectedScriptWrappable* scriptWrappab
le) |
| 58 : m_scriptWrappable(scriptWrappable) { } | 58 : m_scriptWrappable(scriptWrappable) { } |
| 59 | 59 |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 HeapVector<bool> boolVector; | 285 HeapVector<bool> boolVector; |
| 286 boolVector.append(true); | 286 boolVector.append(true); |
| 287 boolVector.append(true); | 287 boolVector.append(true); |
| 288 boolVector.append(false); | 288 boolVector.append(false); |
| 289 TEST_TOV8("true,true,false", boolVector); | 289 TEST_TOV8("true,true,false", boolVector); |
| 290 } | 290 } |
| 291 | 291 |
| 292 } // namespace | 292 } // namespace |
| 293 | 293 |
| 294 } // namespace blink | 294 } // namespace blink |
| OLD | NEW |