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

Issue 10460002: Move CreateArray and CreateClosure to new location template. (Closed)

Created:
8 years, 6 months ago by regis
Modified:
8 years, 6 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Move CreateArray and CreateClosure to new location template. Committed: https://code.google.com/p/dart/source/detail?r=8104

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -46 lines) Patch
runtime/vm/flow_graph_compiler_x64.cc View 1 2 3 chunks +5 lines, -35 lines 0 comments Download
runtime/vm/intermediate_language.h View 1 2 4 chunks +5 lines, -6 lines 0 comments Download
runtime/vm/intermediate_language.cc View 1 2 1 chunk +5 lines, -1 line 0 comments Download
runtime/vm/intermediate_language_x64.cc View 1 2 1 chunk +46 lines, -4 lines 8 comments Download

Messages

Total messages: 10 (0 generated)
regis
8 years, 6 months ago (2012-05-30 10:29:02 UTC) #1
Vyacheslav Egorov (Google)
https://chromiumcodereview.appspot.com/10460002/diff/1/runtime/vm/intermediate_language_x64.cc File runtime/vm/intermediate_language_x64.cc (right): https://chromiumcodereview.appspot.com/10460002/diff/1/runtime/vm/intermediate_language_x64.cc#newcode600 runtime/vm/intermediate_language_x64.cc:600: compiler->LoadValue(RBX, element_type()); New templates should not use LoadValue directly. ...
8 years, 6 months ago (2012-05-30 10:44:11 UTC) #2
Vyacheslav Egorov (Google)
Sorry for the confusion. No need to implement constants support, I misread BuildInstantiatedTypeArguments https://chromiumcodereview.appspot.com/10460002/diff/1/runtime/vm/intermediate_language_x64.cc File ...
8 years, 6 months ago (2012-05-30 11:13:41 UTC) #3
regis
On 2012/05/30 11:13:41, Vyacheslav Egorov (Google) wrote: > Sorry for the confusion. No need to ...
8 years, 6 months ago (2012-05-30 11:24:04 UTC) #4
regis
On 2012/05/30 11:24:04, regis wrote: > On 2012/05/30 11:13:41, Vyacheslav Egorov (Google) wrote: > > ...
8 years, 6 months ago (2012-05-30 11:27:48 UTC) #5
Vyacheslav Egorov (Google)
lgtm https://chromiumcodereview.appspot.com/10460002/diff/3002/runtime/vm/intermediate_language_x64.cc File runtime/vm/intermediate_language_x64.cc (right): https://chromiumcodereview.appspot.com/10460002/diff/3002/runtime/vm/intermediate_language_x64.cc#newcode585 runtime/vm/intermediate_language_x64.cc:585: const intptr_t kNumTemps = 2; should be 1 ...
8 years, 6 months ago (2012-05-30 11:42:17 UTC) #6
Florian Schneider
https://chromiumcodereview.appspot.com/10460002/diff/3002/runtime/vm/intermediate_language.h File runtime/vm/intermediate_language.h (right): https://chromiumcodereview.appspot.com/10460002/diff/3002/runtime/vm/intermediate_language.h#newcode1026 runtime/vm/intermediate_language.h:1026: virtual intptr_t InputCount() const; In the existing code I ...
8 years, 6 months ago (2012-05-30 12:38:12 UTC) #7
regis
Thanks! https://chromiumcodereview.appspot.com/10460002/diff/3002/runtime/vm/intermediate_language.h File runtime/vm/intermediate_language.h (right): https://chromiumcodereview.appspot.com/10460002/diff/3002/runtime/vm/intermediate_language.h#newcode1026 runtime/vm/intermediate_language.h:1026: virtual intptr_t InputCount() const; On 2012/05/30 12:38:12, Florian ...
8 years, 6 months ago (2012-05-30 13:41:09 UTC) #8
srdjan
LGTM with comments https://chromiumcodereview.appspot.com/10460002/diff/4002/runtime/vm/intermediate_language_x64.cc File runtime/vm/intermediate_language_x64.cc (right): https://chromiumcodereview.appspot.com/10460002/diff/4002/runtime/vm/intermediate_language_x64.cc#newcode603 runtime/vm/intermediate_language_x64.cc:603: __ movq(R10, Immediate(Smi::RawValue(ElementCount()))); Use temp instead ...
8 years, 6 months ago (2012-05-30 15:58:37 UTC) #9
regis
8 years, 6 months ago (2012-05-30 16:59:08 UTC) #10
Thanks. All done in another cl (issue 10448079).

https://chromiumcodereview.appspot.com/10460002/diff/4002/runtime/vm/intermed...
File runtime/vm/intermediate_language_x64.cc (right):

https://chromiumcodereview.appspot.com/10460002/diff/4002/runtime/vm/intermed...
runtime/vm/intermediate_language_x64.cc:603: __ movq(R10,
Immediate(Smi::RawValue(ElementCount())));
On 2012/05/30 15:58:37, srdjan wrote:
> Use temp instead of R10, so that the knowledge of R10 is embedded onlhy in
> MakeLocationSumary.

Done.

https://chromiumcodereview.appspot.com/10460002/diff/4002/runtime/vm/intermed...
runtime/vm/intermediate_language_x64.cc:610: __ leaq(R10, FieldAddress(RAX,
Array::data_offset()));
On 2012/05/30 15:58:37, srdjan wrote:
> ditto here and below.

Done.

https://chromiumcodereview.appspot.com/10460002/diff/4002/runtime/vm/intermed...
runtime/vm/intermediate_language_x64.cc:615: compiler->LoadValue(RBX,
ElementAt(i));
On 2012/05/30 15:58:37, srdjan wrote:
> I think this should no happend, i.e., FlowGraphBuilder should make sure that
we
> have only uses as inputs.

Done.

https://chromiumcodereview.appspot.com/10460002/diff/4002/runtime/vm/intermed...
runtime/vm/intermediate_language_x64.cc:637: __ Drop(1);  // Discard type
arguments.
On 2012/05/30 15:58:37, srdjan wrote:
> Could we normalize the closure creation to always requite a type argument
> (either Null or nothing)?

Done.

Powered by Google App Engine
This is Rietveld 408576698