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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.cpp

Issue 2474693002: [wrapper-tracing] Support for incrementally tracing ScopedPersistent (Closed)
Patch Set: Added bailout for tests when the flag is off Created 4 years, 1 month 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
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 "bindings/core/v8/ScriptWrappable.h" 5 #include "bindings/core/v8/ScriptWrappable.h"
6 6
7 #include "bindings/core/v8/DOMDataStore.h" 7 #include "bindings/core/v8/DOMDataStore.h"
8 #include "bindings/core/v8/ScriptWrappableVisitor.h" 8 #include "bindings/core/v8/ScriptWrappableVisitor.h"
9 #include "bindings/core/v8/V8DOMWrapper.h" 9 #include "bindings/core/v8/V8DOMWrapper.h"
10 10
(...skipping 23 matching lines...) Expand all
34 v8::Local<v8::Object> ScriptWrappable::associateWithWrapper( 34 v8::Local<v8::Object> ScriptWrappable::associateWithWrapper(
35 v8::Isolate* isolate, 35 v8::Isolate* isolate,
36 const WrapperTypeInfo* wrapperTypeInfo, 36 const WrapperTypeInfo* wrapperTypeInfo,
37 v8::Local<v8::Object> wrapper) { 37 v8::Local<v8::Object> wrapper) {
38 return V8DOMWrapper::associateObjectWithWrapper(isolate, this, 38 return V8DOMWrapper::associateObjectWithWrapper(isolate, this,
39 wrapperTypeInfo, wrapper); 39 wrapperTypeInfo, wrapper);
40 } 40 }
41 41
42 void ScriptWrappable::markWrapper(const WrapperVisitor* visitor) const { 42 void ScriptWrappable::markWrapper(const WrapperVisitor* visitor) const {
43 if (containsWrapper()) 43 if (containsWrapper())
44 visitor->markWrapper(&m_mainWorldWrapper); 44 visitor->markWrapper(&m_mainWorldWrapper.As<v8::Value>());
45 } 45 }
46 46
47 } // namespace blink 47 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698