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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 ThreadState::current()->addInterruptor(interruptor.release()); | 116 ThreadState::current()->addInterruptor(interruptor.release()); |
117 ThreadState::current()->registerTraceDOMWrappers(V8PerIsolateData::mainThrea
dIsolate(), V8GCController::traceDOMWrappers); | 117 ThreadState::current()->registerTraceDOMWrappers(V8PerIsolateData::mainThrea
dIsolate(), V8GCController::traceDOMWrappers); |
118 | 118 |
119 // currentThread is null if we are running on a thread without a message loo
p. | 119 // currentThread is null if we are running on a thread without a message loo
p. |
120 if (WebThread* currentThread = platform->currentThread()) { | 120 if (WebThread* currentThread = platform->currentThread()) { |
121 ASSERT(!s_endOfTaskRunner); | 121 ASSERT(!s_endOfTaskRunner); |
122 s_endOfTaskRunner = new EndOfTaskRunner; | 122 s_endOfTaskRunner = new EndOfTaskRunner; |
123 currentThread->addTaskObserver(s_endOfTaskRunner); | 123 currentThread->addTaskObserver(s_endOfTaskRunner); |
124 | 124 |
125 // Register web cache dump provider for tracing. | 125 // Register web cache dump provider for tracing. |
126 platform->registerMemoryDumpProvider(WebCacheMemoryDumpProvider::instanc
e()); | 126 platform->registerMemoryDumpProvider(WebCacheMemoryDumpProvider::instanc
e(), "MemoryCache"); |
127 } | 127 } |
128 } | 128 } |
129 | 129 |
130 v8::Isolate* mainThreadIsolate() | 130 v8::Isolate* mainThreadIsolate() |
131 { | 131 { |
132 return V8PerIsolateData::mainThreadIsolate(); | 132 return V8PerIsolateData::mainThreadIsolate(); |
133 } | 133 } |
134 | 134 |
135 static double currentTimeFunction() | 135 static double currentTimeFunction() |
136 { | 136 { |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 ASSERT(!reloadPages); | 295 ASSERT(!reloadPages); |
296 Page::refreshPlugins(); | 296 Page::refreshPlugins(); |
297 } | 297 } |
298 | 298 |
299 void decommitFreeableMemory() | 299 void decommitFreeableMemory() |
300 { | 300 { |
301 WTF::Partitions::decommitFreeableMemory(); | 301 WTF::Partitions::decommitFreeableMemory(); |
302 } | 302 } |
303 | 303 |
304 } // namespace blink | 304 } // namespace blink |
OLD | NEW |