| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 return topFrame; | 263 return topFrame; |
| 264 } | 264 } |
| 265 | 265 |
| 266 DebuggerScript.currentCallFrameByIndex = function(execState, index) | 266 DebuggerScript.currentCallFrameByIndex = function(execState, index) |
| 267 { | 267 { |
| 268 if (index < 0) | 268 if (index < 0) |
| 269 return undefined; | 269 return undefined; |
| 270 var frameCount = execState.frameCount(); | 270 var frameCount = execState.frameCount(); |
| 271 if (index >= frameCount) | 271 if (index >= frameCount) |
| 272 return undefined; | 272 return undefined; |
| 273 return DebuggerScript._frameMirrorToJSCallFrame(execState.frame(index), unde
fined, false); | 273 return DebuggerScript._frameMirrorToJSCallFrame(execState.frame(index), unde
fined); |
| 274 } | 274 } |
| 275 | 275 |
| 276 DebuggerScript.stepIntoStatement = function(execState) | 276 DebuggerScript.stepIntoStatement = function(execState) |
| 277 { | 277 { |
| 278 execState.prepareStep(Debug.StepAction.StepIn); | 278 execState.prepareStep(Debug.StepAction.StepIn); |
| 279 } | 279 } |
| 280 | 280 |
| 281 DebuggerScript.stepFrameStatement = function(execState) | 281 DebuggerScript.stepFrameStatement = function(execState) |
| 282 { | 282 { |
| 283 execState.prepareStep(Debug.StepAction.StepFrame); | 283 execState.prepareStep(Debug.StepAction.StepFrame); |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 "parentPromise": eventData.parentPromise().value(), | 658 "parentPromise": eventData.parentPromise().value(), |
| 659 "status": eventData.status() | 659 "status": eventData.status() |
| 660 }; | 660 }; |
| 661 } | 661 } |
| 662 | 662 |
| 663 // We never resolve Mirror by its handle so to avoid memory leaks caused by Mirr
ors in the cache we disable it. | 663 // We never resolve Mirror by its handle so to avoid memory leaks caused by Mirr
ors in the cache we disable it. |
| 664 ToggleMirrorCache(false); | 664 ToggleMirrorCache(false); |
| 665 | 665 |
| 666 return DebuggerScript; | 666 return DebuggerScript; |
| 667 })(); | 667 })(); |
| OLD | NEW |