| 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 RELEASE_ASSERT(!ScriptForbiddenScope::isScriptForbidden() || | 49 RELEASE_ASSERT(!ScriptForbiddenScope::isScriptForbidden() || |
| 50 isolate->GetCurrentContext() == | 50 isolate->GetCurrentContext() == |
| 51 v8::Debug::GetDebugContext(isolate)); | 51 v8::Debug::GetDebugContext(isolate)); |
| 52 } | 52 } |
| 53 | 53 |
| 54 static void microtasksCompletedCallback(v8::Isolate* isolate) { | 54 static void microtasksCompletedCallback(v8::Isolate* isolate) { |
| 55 V8PerIsolateData::from(isolate)->runEndOfScopeTasks(); | 55 V8PerIsolateData::from(isolate)->runEndOfScopeTasks(); |
| 56 } | 56 } |
| 57 | 57 |
| 58 V8PerIsolateData::V8PerIsolateData() | 58 V8PerIsolateData::V8PerIsolateData() |
| 59 : m_isolateHolder(makeUnique<gin::IsolateHolder>()), | 59 : m_isolateHolder(WTF::makeUnique<gin::IsolateHolder>()), |
| 60 m_stringCache(wrapUnique(new StringCache(isolate()))), | 60 m_stringCache(WTF::wrapUnique(new StringCache(isolate()))), |
| 61 m_hiddenValue(V8HiddenValue::create()), | 61 m_hiddenValue(V8HiddenValue::create()), |
| 62 m_privateProperty(V8PrivateProperty::create()), | 62 m_privateProperty(V8PrivateProperty::create()), |
| 63 m_constructorMode(ConstructorMode::CreateNewObject), | 63 m_constructorMode(ConstructorMode::CreateNewObject), |
| 64 m_useCounterDisabled(false), | 64 m_useCounterDisabled(false), |
| 65 m_isHandlingRecursionLevelError(false), | 65 m_isHandlingRecursionLevelError(false), |
| 66 m_isReportingException(false) { | 66 m_isReportingException(false) { |
| 67 // FIXME: Remove once all v8::Isolate::GetCurrent() calls are gone. | 67 // FIXME: Remove once all v8::Isolate::GetCurrent() calls are gone. |
| 68 isolate()->Enter(); | 68 isolate()->Enter(); |
| 69 isolate()->AddBeforeCallEnteredCallback(&beforeCallEnteredCallback); | 69 isolate()->AddBeforeCallEnteredCallback(&beforeCallEnteredCallback); |
| 70 isolate()->AddMicrotasksCompletedCallback(µtasksCompletedCallback); | 70 isolate()->AddMicrotasksCompletedCallback(µtasksCompletedCallback); |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 | 392 |
| 393 void V8PerIsolateData::addActiveScriptWrappable( | 393 void V8PerIsolateData::addActiveScriptWrappable( |
| 394 ActiveScriptWrappable* wrappable) { | 394 ActiveScriptWrappable* wrappable) { |
| 395 if (!m_activeScriptWrappables) | 395 if (!m_activeScriptWrappables) |
| 396 m_activeScriptWrappables = new ActiveScriptWrappableSet(); | 396 m_activeScriptWrappables = new ActiveScriptWrappableSet(); |
| 397 | 397 |
| 398 m_activeScriptWrappables->add(wrappable); | 398 m_activeScriptWrappables->add(wrappable); |
| 399 } | 399 } |
| 400 | 400 |
| 401 } // namespace blink | 401 } // namespace blink |
| OLD | NEW |