Chromium Code Reviews

Issue 23982002: Fix bug where Script files that only contained patches were lost from the list of LoadedScripts() T… (Closed)

Created:
7 years, 3 months ago by Jacob
Modified:
7 years, 3 months ago
Reviewers:
turnidge, siva, hausner
CC:
reviews_dartlang.org, vm-dev_dartlang.org, vsm
Visibility:
Public.

Description

Fix bug where Script files that only contained patches were lost from the list of LoadedScripts() This resulted in incorrect stack traces for int.parse Many Script files containing patches also contained non-patch classes or top level members and so they still worked. BUG= R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=27254

Patch Set 1 #

Total comments: 6

Patch Set 2 : Added a test and simplified implementation #

Patch Set 3 : ptal #

Total comments: 2

Patch Set 4 : removed dupe code #

Unified diffs Side-by-side diffs Stats (+66 lines, -27 lines)
M runtime/vm/dart_api_impl_test.cc View 4 chunks +41 lines, -10 lines 0 comments
M runtime/vm/object.cc View 3 chunks +25 lines, -17 lines 0 comments

Messages

Total messages: 10 (0 generated)
Jacob
This CL fixes https://code.google.com/p/dart/issues/detail?id=12360 Let me know if there is a simpler way to correctly ...
7 years, 3 months ago (2013-09-05 04:09:59 UTC) #1
Jacob
7 years, 3 months ago (2013-09-05 18:18:20 UTC) #2
turnidge
On 2013/09/05 18:18:20, Jacob wrote: DBC I will leave the review to asiva/hausner. One thing ...
7 years, 3 months ago (2013-09-05 18:28:56 UTC) #3
siva
https://codereview.chromium.org/23982002/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/23982002/diff/1/runtime/vm/object.cc#newcode6806 runtime/vm/object.cc:6806: Script& function_script = Script::Handle(); Class& patch_cls = Class::Handle(); Script& ...
7 years, 3 months ago (2013-09-05 18:35:11 UTC) #4
hausner
I second Siva's comment. https://codereview.chromium.org/23982002/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/23982002/diff/1/runtime/vm/object.cc#newcode6783 runtime/vm/object.cc:6783: void AddScriptIfUnique(const GrowableObjectArray& scripts, Script& ...
7 years, 3 months ago (2013-09-05 21:23:51 UTC) #5
Jacob
On 2013/09/05 21:23:51, hausner wrote: > I second Siva's comment. > > https://codereview.chromium.org/23982002/diff/1/runtime/vm/object.cc > File ...
7 years, 3 months ago (2013-09-05 23:58:18 UTC) #6
Jacob
https://codereview.chromium.org/23982002/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/23982002/diff/1/runtime/vm/object.cc#newcode6806 runtime/vm/object.cc:6806: Script& function_script = Script::Handle(); On 2013/09/05 18:35:11, siva wrote: ...
7 years, 3 months ago (2013-09-05 23:58:24 UTC) #7
Jacob
https://codereview.chromium.org/23982002/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/23982002/diff/1/runtime/vm/object.cc#newcode6783 runtime/vm/object.cc:6783: void AddScriptIfUnique(const GrowableObjectArray& scripts, Script& candidate) { On 2013/09/05 ...
7 years, 3 months ago (2013-09-06 00:56:58 UTC) #8
siva
lgtm https://codereview.chromium.org/23982002/diff/11001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/23982002/diff/11001/runtime/vm/object.cc#newcode6794 runtime/vm/object.cc:6794: Script& script_obj = Script::Handle(); Move the handle creation ...
7 years, 3 months ago (2013-09-06 15:33:51 UTC) #9
Jacob
7 years, 3 months ago (2013-09-06 17:54:10 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 manually as r27254 (presubmit successful).

Powered by Google App Engine