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

Issue 26682003: Cache number of type arguments in class object instead of recalculating it. (Closed)

Created:
7 years, 2 months ago by regis
Modified:
7 years, 2 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Cache number of type arguments in class object instead of recalculating it. Reduce size of num_native_fields field in class object. R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=28670

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -135 lines) Patch
M runtime/vm/class_finalizer.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/class_finalizer.cc View 1 2 3 4 1 chunk +0 lines, -10 lines 0 comments Download
M runtime/vm/code_generator.cc View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/flow_graph_compiler.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler_arm.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/flow_graph_compiler_ia32.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/flow_graph_compiler_mips.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_type_propagator.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/intrinsifier_arm.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/intrinsifier_ia32.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/intrinsifier_mips.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/object.h View 1 2 3 4 3 chunks +15 lines, -6 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 26 chunks +119 lines, -72 lines 0 comments Download
M runtime/vm/raw_object.h View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
M runtime/vm/raw_object_snapshot.cc View 1 2 3 4 2 chunks +6 lines, -2 lines 0 comments Download
M runtime/vm/stub_code_arm.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/stub_code_ia32.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/stub_code_mips.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/stub_code_x64.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
regis
7 years, 2 months ago (2013-10-14 23:25:51 UTC) #1
siva
lgtm https://codereview.chromium.org/26682003/diff/8001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/26682003/diff/8001/runtime/vm/object.cc#newcode1922 runtime/vm/object.cc:1922: bool Class::HasTypeArguments() const { Is this HasTypeArguments optimization ...
7 years, 2 months ago (2013-10-15 00:06:57 UTC) #2
regis
Removing HasTypeArguments() unveiled issues with the initialization of the fields caching the number of type ...
7 years, 2 months ago (2013-10-15 17:49:14 UTC) #3
siva
still LGTM
7 years, 2 months ago (2013-10-15 18:25:42 UTC) #4
regis
7 years, 2 months ago (2013-10-15 18:31:44 UTC) #5
Message was sent while issue was closed.
Committed patchset #5 manually as r28670 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698