diff options
Diffstat (limited to 'deps/v8/src/globals.h')
-rw-r--r-- | deps/v8/src/globals.h | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/deps/v8/src/globals.h b/deps/v8/src/globals.h index 3b4c2a602e..1194472d29 100644 --- a/deps/v8/src/globals.h +++ b/deps/v8/src/globals.h @@ -118,7 +118,10 @@ namespace internal { #define V8_DOUBLE_FIELDS_UNBOXING 0 #endif -#define V8_CONCURRENT_MARKING 0 +// Some types of tracing require the SFI to store a unique ID. +#if defined(V8_TRACE_MAPS) || defined(V8_TRACE_IGNITION) +#define V8_SFI_HAS_UNIQUE_ID 1 +#endif typedef uint8_t byte; typedef byte* Address; @@ -590,6 +593,7 @@ enum Executability { NOT_EXECUTABLE, EXECUTABLE }; enum VisitMode { VISIT_ALL, + VISIT_ALL_IN_MINOR_MC_UPDATE, VISIT_ALL_IN_SCAVENGE, VISIT_ALL_IN_SWEEP_NEWSPACE, VISIT_ONLY_STRONG, @@ -674,6 +678,8 @@ enum InlineCacheState { enum WhereToStart { kStartAtReceiver, kStartAtPrototype }; +enum ResultSentinel { kNotFound = -1, kUnsupported = -2 }; + // The Store Buffer (GC). typedef enum { kStoreBufferFullEvent, @@ -1034,12 +1040,12 @@ enum VariableLocation : uint8_t { kLastVariableLocation = MODULE }; -// ES6 Draft Rev3 10.2 specifies declarative environment records with mutable -// and immutable bindings that can be in two states: initialized and -// uninitialized. In ES5 only immutable bindings have these two states. When -// accessing a binding, it needs to be checked for initialization. However in -// the following cases the binding is initialized immediately after creation -// so the initialization check can always be skipped: +// ES6 specifies declarative environment records with mutable and immutable +// bindings that can be in two states: initialized and uninitialized. +// When accessing a binding, it needs to be checked for initialization. +// However in the following cases the binding is initialized immediately +// after creation so the initialization check can always be skipped: +// // 1. Var declared local variables. // var foo; // 2. A local variable introduced by a function declaration. @@ -1048,20 +1054,11 @@ enum VariableLocation : uint8_t { // function x(foo) {} // 4. Catch bound variables. // try {} catch (foo) {} -// 6. Function variables of named function expressions. +// 6. Function name variables of named function expressions. // var x = function foo() {} // 7. Implicit binding of 'this'. // 8. Implicit binding of 'arguments' in functions. // -// ES5 specified object environment records which are introduced by ES elements -// such as Program and WithStatement that associate identifier bindings with the -// properties of some object. In the specification only mutable bindings exist -// (which may be non-writable) and have no distinct initialization step. However -// V8 allows const declarations in global code with distinct creation and -// initialization steps which are represented by non-writable properties in the -// global object. As a result also these bindings need to be checked for -// initialization. -// // The following enum specifies a flag that indicates if the binding needs a // distinct initialization step (kNeedsInitialization) or if the binding is // immediately initialized upon creation (kCreatedInitialized). |