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

Unified Diff: runtime/vm/flow_graph_compiler.cc

Issue 10832150: Get rid of ast node ids. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/flow_graph_compiler_ia32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler.cc
===================================================================
--- runtime/vm/flow_graph_compiler.cc (revision 10302)
+++ runtime/vm/flow_graph_compiler.cc (working copy)
@@ -178,14 +178,14 @@
// Uses current pc position and try-index.
void FlowGraphCompiler::AddCurrentDescriptor(PcDescriptors::Kind kind,
- intptr_t cid,
+ intptr_t deopt_id,
intptr_t token_pos,
intptr_t try_index) {
ASSERT((kind != PcDescriptors::kDeopt) ||
frame_register_allocator()->IsSpilled());
pc_descriptors_list()->AddDescriptor(kind,
assembler()->CodeSize(),
- cid,
+ deopt_id,
token_pos,
try_index);
}
@@ -299,7 +299,7 @@
void FlowGraphCompiler::GenerateInstanceCall(
- intptr_t cid,
+ intptr_t deopt_id,
intptr_t token_pos,
intptr_t try_index,
const String& function_name,
@@ -311,7 +311,7 @@
ICData& ic_data =
ICData::ZoneHandle(ICData::New(parsed_function().function(),
function_name,
- cid,
+ deopt_id,
checked_argument_count));
const Array& arguments_descriptor =
DartEntry::ArgumentsDescriptor(argument_count, argument_names);
@@ -334,13 +334,13 @@
argument_count);
pc_descriptors_list()->AddDescriptor(PcDescriptors::kIcCall,
descr_offset,
- cid,
+ deopt_id,
token_pos,
try_index);
}
-void FlowGraphCompiler::GenerateStaticCall(intptr_t cid,
+void FlowGraphCompiler::GenerateStaticCall(intptr_t deopt_id,
intptr_t token_pos,
intptr_t try_index,
const Function& function,
@@ -355,7 +355,7 @@
argument_count);
pc_descriptors_list()->AddDescriptor(PcDescriptors::kFuncCall,
descr_offset,
- cid,
+ deopt_id,
token_pos,
try_index);
}
@@ -419,13 +419,13 @@
String::ZoneHandle(Symbols::New(Token::Str(Token::kINDEX)));
AddCurrentDescriptor(PcDescriptors::kDeopt,
- comp->cid(),
+ comp->deopt_id(),
comp->token_pos(),
comp->try_index());
const intptr_t kNumArguments = 2;
const intptr_t kNumArgsChecked = 1; // Type-feedback.
- GenerateInstanceCall(comp->cid(),
+ GenerateInstanceCall(comp->deopt_id(),
comp->token_pos(),
comp->try_index(),
function_name,
@@ -441,7 +441,7 @@
const Array& arg_names,
Label* deopt,
Label* done,
- intptr_t cid,
+ intptr_t deopt_id,
intptr_t token_index,
intptr_t try_index) {
ASSERT(!ic_data.IsNull() && (ic_data.NumberOfChecks() > 0));
@@ -456,7 +456,7 @@
assembler()->j(NOT_EQUAL, &next_test);
}
const Function& target = Function::ZoneHandle(ic_data.GetTargetAt(i));
- GenerateStaticCall(cid,
+ GenerateStaticCall(deopt_id,
token_index,
try_index,
target,
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/flow_graph_compiler_ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698