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

Issue 9863043: Inline checks for super class and interfaces (checked mdoe improvements). (Closed)

Created:
8 years, 9 months ago by srdjan
Modified:
8 years, 9 months ago
Reviewers:
regis
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Inline checks for super class and interfaces (checked mdoe improvements). Committed: https://code.google.com/p/dart/source/detail?r=5898

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -1 line) Patch
M runtime/vm/code_generator_ia32.cc View 1 2 chunks +30 lines, -1 line 0 comments Download
M runtime/vm/object.h View 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
srdjan
8 years, 9 months ago (2012-03-27 18:05:12 UTC) #1
regis
LGTM, except for a missing null check. Also, we usually keep the 64-bit version in ...
8 years, 9 months ago (2012-03-27 18:43:37 UTC) #2
srdjan
8 years, 9 months ago (2012-03-27 18:50:42 UTC) #3
The inlined type checks need a major cleanup/refactoring, which will be done in
the new compiler x64, therefore I'd rather not port the changes there yet.

https://chromiumcodereview.appspot.com/9863043/diff/4001/runtime/vm/code_gene...
File runtime/vm/code_generator_ia32.cc (right):

https://chromiumcodereview.appspot.com/9863043/diff/4001/runtime/vm/code_gene...
runtime/vm/code_generator_ia32.cc:1548: __ movl(ECX, FieldAddress(ECX,
Type::type_class_offset()));
On 2012/03/27 18:43:37, regis wrote:
> What if the super type is null?

Adding comment:
        // Note that super-type can't be NULL as every Dart instance has
        // as supertype class Object.

Powered by Google App Engine
This is Rietveld 408576698