summaryrefslogtreecommitdiff
path: root/deps/v8/src/globals.h
diff options
context:
space:
mode:
authorAli Ijaz Sheikh <ofrobots@google.com>2016-03-01 08:58:05 -0800
committerAli Sheikh <ofrobots@lemonhope.roam.corp.google.com>2016-03-03 20:35:20 -0800
commit069e02ab47656b3efd1b6829c65856b2e1c2d1db (patch)
treeeb643e0a2e88fd64bb9fc927423458d2ae96c2db /deps/v8/src/globals.h
parent8938355398c79f583a468284b768652d12ba9bc9 (diff)
downloadandroid-node-v8-069e02ab47656b3efd1b6829c65856b2e1c2d1db.tar.gz
android-node-v8-069e02ab47656b3efd1b6829c65856b2e1c2d1db.tar.bz2
android-node-v8-069e02ab47656b3efd1b6829c65856b2e1c2d1db.zip
deps: upgrade to V8 4.9.385.18
Pick up the current branch head for V8 4.9 https://github.com/v8/v8/commit/1ecba0f PR-URL: https://github.com/nodejs/node/pull/4722 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com>
Diffstat (limited to 'deps/v8/src/globals.h')
-rw-r--r--deps/v8/src/globals.h22
1 files changed, 9 insertions, 13 deletions
diff --git a/deps/v8/src/globals.h b/deps/v8/src/globals.h
index c3358870e5..67bdb63b86 100644
--- a/deps/v8/src/globals.h
+++ b/deps/v8/src/globals.h
@@ -599,19 +599,6 @@ enum InlineCacheState {
};
-enum CallConstructorFlags {
- NO_CALL_CONSTRUCTOR_FLAGS = 0,
- // The call target is cached in the instruction stream.
- RECORD_CONSTRUCTOR_TARGET = 1,
- // TODO(bmeurer): Kill these SUPER_* modes and use the Construct builtin
- // directly instead; also there's no point in collecting any "targets" for
- // super constructor calls, since these are known when we optimize the
- // constructor that contains the super call.
- SUPER_CONSTRUCTOR_CALL = 1 << 1,
- SUPER_CALL_RECORD_TARGET = SUPER_CONSTRUCTOR_CALL | RECORD_CONSTRUCTOR_TARGET
-};
-
-
enum CacheHolderFlag {
kCacheOnPrototype,
kCacheOnPrototypeReceiverIsDictionary,
@@ -1035,6 +1022,15 @@ inline bool IsClassConstructor(FunctionKind kind) {
}
+inline bool IsConstructable(FunctionKind kind, LanguageMode mode) {
+ if (IsAccessorFunction(kind)) return false;
+ if (IsConciseMethod(kind) && !IsGeneratorFunction(kind)) return false;
+ if (IsArrowFunction(kind)) return false;
+ if (is_strong(mode)) return IsClassConstructor(kind);
+ return true;
+}
+
+
inline bool IsInObjectLiteral(FunctionKind kind) {
DCHECK(IsValidFunctionKind(kind));
return kind & FunctionKind::kInObjectLiteral;