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

Unified Diff: src/globals.h

Issue 718833002: Classes: Cleanup default constructor flag (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « src/compiler.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/globals.h
diff --git a/src/globals.h b/src/globals.h
index dd49ef3b17fcf8c5d55df5ad689d887cfdeb60dc..20cd46de11ffac8c7418277c722fca237313a204 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -784,8 +784,7 @@ enum FunctionKind {
kGeneratorFunction = 2,
kConciseMethod = 4,
kConciseGeneratorMethod = kGeneratorFunction | kConciseMethod,
- kDefaultConstructor = 8,
- kDefaultConstructorCallSuper = 16
+ kDefaultConstructor = 8
};
@@ -795,8 +794,7 @@ inline bool IsValidFunctionKind(FunctionKind kind) {
kind == FunctionKind::kGeneratorFunction ||
kind == FunctionKind::kConciseMethod ||
kind == FunctionKind::kConciseGeneratorMethod ||
- kind == FunctionKind::kDefaultConstructor ||
- kind == FunctionKind::kDefaultConstructorCallSuper;
+ kind == FunctionKind::kDefaultConstructor;
}
@@ -824,10 +822,6 @@ inline bool IsDefaultConstructor(FunctionKind kind) {
}
-inline bool IsDefaultConstructorCallSuper(FunctionKind kind) {
- DCHECK(IsValidFunctionKind(kind));
- return kind & FunctionKind::kDefaultConstructorCallSuper;
-}
} } // namespace v8::internal
namespace i = v8::internal;
« no previous file with comments | « src/compiler.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698