Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 22cc08b93ee872946ed306c273d651b2156b6815..1748a1c34c60c5a234685a8157ee220d6079af92 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -1048,7 +1048,310 @@ class MaybeObject BASE_EMBEDDED { |
V(AccessCheckNeeded) \ |
V(Cell) \ |
V(PropertyCell) \ |
- V(ObjectHashTable) \ |
+ V(ObjectHashTable) |
+ |
+ |
+#define ERROR_MESSAGES_LIST(V) \ |
+ V(kNoReason, "no reason") \ |
+ \ |
+ V(k32BitValueInRegisterIsNotZeroExtended, \ |
+ "32 bit value in register is not zero-extended") \ |
+ V(kAlignmentMarkerExpected, "alignment marker expected") \ |
+ V(kAllocationIsNotDoubleAligned, "Allocation is not double aligned") \ |
+ V(kAPICallReturnedInvalidObject, "API call returned invalid object") \ |
+ V(kArgumentsObjectValueInATestContext, \ |
+ "arguments object value in a test context") \ |
+ V(kArrayBoilerplateCreationFailed, "array boilerplate creation failed") \ |
+ V(kArrayIndexConstantValueTooBig, "array index constant value too big") \ |
+ V(kAssignmentToArguments, "assignment to arguments") \ |
+ V(kAssignmentToLetVariableBeforeInitialization, \ |
+ "assignment to let variable before initialization") \ |
+ V(kAssignmentToLOOKUPVariable, "assignment to LOOKUP variable") \ |
+ V(kAssignmentToParameterFunctionUsesArgumentsObject, \ |
+ "assignment to parameter, function uses arguments object") \ |
+ V(kAssignmentToParameterInArgumentsObject, \ |
+ "assignment to parameter in arguments object") \ |
+ V(kAttemptToUseUndefinedCache, "Attempt to use undefined cache") \ |
+ V(kBadValueContextForArgumentsObjectValue, \ |
+ "bad value context for arguments object value") \ |
+ V(kBadValueContextForArgumentsValue, \ |
+ "bad value context for arguments value") \ |
+ V(kBailedOutDueToDependentMap, "bailed out due to dependent map") \ |
+ V(kBailoutWasNotPrepared, "bailout was not prepared") \ |
+ V(kBinaryStubGenerateFloatingPointCode, \ |
+ "BinaryStub_GenerateFloatingPointCode") \ |
+ V(kBothRegistersWereSmisInSelectNonSmi, \ |
+ "Both registers were smis in SelectNonSmi") \ |
+ V(kCallToAJavaScriptRuntimeFunction, \ |
+ "call to a JavaScript runtime function") \ |
+ V(kCannotTranslatePositionInChangedArea, \ |
+ "Cannot translate position in changed area") \ |
+ V(kCodeGenerationFailed, "code generation failed") \ |
+ V(kCodeObjectNotProperlyPatched, "code object not properly patched") \ |
+ V(kCompoundAssignmentToLookupSlot, "compound assignment to lookup slot") \ |
+ V(kContextAllocatedArguments, "context-allocated arguments") \ |
+ V(kCouldNotGenerateZero, "could not generate +0.0") \ |
+ V(kCouldNotGenerateNegativeZero, "could not generate -0.0") \ |
+ V(kDebuggerIsActive, "debugger is active") \ |
+ V(kDebuggerStatement, "DebuggerStatement") \ |
+ V(kDeclarationInCatchContext, "Declaration in catch context") \ |
+ V(kDeclarationInWithContext, "Declaration in with context") \ |
+ V(kDefaultNaNModeNotSet, "Default NaN mode not set") \ |
+ V(kDeleteWithGlobalVariable, "delete with global variable") \ |
+ V(kDeleteWithNonGlobalVariable, "delete with non-global variable") \ |
+ V(kDestinationOfCopyNotAligned, "Destination of copy not aligned") \ |
+ V(kDontDeleteCellsCannotContainTheHole, \ |
+ "DontDelete cells can't contain the hole") \ |
+ V(kDoPushArgumentNotImplementedForDoubleType, \ |
+ "DoPushArgument not implemented for double type") \ |
+ V(kEmitLoadRegisterUnsupportedDoubleImmediate, \ |
+ "EmitLoadRegister: Unsupported double immediate") \ |
+ V(kEval, "eval") \ |
+ V(kExpected0AsASmiSentinel, "Expected 0 as a Smi sentinel") \ |
+ V(kExpectedAlignmentMarker, "expected alignment marker") \ |
+ V(kExpectedNonIdenticalObjects, "expected non-identical objects") \ |
+ V(kExpectedPositiveZero, "expected +0.0") \ |
+ V(kExpectedPropertyCellInTypeInfoCell, \ |
+ "Expected property cell in type_info_cell") \ |
+ V(kExpectedPropertyCellInRegisterA2, \ |
+ "Expected property cell in register a2") \ |
+ V(kExpectedPropertyCellInRegisterEbx, \ |
+ "Expected property cell in register ebx") \ |
+ V(kExpectedPropertyCellInRegisterRbx, \ |
+ "Expected property cell in register rbx") \ |
+ V(kExpectedSmiOrHeapNumber, "expected smi or HeapNumber") \ |
+ V(kExpectingAlignmentForCopyBytes, \ |
+ "Expecting alignment for CopyBytes") \ |
+ V(kExternalStringExpectedButNotFound, \ |
+ "external string expected, but not found") \ |
+ V(kFailedBailedOutLastTime, "failed/bailed out last time") \ |
+ V(kForInStatementIsNotFastCase, "ForInStatement is not fast case") \ |
+ V(kForInStatementOptimizationIsDisabled, \ |
+ "ForInStatement optimization is disabled") \ |
+ V(kForInStatementWithNonLocalEachVariable, \ |
+ "ForInStatement with non-local each variable") \ |
+ V(kForOfStatement, "ForOfStatement") \ |
+ V(kFrameIsExpectedToBeAligned, "frame is expected to be aligned") \ |
+ V(kFunctionCallsEval, "function calls eval") \ |
+ V(kFunctionIsAGenerator, "function is a generator") \ |
+ V(kFunctionWithIllegalRedeclaration, "function with illegal redeclaration") \ |
+ V(kGeneratedCodeIsTooLarge, "Generated code is too large") \ |
+ V(kGeneratorFailedToResume, "Generator failed to resume") \ |
+ V(kGenerator, "generator") \ |
+ V(kGlobalFunctionsMustHaveInitialMap, \ |
+ "Global functions must have initial map") \ |
+ V(kHeapNumberMapRegisterClobbered, "HeapNumberMap register clobbered") \ |
+ V(kImproperObjectOnPrototypeChainForStore, \ |
+ "improper object on prototype chain for store") \ |
+ V(kIndexIsNegative, "Index is negative") \ |
+ V(kIndexIsTooLarge, "Index is too large") \ |
+ V(kInlinedRuntimeFunctionClassOf, "inlined runtime function: ClassOf") \ |
+ V(kInlinedRuntimeFunctionFastAsciiArrayJoin, \ |
+ "inlined runtime function: FastAsciiArrayJoin") \ |
+ V(kInlinedRuntimeFunctionGeneratorNext, \ |
+ "inlined runtime function: GeneratorNext") \ |
+ V(kInlinedRuntimeFunctionGeneratorThrow, \ |
+ "inlined runtime function: GeneratorThrow") \ |
+ V(kInlinedRuntimeFunctionGetFromCache, \ |
+ "inlined runtime function: GetFromCache") \ |
+ V(kInlinedRuntimeFunctionIsNonNegativeSmi, \ |
+ "inlined runtime function: IsNonNegativeSmi") \ |
+ V(kInlinedRuntimeFunctionIsRegExpEquivalent, \ |
+ "inlined runtime function: IsRegExpEquivalent") \ |
+ V(kInlinedRuntimeFunctionIsStringWrapperSafeForDefaultValueOf, \ |
+ "inlined runtime function: IsStringWrapperSafeForDefaultValueOf") \ |
+ V(kInliningBailedOut, "inlining bailed out") \ |
+ V(kInputGPRIsExpectedToHaveUpper32Cleared, \ |
+ "input GPR is expected to have upper32 cleared") \ |
+ V(kInstanceofStubUnexpectedCallSiteCacheCheck, \ |
+ "InstanceofStub unexpected call site cache (check)") \ |
+ V(kInstanceofStubUnexpectedCallSiteCacheCmp1, \ |
+ "InstanceofStub unexpected call site cache (cmp 1)") \ |
+ V(kInstanceofStubUnexpectedCallSiteCacheCmp2, \ |
+ "InstanceofStub unexpected call site cache (cmp 2)") \ |
+ V(kInstanceofStubUnexpectedCallSiteCacheMov, \ |
+ "InstanceofStub unexpected call site cache (mov)") \ |
+ V(kInteger32ToSmiFieldWritingToNonSmiLocation, \ |
+ "Integer32ToSmiField writing to non-smi location") \ |
+ V(kInvalidCaptureReferenced, "Invalid capture referenced") \ |
+ V(kInvalidElementsKindForInternalArrayOrInternalPackedArray, \ |
+ "Invalid ElementsKind for InternalArray or InternalPackedArray") \ |
+ V(kInvalidFullCodegenState, "invalid full-codegen state") \ |
+ V(kInvalidHandleScopeLevel, "Invalid HandleScope level") \ |
+ V(kInvalidLeftHandSideInAssignment, "invalid left-hand side in assignment") \ |
+ V(kInvalidLhsInCompoundAssignment, "invalid lhs in compound assignment") \ |
+ V(kInvalidLhsInCountOperation, "invalid lhs in count operation") \ |
+ V(kInvalidMinLength, "Invalid min_length") \ |
+ V(kJSGlobalObjectNativeContextShouldBeANativeContext, \ |
+ "JSGlobalObject::native_context should be a native context") \ |
+ V(kJSGlobalProxyContextShouldNotBeNull, \ |
+ "JSGlobalProxy::context() should not be null") \ |
+ V(kJSObjectWithFastElementsMapHasSlowElements, \ |
+ "JSObject with fast elements map has slow elements") \ |
+ V(kLetBindingReInitialization, "Let binding re-initialization") \ |
+ V(kLhsHasBeenClobbered, "lhs has been clobbered") \ |
+ V(kLiveBytesCountOverflowChunkSize, "Live Bytes Count overflow chunk size") \ |
+ V(kLiveEditFrameDroppingIsNotSupportedOnA64, \ |
+ "LiveEdit frame dropping is not supported on a64") \ |
+ V(kLiveEditFrameDroppingIsNotSupportedOnArm, \ |
+ "LiveEdit frame dropping is not supported on arm") \ |
+ V(kLiveEditFrameDroppingIsNotSupportedOnMips, \ |
+ "LiveEdit frame dropping is not supported on mips") \ |
+ V(kLiveEdit, "LiveEdit") \ |
+ V(kLookupVariableInCountOperation, \ |
+ "lookup variable in count operation") \ |
+ V(kMapIsNoLongerInEax, "Map is no longer in eax") \ |
+ V(kNoCasesLeft, "no cases left") \ |
+ V(kNoEmptyArraysHereInEmitFastAsciiArrayJoin, \ |
+ "No empty arrays here in EmitFastAsciiArrayJoin") \ |
+ V(kNonInitializerAssignmentToConst, \ |
+ "non-initializer assignment to const") \ |
+ V(kNonSmiIndex, "Non-smi index") \ |
+ V(kNonSmiKeyInArrayLiteral, "Non-smi key in array literal") \ |
+ V(kNonSmiValue, "Non-smi value") \ |
+ V(kNotEnoughVirtualRegistersForValues, \ |
+ "not enough virtual registers for values") \ |
+ V(kNotEnoughVirtualRegistersRegalloc, \ |
+ "not enough virtual registers (regalloc)") \ |
+ V(kObjectFoundInSmiOnlyArray, "object found in smi-only array") \ |
+ V(kObjectLiteralWithComplexProperty, \ |
+ "Object literal with complex property") \ |
+ V(kOddballInStringTableIsNotUndefinedOrTheHole, \ |
+ "oddball in string table is not undefined or the hole") \ |
+ V(kOperandIsASmiAndNotAName, "Operand is a smi and not a name") \ |
+ V(kOperandIsASmiAndNotAString, "Operand is a smi and not a string") \ |
+ V(kOperandIsASmi, "Operand is a smi") \ |
+ V(kOperandIsNotAName, "Operand is not a name") \ |
+ V(kOperandIsNotANumber, "Operand is not a number") \ |
+ V(kOperandIsNotASmi, "Operand is not a smi") \ |
+ V(kOperandIsNotAString, "Operand is not a string") \ |
+ V(kOperandIsNotSmi, "Operand is not smi") \ |
+ V(kOperandNotANumber, "Operand not a number") \ |
+ V(kOptimizedTooManyTimes, "optimized too many times") \ |
+ V(kOutOfVirtualRegistersWhileTryingToAllocateTempRegister, \ |
+ "Out of virtual registers while trying to allocate temp register") \ |
+ V(kParseScopeError, "parse/scope error") \ |
+ V(kPossibleDirectCallToEval, "possible direct call to eval") \ |
+ V(kPreconditionsWereNotMet, "preconditions were not met") \ |
+ V(kPropertyAllocationCountFailed, "Property allocation count failed") \ |
+ V(kReceivedInvalidReturnAddress, "Received invalid return address") \ |
+ V(kReferenceToAVariableWhichRequiresDynamicLookup, \ |
+ "reference to a variable which requires dynamic lookup") \ |
+ V(kReferenceToGlobalLexicalVariable, \ |
+ "reference to global lexical variable") \ |
+ V(kReferenceToUninitializedVariable, "reference to uninitialized variable") \ |
+ V(kRegisterDidNotMatchExpectedRoot, "Register did not match expected root") \ |
+ V(kRegisterWasClobbered, "register was clobbered") \ |
+ V(kReturnAddressNotFoundInFrame, "return address not found in frame") \ |
+ V(kRhsHasBeenClobbered, "rhs has been clobbered") \ |
+ V(kScopedBlock, "ScopedBlock") \ |
+ V(kSharedFunctionInfoLiteral, "SharedFunctionInfoLiteral") \ |
+ V(kSmiAdditionOverflow, "Smi addition overflow") \ |
+ V(kSmiSubtractionOverflow, "Smi subtraction overflow") \ |
+ V(kStackAccessBelowStackPointer, "stack access below stack pointer") \ |
+ V(kStackFrameTypesMustMatch, "stack frame types must match") \ |
+ V(kSwitchStatementMixedOrNonLiteralSwitchLabels, \ |
+ "SwitchStatement: mixed or non-literal switch labels") \ |
+ V(kSwitchStatementTooManyClauses, "SwitchStatement: too many clauses") \ |
+ V(kTheCurrentStackPointerIsBelowCsp, \ |
+ "the current stack pointer is below csp") \ |
+ V(kTheInstructionShouldBeALui, "The instruction should be a lui") \ |
+ V(kTheInstructionShouldBeAnOri, "The instruction should be an ori") \ |
+ V(kTheInstructionToPatchShouldBeALoadFromPc, \ |
+ "The instruction to patch should be a load from pc") \ |
+ V(kTheInstructionToPatchShouldBeALui, \ |
+ "The instruction to patch should be a lui") \ |
+ V(kTheInstructionToPatchShouldBeAnOri, \ |
+ "The instruction to patch should be an ori") \ |
+ V(kTheSourceAndDestinationAreTheSame, \ |
+ "the source and destination are the same") \ |
+ V(kTheStackWasCorruptedByMacroAssemblerCall, \ |
+ "the stack was corrupted by MacroAssembler::Call()") \ |
+ V(kTooManyParametersLocals, "too many parameters/locals") \ |
+ V(kTooManyParameters, "too many parameters") \ |
+ V(kTooManySpillSlotsNeededForOSR, "Too many spill slots needed for OSR") \ |
+ V(kToOperandIsDoubleRegisterUnimplemented, \ |
+ "ToOperand IsDoubleRegister unimplemented") \ |
+ V(kToOperandUnsupportedDoubleImmediate, \ |
+ "ToOperand Unsupported double immediate") \ |
+ V(kTryCatchStatement, "TryCatchStatement") \ |
+ V(kTryFinallyStatement, "TryFinallyStatement") \ |
+ V(kUnableToEncodeValueAsSmi, "Unable to encode value as smi") \ |
+ V(kUnalignedAllocationInNewSpace, "Unaligned allocation in new space") \ |
+ V(kUndefinedValueNotLoaded, "Undefined value not loaded") \ |
+ V(kUndoAllocationOfNonAllocatedMemory, \ |
+ "Undo allocation of non allocated memory") \ |
+ V(kUnexpectedAllocationTop, "Unexpected allocation top") \ |
+ V(kUnexpectedElementsKindInArrayConstructor, \ |
+ "Unexpected ElementsKind in array constructor") \ |
+ V(kUnexpectedFallthroughFromCharCodeAtSlowCase, \ |
+ "Unexpected fallthrough from CharCodeAt slow case") \ |
+ V(kUnexpectedFallthroughFromCharFromCodeSlowCase, \ |
+ "Unexpected fallthrough from CharFromCode slow case") \ |
+ V(kUnexpectedFallThroughFromStringComparison, \ |
+ "Unexpected fall-through from string comparison") \ |
+ V(kUnexpectedFallThroughInBinaryStubGenerateFloatingPointCode, \ |
+ "Unexpected fall-through in BinaryStub_GenerateFloatingPointCode") \ |
+ V(kUnexpectedFallthroughToCharCodeAtSlowCase, \ |
+ "Unexpected fallthrough to CharCodeAt slow case") \ |
+ V(kUnexpectedFallthroughToCharFromCodeSlowCase, \ |
+ "Unexpected fallthrough to CharFromCode slow case") \ |
+ V(kUnexpectedFPUStackDepthAfterInstruction, \ |
+ "Unexpected FPU stack depth after instruction") \ |
+ V(kUnexpectedInitialMapForArrayFunction1, \ |
+ "Unexpected initial map for Array function (1)") \ |
+ V(kUnexpectedInitialMapForArrayFunction2, \ |
+ "Unexpected initial map for Array function (2)") \ |
+ V(kUnexpectedInitialMapForArrayFunction, \ |
+ "Unexpected initial map for Array function") \ |
+ V(kUnexpectedInitialMapForInternalArrayFunction, \ |
+ "Unexpected initial map for InternalArray function") \ |
+ V(kUnexpectedLevelAfterReturnFromApiCall, \ |
+ "Unexpected level after return from api call") \ |
+ V(kUnexpectedNumberOfPreAllocatedPropertyFields, \ |
+ "Unexpected number of pre-allocated property fields") \ |
+ V(kUnexpectedStringFunction, "Unexpected String function") \ |
+ V(kUnexpectedStringType, "Unexpected string type") \ |
+ V(kUnexpectedStringWrapperInstanceSize, \ |
+ "Unexpected string wrapper instance size") \ |
+ V(kUnexpectedTypeForRegExpDataFixedArrayExpected, \ |
+ "Unexpected type for RegExp data, FixedArray expected") \ |
+ V(kUnexpectedUnusedPropertiesOfStringWrapper, \ |
+ "Unexpected unused properties of string wrapper") \ |
+ V(kUnimplementedHydrogenInstruction, \ |
+ "unimplemented Hydrogen instruction") \ |
+ V(kUninitializedKSmiConstantRegister, "Uninitialized kSmiConstantRegister") \ |
+ V(kUnknown, "unknown") \ |
+ V(kUnsupportedConstCompoundAssignment, \ |
+ "unsupported const compound assignment") \ |
+ V(kUnsupportedCountOperationWithConst, \ |
+ "unsupported count operation with const") \ |
+ V(kUnsupportedDoubleImmediate, "unsupported double immediate") \ |
+ V(kUnsupportedLetCompoundAssignment, "unsupported let compound assignment") \ |
+ V(kUnsupportedLookupSlotInDeclaration, \ |
+ "unsupported lookup slot in declaration") \ |
+ V(kUnsupportedNonPrimitiveCompare, "Unsupported non-primitive compare") \ |
+ V(kUnsupportedPhiUseOfArguments, "Unsupported phi use of arguments") \ |
+ V(kUnsupportedPhiUseOfConstVariable, \ |
+ "Unsupported phi use of const variable") \ |
+ V(kUnsupportedTaggedImmediate, "unsupported tagged immediate") \ |
+ V(kVariableResolvedToWithContext, "Variable resolved to with context") \ |
+ V(kWeShouldNotHaveAnEmptyLexicalContext, \ |
+ "we should not have an empty lexical context") \ |
+ V(kWithStatement, "WithStatement") \ |
+ V(kWrongAddressOrValuePassedToRecordWrite, \ |
+ "Wrong address or value passed to RecordWrite") |
+ |
+ |
+#define ERROR_MESSAGES_CONSTANTS(C, T) C, |
+enum BailoutReason { |
+ ERROR_MESSAGES_LIST(ERROR_MESSAGES_CONSTANTS) |
+ kLastErrorMessage |
+}; |
+#undef ERROR_MESSAGES_CONSTANTS |
+ |
+ |
+const char* GetBailoutReason(BailoutReason reason); |
// Object is the abstract superclass for all classes in the |
@@ -5190,6 +5493,7 @@ class Map: public HeapObject { |
class IsObserved: public BitField<bool, 26, 1> {}; |
class Deprecated: public BitField<bool, 27, 1> {}; |
class IsFrozen: public BitField<bool, 28, 1> {}; |
+ class IsUnstable: public BitField<bool, 29, 1> {}; |
// Tells whether the object in the prototype property will be used |
// for instances created from this function. If the prototype |
@@ -5494,6 +5798,8 @@ class Map: public HeapObject { |
inline void set_is_observed(bool is_observed); |
inline void freeze(); |
inline bool is_frozen(); |
+ inline void mark_unstable(); |
+ inline bool is_stable(); |
inline void deprecate(); |
inline bool is_deprecated(); |
inline bool CanBeDeprecated(); |
@@ -5851,12 +6157,6 @@ class Script: public Struct { |
// [type]: the script type. |
DECL_ACCESSORS(type, Smi) |
- // [compilation]: how the the script was compiled. |
- DECL_ACCESSORS(compilation_type, Smi) |
- |
- // [is_compiled]: determines whether the script has already been compiled. |
- DECL_ACCESSORS(compilation_state, Smi) |
- |
// [line_ends]: FixedArray of line ends positions. |
DECL_ACCESSORS(line_ends, Object) |
@@ -5868,6 +6168,25 @@ class Script: public Struct { |
// function from which eval was called where eval was called. |
DECL_ACCESSORS(eval_from_instructions_offset, Smi) |
+ // [flags]: Holds an exciting bitfield. |
+ DECL_ACCESSORS(flags, Smi) |
+ |
+ // [compilation_type]: how the the script was compiled. Encoded in the |
+ // 'flags' field. |
+ inline CompilationType compilation_type(); |
+ inline void set_compilation_type(CompilationType type); |
+ |
+ // [compilation_state]: determines whether the script has already been |
+ // compiled. Encoded in the 'flags' field. |
+ inline CompilationState compilation_state(); |
+ inline void set_compilation_state(CompilationState state); |
+ |
+ // [is_shared_cross_origin]: An opaque boolean set by the embedder via |
+ // ScriptOrigin, and used by the embedder to make decisions about the |
+ // script's level of privilege. V8 just passes this through. Encoded in |
+ // the 'flags' field. |
+ DECL_BOOLEAN_ACCESSORS(is_shared_cross_origin) |
+ |
static inline Script* cast(Object* obj); |
// If script source is an external string, check that the underlying |
@@ -5886,17 +6205,21 @@ class Script: public Struct { |
static const int kContextOffset = kDataOffset + kPointerSize; |
static const int kWrapperOffset = kContextOffset + kPointerSize; |
static const int kTypeOffset = kWrapperOffset + kPointerSize; |
- static const int kCompilationTypeOffset = kTypeOffset + kPointerSize; |
- static const int kCompilationStateOffset = |
- kCompilationTypeOffset + kPointerSize; |
- static const int kLineEndsOffset = kCompilationStateOffset + kPointerSize; |
+ static const int kLineEndsOffset = kTypeOffset + kPointerSize; |
static const int kIdOffset = kLineEndsOffset + kPointerSize; |
static const int kEvalFromSharedOffset = kIdOffset + kPointerSize; |
static const int kEvalFrominstructionsOffsetOffset = |
kEvalFromSharedOffset + kPointerSize; |
- static const int kSize = kEvalFrominstructionsOffsetOffset + kPointerSize; |
+ static const int kFlagsOffset = |
+ kEvalFrominstructionsOffsetOffset + kPointerSize; |
+ static const int kSize = kFlagsOffset + kPointerSize; |
private: |
+ // Bit positions in the flags field. |
+ static const int kCompilationTypeBit = 0; |
+ static const int kCompilationStateBit = 1; |
+ static const int kIsSharedCrossOriginBit = 2; |
+ |
DISALLOW_IMPLICIT_CONSTRUCTORS(Script); |
}; |
@@ -6287,7 +6610,7 @@ class SharedFunctionInfo: public HeapObject { |
// Disable (further) attempted optimization of all functions sharing this |
// shared function info. |
- void DisableOptimization(const char* reason); |
+ void DisableOptimization(BailoutReason reason); |
// Lookup the bailout ID and ASSERT that it exists in the non-optimized |
// code, returns whether it asserted (i.e., always true if assertions are |