| OLD | NEW |
| 1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 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 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1389 first_arg_index = 3; | 1389 first_arg_index = 3; |
| 1390 | 1390 |
| 1391 // Command: list <dummy> <id> [<dump options>] | 1391 // Command: list <dummy> <id> [<dump options>] |
| 1392 case 'list': | 1392 case 'list': |
| 1393 | 1393 |
| 1394 // Command: ret[ainers] <obj id> [<dump options>] | 1394 // Command: ret[ainers] <obj id> [<dump options>] |
| 1395 case 'retainers': | 1395 case 'retainers': |
| 1396 case 'ret': | 1396 case 'ret': |
| 1397 case 'retaining-paths': | 1397 case 'retaining-paths': |
| 1398 case 'rp': { | 1398 case 'rp': { |
| 1399 if (cmd === 'ret') cmd = 'retainers'; | 1399 if (cmd === 'ret') { |
| 1400 else if (cmd === 'rp') cmd = 'retaining-paths'; | 1400 cmd = 'retainers'; |
| 1401 } else if (cmd === 'rp') { |
| 1402 cmd = 'retaining-paths'; |
| 1403 } |
| 1401 | 1404 |
| 1402 if (!first_arg_index) first_arg_index = 2; | 1405 if (!first_arg_index) first_arg_index = 2; |
| 1403 | 1406 |
| 1404 if (args.length < first_arg_index) { | 1407 if (args.length < first_arg_index) { |
| 1405 throw new Error('Too few arguments after ' + cmd + '.'); | 1408 throw new Error('Too few arguments after ' + cmd + '.'); |
| 1406 } | 1409 } |
| 1407 | 1410 |
| 1408 var request_cmd = (cmd === 'list') ? 'diff':cmd; | 1411 var request_cmd = (cmd === 'list') ? 'diff':cmd; |
| 1409 request = this.lolMakeListRequest(request_cmd, | 1412 request = this.lolMakeListRequest(request_cmd, |
| 1410 args, | 1413 args, |
| (...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2801 json += NumberToJSON_(elem); | 2804 json += NumberToJSON_(elem); |
| 2802 } else if (typeof(elem) === 'string') { | 2805 } else if (typeof(elem) === 'string') { |
| 2803 json += StringToJSON_(elem); | 2806 json += StringToJSON_(elem); |
| 2804 } else { | 2807 } else { |
| 2805 json += elem; | 2808 json += elem; |
| 2806 } | 2809 } |
| 2807 } | 2810 } |
| 2808 json += ']'; | 2811 json += ']'; |
| 2809 return json; | 2812 return json; |
| 2810 } | 2813 } |
| OLD | NEW |