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

Unified Diff: runtime/vm/code_generator.cc

Issue 8475013: Emit node id at every call to runtime. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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/ast.h ('k') | runtime/vm/code_generator_ia32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_generator.cc
===================================================================
--- runtime/vm/code_generator.cc (revision 1225)
+++ runtime/vm/code_generator.cc (working copy)
@@ -852,14 +852,14 @@
PcDescriptors::Handle(optimized_code.pc_descriptors());
ASSERT(!descriptors.IsNull());
// Locate node id at deoptimization point inside optimized code.
- intptr_t deopt_node_id = AstNode::kInvalidId;
+ intptr_t deopt_node_id = AstNode::kNoId;
for (int i = 0; i < descriptors.Length(); i++) {
if (static_cast<uword>(descriptors.PC(i)) == caller_frame->pc()) {
deopt_node_id = descriptors.NodeId(i);
break;
}
}
- ASSERT(deopt_node_id != AstNode::kInvalidId);
+ ASSERT(deopt_node_id != AstNode::kNoId);
uword continue_at_pc =
unoptimized_code.GetDeoptPcAtNodeId(deopt_node_id);
ASSERT(continue_at_pc != 0);
« no previous file with comments | « runtime/vm/ast.h ('k') | runtime/vm/code_generator_ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698