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

Side by Side Diff: Source/web/WebKit.cpp

Issue 651713002: Oilpan: DOM wrappers don't need to keep persistent handles (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 static bool s_webKitInitialized = false; 93 static bool s_webKitInitialized = false;
94 94
95 void initialize(Platform* platform) 95 void initialize(Platform* platform)
96 { 96 {
97 initializeWithoutV8(platform); 97 initializeWithoutV8(platform);
98 98
99 V8Initializer::initializeMainThreadIfNeeded(); 99 V8Initializer::initializeMainThreadIfNeeded();
100 100
101 s_isolateInterruptor = new V8IsolateInterruptor(V8PerIsolateData::mainThread Isolate()); 101 s_isolateInterruptor = new V8IsolateInterruptor(V8PerIsolateData::mainThread Isolate());
102 ThreadState::current()->addInterruptor(s_isolateInterruptor); 102 ThreadState::current()->addInterruptor(s_isolateInterruptor);
103 ThreadState::current()->registerTraceDOMWrappers(V8GCController::traceDOMWra ppers);
103 104
104 // currentThread will always be non-null in production, but can be null in C hromium unit tests. 105 // currentThread will always be non-null in production, but can be null in C hromium unit tests.
105 if (WebThread* currentThread = platform->currentThread()) { 106 if (WebThread* currentThread = platform->currentThread()) {
106 ASSERT(!s_endOfTaskRunner); 107 ASSERT(!s_endOfTaskRunner);
107 s_endOfTaskRunner = new EndOfTaskRunner; 108 s_endOfTaskRunner = new EndOfTaskRunner;
108 currentThread->addTaskObserver(s_endOfTaskRunner); 109 currentThread->addTaskObserver(s_endOfTaskRunner);
109 } 110 }
110 } 111 }
111 112
112 v8::Isolate* mainThreadIsolate() 113 v8::Isolate* mainThreadIsolate()
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 channel->state = WTFLogChannelOn; 255 channel->state = WTFLogChannelOn;
255 #endif // !LOG_DISABLED 256 #endif // !LOG_DISABLED
256 } 257 }
257 258
258 void resetPluginCache(bool reloadPages) 259 void resetPluginCache(bool reloadPages)
259 { 260 {
260 Page::refreshPlugins(reloadPages); 261 Page::refreshPlugins(reloadPages);
261 } 262 }
262 263
263 } // namespace blink 264 } // namespace blink
OLDNEW
« Source/platform/heap/ThreadState.cpp ('K') | « Source/platform/heap/blink_heap.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698