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

Unified Diff: src/compiler/source-position.cc

Issue 1105363003: [turbofan] Don't spread global flag checks all over the compiler code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/compiler/source-position.h ('k') | test/unittests/compiler/instruction-selector-unittest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/source-position.cc
diff --git a/src/compiler/source-position.cc b/src/compiler/source-position.cc
index 61d0ad97bbce082e90000a7d0cf651693be43218..97577c7966692e281fd0d0d57c60d25767ed5887 100644
--- a/src/compiler/source-position.cc
+++ b/src/compiler/source-position.cc
@@ -27,22 +27,22 @@ class SourcePositionTable::Decorator final : public GraphDecorator {
SourcePositionTable::SourcePositionTable(Graph* graph)
: graph_(graph),
- decorator_(NULL),
+ decorator_(nullptr),
current_position_(SourcePosition::Invalid()),
table_(graph->zone()) {}
void SourcePositionTable::AddDecorator() {
- DCHECK(decorator_ == NULL);
+ DCHECK_NULL(decorator_);
decorator_ = new (graph_->zone()) Decorator(this);
graph_->AddDecorator(decorator_);
}
void SourcePositionTable::RemoveDecorator() {
- DCHECK(decorator_ != NULL);
+ DCHECK_NOT_NULL(decorator_);
graph_->RemoveDecorator(decorator_);
- decorator_ = NULL;
+ decorator_ = nullptr;
}
« no previous file with comments | « src/compiler/source-position.h ('k') | test/unittests/compiler/instruction-selector-unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698