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

Issue 2098573004: DBC: CheckClassInstr (Closed)

Created:
4 years, 6 months ago by zra
Modified:
4 years, 5 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Florian Schneider
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 7

Patch Set 2 : Trying to find static call deopt bug #

Total comments: 2

Patch Set 3 : Fix bug, cleanup, add tests #

Total comments: 22

Patch Set 4 : Address comments #

Patch Set 5 : Clean up comment #

Total comments: 10

Patch Set 6 : Address comments #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -37 lines) Patch
M runtime/vm/assembler_dbc_test.cc View 1 2 3 4 5 5 chunks +72 lines, -8 lines 0 comments Download
M runtime/vm/constants_dbc.h View 1 2 3 4 5 6 chunks +29 lines, -6 lines 0 comments Download
M runtime/vm/deferred_objects.h View 1 2 3 1 chunk +12 lines, -4 lines 0 comments Download
M runtime/vm/deopt_instructions.cc View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M runtime/vm/disassembler.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/disassembler.cc View 1 2 3 2 chunks +18 lines, -3 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M runtime/vm/intermediate_language_dbc.cc View 1 2 3 4 5 4 chunks +79 lines, -4 lines 4 comments Download
M runtime/vm/simulator_dbc.cc View 1 2 3 4 5 3 chunks +70 lines, -6 lines 0 comments Download
M runtime/vm/stub_code.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/stub_code_dbc.cc View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 16 (2 generated)
zra
Slava, There is a problem with materializing objects on deopt, which I've "fixed". The fields ...
4 years, 6 months ago (2016-06-23 23:06:01 UTC) #2
Vyacheslav Egorov (Google)
It's my bug in the Deopt instruction. See comment regarding the number of materialization arguments. ...
4 years, 6 months ago (2016-06-24 14:47:07 UTC) #3
Vyacheslav Egorov (Google)
4 years, 6 months ago (2016-06-24 14:47:13 UTC) #4
zra
Hi Slava, Sorry to bother you again with another bug. Your fixes to the Deopt ...
4 years, 6 months ago (2016-06-24 22:37:49 UTC) #5
zra
Thanks for explaining how to debug this! I added the fix and the tests now ...
4 years, 5 months ago (2016-06-27 16:01:11 UTC) #6
Vyacheslav Egorov (Google)
https://codereview.chromium.org/2098573004/diff/40001/runtime/vm/deferred_objects.h File runtime/vm/deferred_objects.h (right): https://codereview.chromium.org/2098573004/diff/40001/runtime/vm/deferred_objects.h#newcode235 runtime/vm/deferred_objects.h:235: #if !defined(TARGET_ARCH_DBC) I think we never align #if so ...
4 years, 5 months ago (2016-06-28 13:03:11 UTC) #7
zra
https://codereview.chromium.org/2098573004/diff/40001/runtime/vm/deferred_objects.h File runtime/vm/deferred_objects.h (right): https://codereview.chromium.org/2098573004/diff/40001/runtime/vm/deferred_objects.h#newcode235 runtime/vm/deferred_objects.h:235: #if !defined(TARGET_ARCH_DBC) On 2016/06/28 13:03:10, Vyacheslav Egorov (Google) wrote: ...
4 years, 5 months ago (2016-06-28 19:31:40 UTC) #8
Vyacheslav Egorov (Google)
LGTM with suggested changes to the encoding https://codereview.chromium.org/2098573004/diff/80001/runtime/vm/constants_dbc.h File runtime/vm/constants_dbc.h (right): https://codereview.chromium.org/2098573004/diff/80001/runtime/vm/constants_dbc.h#newcode374 runtime/vm/constants_dbc.h:374: // - ...
4 years, 5 months ago (2016-06-29 17:11:06 UTC) #9
Vyacheslav Egorov (Google)
https://codereview.chromium.org/2098573004/diff/80001/runtime/vm/simulator_dbc.cc File runtime/vm/simulator_dbc.cc (right): https://codereview.chromium.org/2098573004/diff/80001/runtime/vm/simulator_dbc.cc#newcode2035 runtime/vm/simulator_dbc.cc:2035: const intptr_t desired_cid = Smi::Value(RAW_CAST(Smi, cids[i])); the array of ...
4 years, 5 months ago (2016-06-29 18:33:10 UTC) #10
zra
https://codereview.chromium.org/2098573004/diff/80001/runtime/vm/constants_dbc.h File runtime/vm/constants_dbc.h (right): https://codereview.chromium.org/2098573004/diff/80001/runtime/vm/constants_dbc.h#newcode374 runtime/vm/constants_dbc.h:374: // - CheckCid rA, D On 2016/06/29 17:11:06, Vyacheslav ...
4 years, 5 months ago (2016-06-29 22:19:20 UTC) #11
zra
Committed patchset #6 (id:100001) manually as db26281172c734ad77bba837f4b58ac551366dac (presubmit successful).
4 years, 5 months ago (2016-06-29 22:25:48 UTC) #13
Vyacheslav Egorov (Google)
https://codereview.chromium.org/2098573004/diff/100001/runtime/vm/intermediate_language_dbc.cc File runtime/vm/intermediate_language_dbc.cc (right): https://codereview.chromium.org/2098573004/diff/100001/runtime/vm/intermediate_language_dbc.cc#newcode1045 runtime/vm/intermediate_language_dbc.cc:1045: __ CheckClassId(value, cid); I don't think this is correct ...
4 years, 5 months ago (2016-06-30 08:04:13 UTC) #14
zra
https://codereview.chromium.org/2098573004/diff/100001/runtime/vm/intermediate_language_dbc.cc File runtime/vm/intermediate_language_dbc.cc (right): https://codereview.chromium.org/2098573004/diff/100001/runtime/vm/intermediate_language_dbc.cc#newcode1045 runtime/vm/intermediate_language_dbc.cc:1045: __ CheckClassId(value, cid); On 2016/06/30 08:04:13, Vyacheslav Egorov (Google) ...
4 years, 5 months ago (2016-06-30 15:30:53 UTC) #15
Vyacheslav Egorov (Google)
4 years, 5 months ago (2016-06-30 15:32:09 UTC) #16
Message was sent while issue was closed.
https://codereview.chromium.org/2098573004/diff/100001/runtime/vm/intermediat...
File runtime/vm/intermediate_language_dbc.cc (right):

https://codereview.chromium.org/2098573004/diff/100001/runtime/vm/intermediat...
runtime/vm/intermediate_language_dbc.cc:1045: __ CheckClassId(value, cid);
On 2016/06/30 15:30:53, zra wrote:
> On 2016/06/30 08:04:13, Vyacheslav Egorov (Google) wrote:
> > I don't think this is correct if may_be_smi is true - if maybe smi is true
> then
> > there are two cids to check. 
> 
> Okay. I'm just going to put this back to how it was in the previous
> revision---passing may_be_smi and putting the cid in the following Nop.

You can just emit CheckCids instead.

Powered by Google App Engine
This is Rietveld 408576698