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

Issue 10713008: Introduce a VM type cast to avoid repeating a type test and spare a handle. (Closed)

Created:
8 years, 5 months ago by regis
Modified:
8 years, 5 months ago
Reviewers:
siva, Ivan Posva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Introduce a VM type cast to avoid repeating a type test and spare a handle. Committed: https://code.google.com/p/dart/source/detail?r=9226

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -54 lines) Patch
M runtime/vm/flow_graph_compiler_ia32.cc View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M runtime/vm/object.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 10 chunks +32 lines, -46 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
regis
If this is acceptable, I'll use this type cast where applicable in a following change ...
8 years, 5 months ago (2012-06-28 16:24:07 UTC) #1
Ivan Posva
Can you convert a select few cases of ^= usage as well to validate that ...
8 years, 5 months ago (2012-06-28 16:35:09 UTC) #2
siva
LGTM with one suggestion you could consider to make the calling code uniform https://chromiumcodereview.appspot.com/10713008/diff/1/runtime/vm/object.cc File ...
8 years, 5 months ago (2012-06-28 17:02:51 UTC) #3
Ivan Posva
https://chromiumcodereview.appspot.com/10713008/diff/1/runtime/vm/object.h File runtime/vm/object.h (right): https://chromiumcodereview.appspot.com/10713008/diff/1/runtime/vm/object.h#newcode98 runtime/vm/object.h:98: } \ On 2012/06/28 17:02:51, asiva wrote: > Do ...
8 years, 5 months ago (2012-06-28 17:35:57 UTC) #4
regis
Please, have another look. I added a few more Cast's in object.cc for illustration. Thanks, ...
8 years, 5 months ago (2012-06-28 18:44:51 UTC) #5
Ivan Posva
8 years, 5 months ago (2012-06-28 20:19:16 UTC) #6
Even better...

-Ivan

Powered by Google App Engine
This is Rietveld 408576698