Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(758)

Side by Side Diff: Source/bindings/core/v8/ToV8Test.cpp

Issue 954683002: InlinedVisitor: Migrate bindings to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698