Commit 98641299 authored by yangguo's avatar yangguo Committed by Commit bot

[debugger] only track LiveEdit if source changes.

R=hablich@chromium.org

Review URL: https://codereview.chromium.org/1486003003

Cr-Commit-Position: refs/heads/master@{#32450}
parent 2f559f21
......@@ -229,9 +229,14 @@ RUNTIME_FUNCTION(Runtime_LiveEditCompareStrings) {
CONVERT_ARG_HANDLE_CHECKED(String, s1, 0);
CONVERT_ARG_HANDLE_CHECKED(String, s2, 1);
isolate->debug()->feature_tracker()->Track(DebugFeatureTracker::kLiveEdit);
Handle<JSArray> result = LiveEdit::CompareStrings(s1, s2);
uint32_t array_length;
CHECK(result->length()->ToArrayLength(&array_length));
if (array_length > 0) {
isolate->debug()->feature_tracker()->Track(DebugFeatureTracker::kLiveEdit);
}
return *LiveEdit::CompareStrings(s1, s2);
return *result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment