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

Unified Diff: src/hydrogen.h

Issue 1161393007: OLD type Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 5 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 | « src/globals.h ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.h
diff --git a/src/hydrogen.h b/src/hydrogen.h
index 125ec58c6920a1e6645b575c61225ff7d31cb980..d8b668e19ec604bcdf7f38e90a17d5455fb46dac 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -2313,7 +2313,7 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor {
Add<HEnvironmentMarker>(HEnvironmentMarker::BIND, index);
USE(bind);
#ifdef DEBUG
- bind->set_closure(env->closure());
+ if (!env->closure().is_null()) bind->set_closure(env->closure());
#endif
}
}
@@ -2326,7 +2326,7 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor {
Add<HEnvironmentMarker>(HEnvironmentMarker::LOOKUP, index);
USE(lookup);
#ifdef DEBUG
- lookup->set_closure(env->closure());
+ if (!env->closure().is_null()) lookup->set_closure(env->closure());
#endif
}
return value;
« no previous file with comments | « src/globals.h ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698