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

Issue 70983002: Fixes issue 14742. Dart API may allocate objects without calling the constructor, this messes up th… (Closed)

Created:
7 years, 1 month ago by srdjan
Modified:
7 years, 1 month ago
Reviewers:
Florian Schneider, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Fixes issue 14742. Dart API may allocate objects without calling the constructor, this messes up the nullability tracking in the VM. Simple fix for now: initialize fields nullability, type, length if allocated via Dart API. R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=30233

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -0 lines) Patch
M runtime/vm/dart_api_impl.cc View 1 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
srdjan
7 years, 1 month ago (2013-11-13 00:52:32 UTC) #1
siva
LGTM. Maybe as an optimization we could see if a flag can be set in ...
7 years, 1 month ago (2013-11-13 15:33:13 UTC) #2
Florian Schneider
dbc: What is the reason not to go through the constructor in this case?
7 years, 1 month ago (2013-11-13 15:37:27 UTC) #3
siva
The dartium bindings guys did not want to invoke the constructor, I believe it has ...
7 years, 1 month ago (2013-11-13 15:39:29 UTC) #4
srdjan
Committed patchset #2 manually as r30233 (presubmit successful).
7 years, 1 month ago (2013-11-13 16:01:47 UTC) #5
srdjan
On 2013/11/13 15:33:13, siva wrote: > LGTM. > > Maybe as an optimization we could ...
7 years, 1 month ago (2013-11-13 16:11:49 UTC) #6
siva
7 years, 1 month ago (2013-11-13 19:22:17 UTC) #7
Message was sent while issue was closed.
Vijay has updated the bug
(https://code.google.com/p/dart/issues/detail?id=14742)
with some context on why dartium does not invoke the constructors.

Powered by Google App Engine
This is Rietveld 408576698