| Index: runtime/vm/code_generator_ia32.cc
|
| ===================================================================
|
| --- runtime/vm/code_generator_ia32.cc (revision 6717)
|
| +++ runtime/vm/code_generator_ia32.cc (working copy)
|
| @@ -1795,14 +1795,15 @@
|
|
|
| void CodeGenerator::GenerateArgumentTypeChecks() {
|
| const Function& function = parsed_function_.function();
|
| - LocalScope* scope = parsed_function_.node_sequence()->scope();
|
| + const SequenceNode& sequence_node = *parsed_function_.node_sequence();
|
| + LocalScope* scope = sequence_node.scope();
|
| const int num_fixed_params = function.num_fixed_parameters();
|
| const int num_opt_params = function.num_optional_parameters();
|
| ASSERT(num_fixed_params + num_opt_params <= scope->num_variables());
|
| - for (int i = 0; i < num_fixed_params + num_opt_params; i++) {
|
| + for (intptr_t i = 0; i < num_fixed_params + num_opt_params; i++) {
|
| LocalVariable* parameter = scope->VariableAt(i);
|
| GenerateLoadVariable(EAX, *parameter);
|
| - GenerateAssertAssignable(AstNode::kNoId,
|
| + GenerateAssertAssignable(sequence_node.ParameterIdAt(i),
|
| parameter->token_index(),
|
| NULL,
|
| parameter->type(),
|
|
|