OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1540 action = Debug.StepAction.StepMin; | 1540 action = Debug.StepAction.StepMin; |
1541 } else if (stepaction == 'next') { | 1541 } else if (stepaction == 'next') { |
1542 action = Debug.StepAction.StepNext; | 1542 action = Debug.StepAction.StepNext; |
1543 } else if (stepaction == 'out') { | 1543 } else if (stepaction == 'out') { |
1544 action = Debug.StepAction.StepOut; | 1544 action = Debug.StepAction.StepOut; |
1545 } else { | 1545 } else { |
1546 throw new Error('Invalid stepaction argument "' + stepaction + '".'); | 1546 throw new Error('Invalid stepaction argument "' + stepaction + '".'); |
1547 } | 1547 } |
1548 } | 1548 } |
1549 | 1549 |
1550 // Setup the VM for stepping. | 1550 // Set up the VM for stepping. |
1551 this.exec_state_.prepareStep(action, count); | 1551 this.exec_state_.prepareStep(action, count); |
1552 } | 1552 } |
1553 | 1553 |
1554 // VM should be running after executing this request. | 1554 // VM should be running after executing this request. |
1555 response.running = true; | 1555 response.running = true; |
1556 }; | 1556 }; |
1557 | 1557 |
1558 | 1558 |
1559 DebugCommandProcessor.prototype.breakRequest_ = function(request, response) { | 1559 DebugCommandProcessor.prototype.breakRequest_ = function(request, response) { |
1560 // Ignore as break command does not do anything when broken. | 1560 // Ignore as break command does not do anything when broken. |
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2606 case 'string': | 2606 case 'string': |
2607 case 'number': | 2607 case 'number': |
2608 json = value; | 2608 json = value; |
2609 break; | 2609 break; |
2610 | 2610 |
2611 default: | 2611 default: |
2612 json = null; | 2612 json = null; |
2613 } | 2613 } |
2614 return json; | 2614 return json; |
2615 } | 2615 } |
OLD | NEW |