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

Issue 10115053: Assign ids to incoming arguments (to be used in checked mode). (Closed)

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

Description

Assign ids to incoming arguments (to be used in checked mode). Committed: https://code.google.com/p/dart/source/detail?r=6718

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -15 lines) Patch
M runtime/vm/ast.h View 4 chunks +16 lines, -1 line 0 comments Download
M runtime/vm/code_descriptors_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/code_generator_ia32.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M runtime/vm/code_generator_x64.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M runtime/vm/compiler.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/parser.h View 1 chunk +1 line, -4 lines 0 comments Download
M runtime/vm/parser.cc View 2 chunks +18 lines, -1 line 2 comments Download
M runtime/vm/unit_test.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
srdjan
8 years, 8 months ago (2012-04-18 23:47:51 UTC) #1
regis
LGTM https://chromiumcodereview.appspot.com/10115053/diff/1/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://chromiumcodereview.appspot.com/10115053/diff/1/runtime/vm/parser.cc#newcode129 runtime/vm/parser.cc:129: node_sequence_->set_last_parameter_id(parameter_id); It is strange to call set_last_parameter_id, but ...
8 years, 8 months ago (2012-04-18 23:59:13 UTC) #2
srdjan
8 years, 8 months ago (2012-04-19 00:04:20 UTC) #3
https://chromiumcodereview.appspot.com/10115053/diff/1/runtime/vm/parser.cc
File runtime/vm/parser.cc (right):

https://chromiumcodereview.appspot.com/10115053/diff/1/runtime/vm/parser.cc#n...
runtime/vm/parser.cc:129: node_sequence_->set_last_parameter_id(parameter_id);
On 2012/04/18 23:59:13, regis wrote:
> It is strange to call set_last_parameter_id, but not set_first_parameter_id,
> when the function has no parameters.
> How about storing the number of parameters instead of the last_parameter_id?
But
> isn't that number available without storing it? 

Discussed off-line: last parameter id is set to kNoId (initial value of
parameter_id) if function has not parameters.

Powered by Google App Engine
This is Rietveld 408576698