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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // This can happen if V8 has added counters that this version of Blink | 73 // This can happen if V8 has added counters that this version of Blink |
74 // does not know about. It's harmless. | 74 // does not know about. It's harmless. |
75 break; | 75 break; |
76 } | 76 } |
77 } | 77 } |
78 | 78 |
79 V8PerIsolateData::V8PerIsolateData() | 79 V8PerIsolateData::V8PerIsolateData() |
80 : m_destructionPending(false) | 80 : m_destructionPending(false) |
81 , m_isolateHolder(adoptPtr(new gin::IsolateHolder())) | 81 , m_isolateHolder(adoptPtr(new gin::IsolateHolder())) |
82 , m_stringCache(adoptPtr(new StringCache(isolate()))) | 82 , m_stringCache(adoptPtr(new StringCache(isolate()))) |
83 , m_hiddenValue(adoptPtr(new V8HiddenValue())) | 83 , m_hiddenValue(V8HiddenValue::create()) |
84 , m_constructorMode(ConstructorMode::CreateNewObject) | 84 , m_constructorMode(ConstructorMode::CreateNewObject) |
85 , m_recursionLevel(0) | 85 , m_recursionLevel(0) |
86 , m_isHandlingRecursionLevelError(false) | 86 , m_isHandlingRecursionLevelError(false) |
87 , m_isReportingException(false) | 87 , m_isReportingException(false) |
88 #if ENABLE(ASSERT) | 88 #if ENABLE(ASSERT) |
89 , m_internalScriptRecursionLevel(0) | 89 , m_internalScriptRecursionLevel(0) |
90 #endif | 90 #endif |
91 , m_performingMicrotaskCheckpoint(false) | 91 , m_performingMicrotaskCheckpoint(false) |
92 , m_scriptDebugger(nullptr) | 92 , m_scriptDebugger(nullptr) |
93 { | 93 { |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 m_endOfScopeTasks.clear(); | 299 m_endOfScopeTasks.clear(); |
300 } | 300 } |
301 | 301 |
302 void V8PerIsolateData::setScriptDebugger(PassOwnPtr<ScriptDebuggerBase> debugger
) | 302 void V8PerIsolateData::setScriptDebugger(PassOwnPtr<ScriptDebuggerBase> debugger
) |
303 { | 303 { |
304 ASSERT(!m_scriptDebugger); | 304 ASSERT(!m_scriptDebugger); |
305 m_scriptDebugger = debugger; | 305 m_scriptDebugger = debugger; |
306 } | 306 } |
307 | 307 |
308 } // namespace blink | 308 } // namespace blink |
OLD | NEW |