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

Issue 9693020: Optional arguments in new compiler. (Closed)

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

Description

Optional arguments in new compiler. Includes Issue 9664062: Support allocating and calling closures in the new non-optimizing compiler (with fixes) Committed: https://code.google.com/p/dart/source/detail?r=5419

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+418 lines, -209 lines) Patch
M runtime/vm/code_generator_ia32.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -8 lines 0 comments Download
M runtime/vm/code_generator_x64.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/code_generator_x64.cc View 1 2 3 4 5 6 7 8 4 chunks +193 lines, -177 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -3 lines 0 comments Download
M runtime/vm/flow_graph_compiler_x64.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +217 lines, -21 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
srdjan
8 years, 9 months ago (2012-03-12 23:07:00 UTC) #1
Kevin Millikin (Google)
LGTM with the change below addressed one way or another. I don't care too much ...
8 years, 9 months ago (2012-03-13 12:31:07 UTC) #2
srdjan
8 years, 9 months ago (2012-03-13 16:57:00 UTC) #3
https://chromiumcodereview.appspot.com/9693020/diff/2019/runtime/vm/code_gene...
File runtime/vm/code_generator_ia32.cc (right):

https://chromiumcodereview.appspot.com/9693020/diff/2019/runtime/vm/code_gene...
runtime/vm/code_generator_ia32.cc:574: const int base =
parsed_function_.first_local_index();
On 2012/03/13 12:31:08, kmillikin wrote:
> I think with your change to make local_count() include the number of copied
> parameters, you will want something like:
> 
> const int base = parsed_function_.first_local_index();
> const int count =
>   parsed_function_.local_count() - parsed_function_.copied_parameter_count();
> for (int index = 0; index < count; ++index) ...
> 
> Otherwise we're needlessly initializing above the stack pointer (with an
> unrolled loop!).

Excluding num_copied_parameters from stack_local_count.

Powered by Google App Engine
This is Rietveld 408576698