OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |