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

Unified Diff: runtime/vm/opt_code_generator_ia32.cc

Issue 8893008: Helper ast node sequences must not wrongly grab ownership of the enclosing (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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/code_generator_ia32.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/opt_code_generator_ia32.cc
===================================================================
--- runtime/vm/opt_code_generator_ia32.cc (revision 2323)
+++ runtime/vm/opt_code_generator_ia32.cc (working copy)
@@ -2567,8 +2567,9 @@
void OptimizingCodeGenerator::VisitSequenceNode(SequenceNode* node_sequence) {
- if (FLAG_enable_type_checks ||
- (node_sequence->scope()->num_context_variables() > 0)) {
+ const intptr_t num_context_variables = (node_sequence->scope() != NULL) ?
+ node_sequence->scope()->num_context_variables() : 0;
+ if (FLAG_enable_type_checks || (num_context_variables > 0)) {
CodeGenerator::VisitSequenceNode(node_sequence);
return;
}
« no previous file with comments | « runtime/vm/code_generator_ia32.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698