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

Unified Diff: src/ast-numbering.cc

Issue 1229233002: Remove more uses of the deprecated EnumSet template class. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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/ast.h ('k') | src/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast-numbering.cc
diff --git a/src/ast-numbering.cc b/src/ast-numbering.cc
index ab8a6b281c45be49576fd85d809195d4a2ec21c6..bf0f9ba2a46f4788b43b3a1af5e48dbe7b781e52 100644
--- a/src/ast-numbering.cc
+++ b/src/ast-numbering.cc
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "src/v8.h"
-
#include "src/ast.h"
#include "src/ast-numbering.h"
#include "src/scopes.h"
@@ -11,7 +9,6 @@
namespace v8 {
namespace internal {
-
class AstNumberingVisitor final : public AstVisitor {
public:
explicit AstNumberingVisitor(Isolate* isolate, Zone* zone)
@@ -46,7 +43,7 @@ class AstNumberingVisitor final : public AstVisitor {
void IncrementNodeCount() { properties_.add_node_count(1); }
void DisableSelfOptimization() {
- properties_.flags()->Add(kDontSelfOptimize);
+ properties_.flags() |= AstProperties::kDontSelfOptimize;
}
void DisableOptimization(BailoutReason reason) {
dont_optimize_reason_ = reason;
@@ -54,10 +51,11 @@ class AstNumberingVisitor final : public AstVisitor {
}
void DisableCrankshaft(BailoutReason reason) {
if (FLAG_turbo_shipping) {
- return properties_.flags()->Add(kDontCrankshaft);
+ properties_.flags() |= AstProperties::kDontCrankshaft;
+ } else {
+ dont_optimize_reason_ = reason;
+ DisableSelfOptimization();
}
- dont_optimize_reason_ = reason;
- DisableSelfOptimization();
}
template <typename Node>
« no previous file with comments | « src/ast.h ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698