Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010-2011 Google Inc. All rights reserved. | 2 * Copyright (c) 2010-2011 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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 376 if (isPaused()) | 376 if (isPaused()) |
| 377 return; | 377 return; |
| 378 | 378 |
| 379 ScriptDebugListener* listener = getDebugListenerForContext(m_pausedContext); | 379 ScriptDebugListener* listener = getDebugListenerForContext(m_pausedContext); |
| 380 if (!listener) | 380 if (!listener) |
| 381 return; | 381 return; |
| 382 | 382 |
| 383 Vector<String> breakpointIds; | 383 Vector<String> breakpointIds; |
| 384 if (!hitBreakpointNumbers.IsEmpty()) { | 384 if (!hitBreakpointNumbers.IsEmpty()) { |
| 385 breakpointIds.resize(hitBreakpointNumbers->Length()); | 385 breakpointIds.resize(hitBreakpointNumbers->Length()); |
| 386 for (size_t i = 0; i < hitBreakpointNumbers->Length(); i++) | 386 for (size_t i = 0; i < hitBreakpointNumbers->Length(); i++) { |
| 387 breakpointIds[i] = toCoreStringWithUndefinedOrNullCheck(hitBreakpoin tNumbers->Get(i)); | 387 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedO rNullCheck>, hitBreakpointNumber, hitBreakpointNumbers->Get(i)); |
|
pfeldman
2013/12/12 16:41:41
We need to make sure this comes in as string. vsev
yurys
2013/12/12 20:04:43
The array should actually contain numbers but we n
Inactive
2013/12/12 22:43:38
Done.
| |
| 388 breakpointIds[i] = hitBreakpointNumber; | |
| 389 } | |
| 388 } | 390 } |
| 389 | 391 |
| 390 m_executionState.set(m_isolate, executionState); | 392 m_executionState.set(m_isolate, executionState); |
| 391 ScriptState* currentCallFrameState = ScriptState::forContext(m_pausedContext ); | 393 ScriptState* currentCallFrameState = ScriptState::forContext(m_pausedContext ); |
| 392 listener->didPause(currentCallFrameState, currentCallFrames(), ScriptValue(e xception, currentCallFrameState->isolate()), breakpointIds); | 394 listener->didPause(currentCallFrameState, currentCallFrames(), ScriptValue(e xception, currentCallFrameState->isolate()), breakpointIds); |
| 393 | 395 |
| 394 m_runningNestedMessageLoop = true; | 396 m_runningNestedMessageLoop = true; |
| 395 runMessageLoopOnPause(m_pausedContext); | 397 runMessageLoopOnPause(m_pausedContext); |
| 396 m_runningNestedMessageLoop = false; | 398 m_runningNestedMessageLoop = false; |
| 397 } | 399 } |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 617 { | 619 { |
| 618 return PassOwnPtr<ScriptSourceCode>(); | 620 return PassOwnPtr<ScriptSourceCode>(); |
| 619 } | 621 } |
| 620 | 622 |
| 621 String ScriptDebugServer::preprocessEventListener(Frame*, const String& source, const String& url, const String& functionName) | 623 String ScriptDebugServer::preprocessEventListener(Frame*, const String& source, const String& url, const String& functionName) |
| 622 { | 624 { |
| 623 return source; | 625 return source; |
| 624 } | 626 } |
| 625 | 627 |
| 626 } // namespace WebCore | 628 } // namespace WebCore |
| OLD | NEW |