diff options
| author | Andrei Popescu <andreip@google.com> | 2010-02-26 13:31:12 +0000 |
|---|---|---|
| committer | Andrei Popescu <andreip@google.com> | 2010-02-26 13:31:12 +0000 |
| commit | 402d937239b0e2fd11bf2f4fe972ad78aa9fd481 (patch) | |
| tree | b9d769439a27fa48d7171e1a669e98f519591b94 /src/debug-debugger.js | |
| parent | 2007755a32dfa1ac843f501dec4fb872f8bbcc52 (diff) | |
| download | android_external_v8-402d937239b0e2fd11bf2f4fe972ad78aa9fd481.tar.gz android_external_v8-402d937239b0e2fd11bf2f4fe972ad78aa9fd481.tar.bz2 android_external_v8-402d937239b0e2fd11bf2f4fe972ad78aa9fd481.zip | |
update V8 to TOT snapshot branch
Diffstat (limited to 'src/debug-debugger.js')
| -rw-r--r-- | src/debug-debugger.js | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/src/debug-debugger.js b/src/debug-debugger.js index 14d8c883..55c25a92 100644 --- a/src/debug-debugger.js +++ b/src/debug-debugger.js @@ -1202,11 +1202,16 @@ DebugCommandProcessor.prototype.processDebugJSONRequest = function(json_request) throw new Error('Command not specified'); } - // TODO(yurys): remove request.arguments.compactFormat check once - // ChromeDevTools are switched to 'inlineRefs' - if (request.arguments && (request.arguments.inlineRefs || - request.arguments.compactFormat)) { - response.setOption('inlineRefs', true); + if (request.arguments) { + var args = request.arguments; + // TODO(yurys): remove request.arguments.compactFormat check once + // ChromeDevTools are switched to 'inlineRefs' + if (args.inlineRefs || args.compactFormat) { + response.setOption('inlineRefs', true); + } + if (!IS_UNDEFINED(args.maxStringLength)) { + response.setOption('maxStringLength', args.maxStringLength); + } } if (request.command == 'continue') { @@ -1934,10 +1939,14 @@ DebugCommandProcessor.prototype.profileRequest_ = function(request, response) { if (isNaN(modules)) { return response.failed('Modules is not an integer'); } + var tag = parseInt(request.arguments.tag); + if (isNaN(tag)) { + tag = 0; + } if (request.arguments.command == 'resume') { - %ProfilerResume(modules); + %ProfilerResume(modules, tag); } else if (request.arguments.command == 'pause') { - %ProfilerPause(modules); + %ProfilerPause(modules, tag); } else { return response.failed('Unknown command'); } |
