| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 return *initializer; | 78 return *initializer; |
| 79 } | 79 } |
| 80 | 80 |
| 81 void Initialize(Platform* platform) { | 81 void Initialize(Platform* platform) { |
| 82 Platform::Initialize(platform); | 82 Platform::Initialize(platform); |
| 83 | 83 |
| 84 V8Initializer::InitializeMainThread(); | 84 V8Initializer::InitializeMainThread(); |
| 85 | 85 |
| 86 GetModulesInitializer().Initialize(); | 86 GetModulesInitializer().Initialize(); |
| 87 | 87 |
| 88 WebFactory::SetInstance(*(new WebFactoryImpl())); | 88 WebFactoryImpl::Initialize(); |
| 89 | 89 |
| 90 // currentThread is null if we are running on a thread without a message loop. | 90 // currentThread is null if we are running on a thread without a message loop. |
| 91 if (WebThread* current_thread = platform->CurrentThread()) { | 91 if (WebThread* current_thread = platform->CurrentThread()) { |
| 92 DCHECK(!g_end_of_task_runner); | 92 DCHECK(!g_end_of_task_runner); |
| 93 g_end_of_task_runner = new EndOfTaskRunner; | 93 g_end_of_task_runner = new EndOfTaskRunner; |
| 94 current_thread->AddTaskObserver(g_end_of_task_runner); | 94 current_thread->AddTaskObserver(g_end_of_task_runner); |
| 95 } | 95 } |
| 96 } | 96 } |
| 97 | 97 |
| 98 v8::Isolate* MainThreadIsolate() { | 98 v8::Isolate* MainThreadIsolate() { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 void MemoryPressureNotificationToWorkerThreadIsolates( | 135 void MemoryPressureNotificationToWorkerThreadIsolates( |
| 136 v8::MemoryPressureLevel level) { | 136 v8::MemoryPressureLevel level) { |
| 137 WorkerBackingThread::MemoryPressureNotificationToWorkerThreadIsolates(level); | 137 WorkerBackingThread::MemoryPressureNotificationToWorkerThreadIsolates(level); |
| 138 } | 138 } |
| 139 | 139 |
| 140 void SetRAILModeOnWorkerThreadIsolates(v8::RAILMode rail_mode) { | 140 void SetRAILModeOnWorkerThreadIsolates(v8::RAILMode rail_mode) { |
| 141 WorkerBackingThread::SetRAILModeOnWorkerThreadIsolates(rail_mode); | 141 WorkerBackingThread::SetRAILModeOnWorkerThreadIsolates(rail_mode); |
| 142 } | 142 } |
| 143 | 143 |
| 144 } // namespace blink | 144 } // namespace blink |
| OLD | NEW |