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

Issue 689713003: Context objects don't have a compile-type. Return dynamic-type in this case. (Closed)

Created:
6 years, 1 month ago by koda
Modified:
6 years, 1 month ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Context objects don't have a compile-type. Return dynamic-type in this case. This is lifted from https://codereview.chromium.org/678763004/diff/120001/runtime/vm/flow_graph_type_propagator.cc to fix issue 21455. BUG=21455 R=vegorov@google.com Committed: https://code.google.com/p/dart/source/detail?r=41406

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+326 lines, -3 lines) Patch
M runtime/vm/flow_graph_type_propagator.cc View 1 chunk +3 lines, -3 lines 0 comments Download
A tests/standalone/priority_queue_stress_test.dart View 1 1 chunk +323 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
koda
6 years, 1 month ago (2014-10-29 18:32:52 UTC) #1
Vyacheslav Egorov (Google)
LGTM! https://codereview.chromium.org/689713003/diff/1/runtime/vm/flow_graph_type_propagator.cc File runtime/vm/flow_graph_type_propagator.cc (right): https://codereview.chromium.org/689713003/diff/1/runtime/vm/flow_graph_type_propagator.cc#newcode553 runtime/vm/flow_graph_type_propagator.cc:553: if (cid_ == kFunctionCid || cid_ == kContextCid) ...
6 years, 1 month ago (2014-10-29 18:36:15 UTC) #2
koda
https://codereview.chromium.org/689713003/diff/1/runtime/vm/flow_graph_type_propagator.cc File runtime/vm/flow_graph_type_propagator.cc (right): https://codereview.chromium.org/689713003/diff/1/runtime/vm/flow_graph_type_propagator.cc#newcode553 runtime/vm/flow_graph_type_propagator.cc:553: if (cid_ == kFunctionCid || cid_ == kContextCid) { ...
6 years, 1 month ago (2014-10-29 19:28:06 UTC) #3
Vyacheslav Egorov (Google)
https://codereview.chromium.org/689713003/diff/1/runtime/vm/flow_graph_type_propagator.cc File runtime/vm/flow_graph_type_propagator.cc (right): https://codereview.chromium.org/689713003/diff/1/runtime/vm/flow_graph_type_propagator.cc#newcode553 runtime/vm/flow_graph_type_propagator.cc:553: if (cid_ == kFunctionCid || cid_ == kContextCid) { ...
6 years, 1 month ago (2014-10-29 19:37:20 UTC) #4
koda
Committed patchset #2 (id:20001) manually as r41406 (presubmit successful).
6 years, 1 month ago (2014-10-29 21:35:07 UTC) #5
Vyacheslav Egorov (Google)
Hmm. Instead of assertion I thought you would just do if (cid < kInstanceCid) { ...
6 years, 1 month ago (2014-10-29 21:55:49 UTC) #6
koda
6 years, 1 month ago (2014-10-29 22:28:36 UTC) #7
Message was sent while issue was closed.
On 2014/10/29 21:55:49, Vyacheslav Egorov (Google) wrote:
> Hmm. Instead of assertion I thought you would just do 
> 
> if (cid < kInstanceCid) {
>   // set type to dynamic
>   return;
> }
> 
> Also my stylistic comment was ignored as far as I see: I thought Dart VM style
> is to parenthesize it like this (x == y) || (z == a), not x == y || z == a.

Sorry, missed that.

Follow-up CL:
https://codereview.chromium.org/684313003/diff/20001/runtime/vm/flow_graph_ty...

Powered by Google App Engine
This is Rietveld 408576698