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

Issue 10905233: Whenever possible use length passed to the List constructor for bounds checks instead of loading it… (Closed)

Created:
8 years, 3 months ago by Vyacheslav Egorov (Google)
Modified:
8 years, 3 months ago
Reviewers:
srdjan
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Whenever possible use length passed to the List constructor for bounds checks instead of loading it from the array object itself. R=srdjan@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=12254

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address Srdjan's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -4 lines) Patch
M runtime/vm/flow_graph_builder.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M runtime/vm/intermediate_language.h View 1 8 chunks +47 lines, -3 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 1 2 chunks +27 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 1 chunk +32 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Vyacheslav Egorov (Google)
8 years, 3 months ago (2012-09-12 10:20:02 UTC) #1
srdjan
LGTM with comments https://chromiumcodereview.appspot.com/10905233/diff/1/runtime/vm/flow_graph_builder.cc File runtime/vm/flow_graph_builder.cc (right): https://chromiumcodereview.appspot.com/10905233/diff/1/runtime/vm/flow_graph_builder.cc#newcode1691 runtime/vm/flow_graph_builder.cc:1691: call->set_is_constructor(true); There is a Function::IsConstructor() and ...
8 years, 3 months ago (2012-09-12 10:29:58 UTC) #2
Vyacheslav Egorov (Google)
Renamed is_constructor to is_known_constructor to reflect its meaning: it tells if the StaticCallInstr is a ...
8 years, 3 months ago (2012-09-12 10:45:25 UTC) #3
Vyacheslav Egorov (Google)
8 years, 3 months ago (2012-09-12 10:46:20 UTC) #4
Landed.

Powered by Google App Engine
This is Rietveld 408576698