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

Unified Diff: third_party/WebKit/Source/core/dom/Node.cpp

Issue 2726593002: Use mayNotBeMainThread() for wrapper optimization (Closed)
Patch Set: Use V8TestingScope Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.h ('k') | third_party/WebKit/Source/core/dom/RangeTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index b8c3eb497fd360ab5fcc1e67c7bb0509642f0390..c735cccbd275b0b2a709940f64d63174e17c72cb 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -2524,27 +2524,6 @@ unsigned Node::lengthOfContents() const {
return 0;
}
-DISABLE_CFI_PERF
-v8::Local<v8::Object> Node::wrap(v8::Isolate* isolate,
- v8::Local<v8::Object> creationContext) {
- DCHECK(!DOMDataStore::containsWrapper(this, isolate));
-
- const WrapperTypeInfo* wrapperType = wrapperTypeInfo();
-
- v8::Local<v8::Object> wrapper =
- V8DOMWrapper::createWrapper(isolate, creationContext, wrapperType);
- DCHECK(!wrapper.IsEmpty());
- return associateWithWrapper(isolate, wrapperType, wrapper);
-}
-
-v8::Local<v8::Object> Node::associateWithWrapper(
- v8::Isolate* isolate,
- const WrapperTypeInfo* wrapperType,
- v8::Local<v8::Object> wrapper) {
- return V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperType,
- wrapper);
-}
-
} // namespace blink
#ifndef NDEBUG
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.h ('k') | third_party/WebKit/Source/core/dom/RangeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698