summaryrefslogtreecommitdiff
path: root/deps/v8/src/v8globals.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/v8globals.h')
-rw-r--r--deps/v8/src/v8globals.h36
1 files changed, 14 insertions, 22 deletions
diff --git a/deps/v8/src/v8globals.h b/deps/v8/src/v8globals.h
index 7fa2fd62c5..7d8d1b7e40 100644
--- a/deps/v8/src/v8globals.h
+++ b/deps/v8/src/v8globals.h
@@ -199,6 +199,11 @@ const int kSpaceTagMask = (1 << kSpaceTagSize) - 1;
// allows).
enum PretenureFlag { NOT_TENURED, TENURED };
+enum MinimumCapacity {
+ USE_DEFAULT_MINIMUM_CAPACITY,
+ USE_CUSTOM_MINIMUM_CAPACITY
+};
+
enum GarbageCollector { SCAVENGER, MARK_COMPACTOR };
enum Executability { NOT_EXECUTABLE, EXECUTABLE };
@@ -274,22 +279,14 @@ enum InlineCacheState {
};
-enum CheckType {
- RECEIVER_MAP_CHECK,
- STRING_CHECK,
- SYMBOL_CHECK,
- NUMBER_CHECK,
- BOOLEAN_CHECK
-};
-
-
enum CallFunctionFlags {
- NO_CALL_FUNCTION_FLAGS = 0,
- // Receiver might implicitly be the global objects. If it is, the
- // hole is passed to the call function stub.
- RECEIVER_MIGHT_BE_IMPLICIT = 1 << 0,
+ NO_CALL_FUNCTION_FLAGS,
// The call target is cached in the instruction stream.
- RECORD_CALL_TARGET = 1 << 1
+ RECORD_CALL_TARGET,
+ CALL_AS_METHOD,
+ // Always wrap the receiver and call to the JSFunction. Only use this flag
+ // both the receiver type and the target method are statically known.
+ WRAP_AND_CALL
};
@@ -317,6 +314,9 @@ union DoubleRepresentation {
double value;
int64_t bits;
DoubleRepresentation(double x) { value = x; }
+ bool operator==(const DoubleRepresentation& other) const {
+ return bits == other.bits;
+ }
};
@@ -439,14 +439,6 @@ enum SmiCheckType {
};
-// Used to specify whether a receiver is implicitly or explicitly
-// provided to a call.
-enum CallKind {
- CALL_AS_METHOD,
- CALL_AS_FUNCTION
-};
-
-
enum ScopeType {
EVAL_SCOPE, // The top-level scope for an eval source.
FUNCTION_SCOPE, // The top-level scope for a function.