Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Issue 326013005: DevTools: minor improvements of CodeGenerator code. (Closed)

Created:
6 years, 6 months ago by loislo
Modified:
6 years, 6 months ago
Reviewers:
aandrey, yurys
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, malch+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, sergeyv+blink_chromium.org, aandrey+blink_chromium.org
Visibility:
Public.

Description

DevTools: minor improvements of CodeGenerator code. result declaration was moved close to the usage: TypeBuilder::HeapProfiler::HeapSnapshotObjectId out_heapSnapshotObjectId; - RefPtr<JSONObject> result = JSONObject::create(); if (protocolErrors->length()) { reportProtocolError(&callId, InvalidParams, String::format(InvalidParamsFormatString, commandName(kHeapProfiler_getHeapObjectIdCmd)), protocolErrors); return; } ErrorString error; + RefPtr<JSONObject> result = JSONObject::create(); m_heapProfilerAgent->getHeapObjectId(&error, in_objectId, &out_heapSnapshotObjectId); if (!error.length()) { result->setString("heapSnapshotObjectId", out_heapSnapshotObjectId); BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175888

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -11 lines) Patch
M Source/core/inspector/CodeGeneratorInspector.py View 7 chunks +11 lines, -9 lines 2 comments Download
M Source/core/inspector/CodeGeneratorInspectorStrings.py View 1 chunk +2 lines, -2 lines 4 comments Download

Messages

Total messages: 6 (0 generated)
loislo
6 years, 6 months ago (2014-06-10 11:07:57 UTC) #1
yurys
lgtm
6 years, 6 months ago (2014-06-10 11:09:22 UTC) #2
loislo
The CQ bit was checked by loislo@chromium.org
6 years, 6 months ago (2014-06-10 11:16:56 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/loislo@chromium.org/326013005/1
6 years, 6 months ago (2014-06-10 11:17:07 UTC) #4
commit-bot: I haz the power
Change committed as 175888
6 years, 6 months ago (2014-06-10 12:26:45 UTC) #5
aandrey
6 years, 6 months ago (2014-06-10 14:50:41 UTC) #6
Message was sent while issue was closed.
FYI

https://codereview.chromium.org/326013005/diff/1/Source/core/inspector/CodeGe...
File Source/core/inspector/CodeGeneratorInspector.py (right):

https://codereview.chromium.org/326013005/diff/1/Source/core/inspector/CodeGe...
Source/core/inspector/CodeGeneratorInspector.py:1890: line_list.append("   
jsonMessage->setObject(\"params\", paramsObject);\n")
more improvements: paramsObject -> paramsObject.release()

https://codereview.chromium.org/326013005/diff/1/Source/core/inspector/CodeGe...
Source/core/inspector/CodeGeneratorInspector.py:2022:
send_response_call_params_list.append("result")
more improvements: result -> result.release()

https://codereview.chromium.org/326013005/diff/1/Source/core/inspector/CodeGe...
File Source/core/inspector/CodeGeneratorInspectorStrings.py (right):

https://codereview.chromium.org/326013005/diff/1/Source/core/inspector/CodeGe...
Source/core/inspector/CodeGeneratorInspectorStrings.py:78: $code   
sendIfActive(jsonMessage, ErrorString(), PassRefPtr<JSONValue>());
jsonMessage.release()

https://codereview.chromium.org/326013005/diff/1/Source/core/inspector/CodeGe...
Source/core/inspector/CodeGeneratorInspectorStrings.py:268: sendResponse(callId,
invocationError, RefPtr<JSONValue>(), result);
RefPtr -> PassRefPtr

https://codereview.chromium.org/326013005/diff/1/Source/core/inspector/CodeGe...
Source/core/inspector/CodeGeneratorInspectorStrings.py:272: sendResponse(callId,
invocationError, RefPtr<JSONValue>(), JSONObject::create());
ditto

https://codereview.chromium.org/326013005/diff/1/Source/core/inspector/CodeGe...
Source/core/inspector/CodeGeneratorInspectorStrings.py:388:
message->setObject("error", error);
error.release()

Powered by Google App Engine
This is Rietveld 408576698