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

Issue 1897983002: VM: Avoid smi-check when loading class-ids from known non-smi values (Closed)

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

Description

VM: Avoid smi-check when loading class-ids from known non-smi values. The code for LoadClassId is a lot smaller when we know that the value can't be a smi. BUG= R=vegorov@google.com Committed: https://github.com/dart-lang/sdk/commit/66fa89750798e9444cb2fc38dc068766167a9eab

Patch Set 1 #

Total comments: 2

Patch Set 2 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -30 lines) Patch
M runtime/vm/flow_graph_type_propagator.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language_arm.cc View 1 chunk +8 lines, -1 line 0 comments Download
M runtime/vm/intermediate_language_arm64.cc View 1 chunk +8 lines, -2 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 1 chunk +19 lines, -13 lines 0 comments Download
M runtime/vm/intermediate_language_mips.cc View 1 chunk +8 lines, -1 line 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 chunk +19 lines, -13 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
Florian Schneider
4 years, 8 months ago (2016-04-18 20:54:24 UTC) #3
Vyacheslav Egorov (Google)
lgtm https://codereview.chromium.org/1897983002/diff/1/runtime/vm/flow_graph_type_propagator.cc File runtime/vm/flow_graph_type_propagator.cc (right): https://codereview.chromium.org/1897983002/diff/1/runtime/vm/flow_graph_type_propagator.cc#newcode470 runtime/vm/flow_graph_type_propagator.cc:470: return FromAbstractType(Type::ZoneHandle(Type::SmiType()), kNonNullable); Could use Create(kSmiCid, Type::ZoneHandle(Type::SmiType())) like ...
4 years, 8 months ago (2016-04-18 21:00:09 UTC) #4
Florian Schneider
https://codereview.chromium.org/1897983002/diff/1/runtime/vm/flow_graph_type_propagator.cc File runtime/vm/flow_graph_type_propagator.cc (right): https://codereview.chromium.org/1897983002/diff/1/runtime/vm/flow_graph_type_propagator.cc#newcode470 runtime/vm/flow_graph_type_propagator.cc:470: return FromAbstractType(Type::ZoneHandle(Type::SmiType()), kNonNullable); On 2016/04/18 21:00:09, Vyacheslav Egorov (Google) ...
4 years, 8 months ago (2016-04-19 10:34:39 UTC) #5
Florian Schneider
4 years, 8 months ago (2016-04-19 10:45:45 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
66fa89750798e9444cb2fc38dc068766167a9eab (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698