| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2012 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2012 Google Inc. All Rights Reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 public: | 42 public: |
| 43 PendingException(const String& errorMessage, int lineNumber, int columnNumbe
r, int scriptId, const String& sourceURL, PassRefPtr<ScriptCallStack> callStack) | 43 PendingException(const String& errorMessage, int lineNumber, int columnNumbe
r, int scriptId, const String& sourceURL, PassRefPtr<ScriptCallStack> callStack) |
| 44 : m_errorMessage(errorMessage) | 44 : m_errorMessage(errorMessage) |
| 45 , m_lineNumber(lineNumber) | 45 , m_lineNumber(lineNumber) |
| 46 , m_columnNumber(columnNumber) | 46 , m_columnNumber(columnNumber) |
| 47 , m_scriptId(scriptId) | 47 , m_scriptId(scriptId) |
| 48 , m_sourceURL(sourceURL) | 48 , m_sourceURL(sourceURL) |
| 49 , m_callStack(callStack) | 49 , m_callStack(callStack) |
| 50 { | 50 { |
| 51 } | 51 } |
| 52 void trace(Visitor* visitor) | |
| 53 { | |
| 54 visitor->trace(m_callStack); | |
| 55 } | |
| 56 String m_errorMessage; | 52 String m_errorMessage; |
| 57 int m_lineNumber; | 53 int m_lineNumber; |
| 58 int m_columnNumber; | 54 int m_columnNumber; |
| 59 int m_scriptId; | 55 int m_scriptId; |
| 60 String m_sourceURL; | 56 String m_sourceURL; |
| 61 RefPtr<ScriptCallStack> m_callStack; | 57 RefPtr<ScriptCallStack> m_callStack; |
| 62 }; | 58 }; |
| 63 | 59 |
| 64 ExecutionContext::ExecutionContext() | 60 ExecutionContext::ExecutionContext() |
| 65 : m_client(0) | 61 : m_client(0) |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 ContextLifecycleNotifier& ExecutionContext::lifecycleNotifier() | 237 ContextLifecycleNotifier& ExecutionContext::lifecycleNotifier() |
| 242 { | 238 { |
| 243 return static_cast<ContextLifecycleNotifier&>(LifecycleContext<ExecutionCont
ext>::lifecycleNotifier()); | 239 return static_cast<ContextLifecycleNotifier&>(LifecycleContext<ExecutionCont
ext>::lifecycleNotifier()); |
| 244 } | 240 } |
| 245 | 241 |
| 246 bool ExecutionContext::isIteratingOverObservers() const | 242 bool ExecutionContext::isIteratingOverObservers() const |
| 247 { | 243 { |
| 248 return m_lifecycleNotifier && m_lifecycleNotifier->isIteratingOverObservers(
); | 244 return m_lifecycleNotifier && m_lifecycleNotifier->isIteratingOverObservers(
); |
| 249 } | 245 } |
| 250 | 246 |
| 251 void ExecutionContext::trace(Visitor* visitor) | |
| 252 { | |
| 253 #if ENABLE(OILPAN) | |
| 254 visitor->trace(m_pendingExceptions); | |
| 255 #endif | |
| 256 Supplementable<ExecutionContext>::trace(visitor); | |
| 257 LifecycleContext<ExecutionContext>::trace(visitor); | |
| 258 } | |
| 259 | |
| 260 } // namespace blink | 247 } // namespace blink |
| OLD | NEW |