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

Unified Diff: vm/flow_graph_compiler.cc

Issue 10632009: Make the parser agnostic to the TokenStream implementation. This is the first step towards compacti… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 6 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 | « vm/flow_graph_builder.cc ('k') | vm/flow_graph_compiler_ia32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/flow_graph_compiler.cc
===================================================================
--- vm/flow_graph_compiler.cc (revision 9042)
+++ vm/flow_graph_compiler.cc (working copy)
@@ -148,27 +148,27 @@
// Uses current pc position and try-index.
void FlowGraphCompiler::AddCurrentDescriptor(PcDescriptors::Kind kind,
intptr_t cid,
- intptr_t token_index,
+ intptr_t token_pos,
intptr_t try_index) {
ASSERT((kind != PcDescriptors::kDeopt) ||
frame_register_allocator()->IsSpilled());
pc_descriptors_list()->AddDescriptor(kind,
assembler()->CodeSize(),
cid,
- token_index,
+ token_pos,
try_index);
}
Label* FlowGraphCompiler::AddDeoptStub(intptr_t deopt_id,
- intptr_t deopt_token_index,
+ intptr_t deopt_token_pos,
intptr_t try_index,
DeoptReasonId reason,
Register reg1,
Register reg2,
Register reg3) {
DeoptimizationStub* stub =
- new DeoptimizationStub(deopt_id, deopt_token_index, try_index, reason);
+ new DeoptimizationStub(deopt_id, deopt_token_pos, try_index, reason);
frame_register_allocator()->SpillInDeoptStub(stub);
if (reg1 != kNoRegister) stub->Push(reg1);
if (reg2 != kNoRegister) stub->Push(reg2);
@@ -270,7 +270,7 @@
void FlowGraphCompiler::GenerateInstanceCall(
intptr_t cid,
- intptr_t token_index,
+ intptr_t token_pos,
intptr_t try_index,
const String& function_name,
intptr_t argument_count,
@@ -304,13 +304,13 @@
pc_descriptors_list()->AddDescriptor(PcDescriptors::kIcCall,
descr_offset,
cid,
- token_index,
+ token_pos,
try_index);
}
void FlowGraphCompiler::GenerateStaticCall(intptr_t cid,
- intptr_t token_index,
+ intptr_t token_pos,
intptr_t try_index,
const Function& function,
intptr_t argument_count,
@@ -325,7 +325,7 @@
pc_descriptors_list()->AddDescriptor(PcDescriptors::kFuncCall,
descr_offset,
cid,
- token_index,
+ token_pos,
try_index);
}
@@ -389,13 +389,13 @@
AddCurrentDescriptor(PcDescriptors::kDeopt,
comp->cid(),
- comp->token_index(),
+ comp->token_pos(),
comp->try_index());
const intptr_t kNumArguments = 2;
const intptr_t kNumArgsChecked = 1; // Type-feedback.
GenerateInstanceCall(comp->cid(),
- comp->token_index(),
+ comp->token_pos(),
comp->try_index(),
function_name,
kNumArguments,
« no previous file with comments | « vm/flow_graph_builder.cc ('k') | vm/flow_graph_compiler_ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698