| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
| 10 #include "src/bailout-reason.h" |
| 10 #include "src/base/bits.h" | 11 #include "src/base/bits.h" |
| 11 #include "src/builtins.h" | 12 #include "src/builtins.h" |
| 12 #include "src/checks.h" | 13 #include "src/checks.h" |
| 13 #include "src/elements-kind.h" | 14 #include "src/elements-kind.h" |
| 14 #include "src/field-index.h" | 15 #include "src/field-index.h" |
| 15 #include "src/flags.h" | 16 #include "src/flags.h" |
| 16 #include "src/list.h" | 17 #include "src/list.h" |
| 17 #include "src/property-details.h" | 18 #include "src/property-details.h" |
| 18 #include "src/smart-pointers.h" | 19 #include "src/smart-pointers.h" |
| 19 #include "src/unicode-inl.h" | 20 #include "src/unicode-inl.h" |
| (...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 976 V(JSBuiltinsObject) \ | 977 V(JSBuiltinsObject) \ |
| 977 V(JSGlobalProxy) \ | 978 V(JSGlobalProxy) \ |
| 978 V(UndetectableObject) \ | 979 V(UndetectableObject) \ |
| 979 V(AccessCheckNeeded) \ | 980 V(AccessCheckNeeded) \ |
| 980 V(Cell) \ | 981 V(Cell) \ |
| 981 V(PropertyCell) \ | 982 V(PropertyCell) \ |
| 982 V(ObjectHashTable) \ | 983 V(ObjectHashTable) \ |
| 983 V(WeakHashTable) \ | 984 V(WeakHashTable) \ |
| 984 V(OrderedHashTable) | 985 V(OrderedHashTable) |
| 985 | 986 |
| 986 | |
| 987 #define ERROR_MESSAGES_LIST(V) \ | |
| 988 V(kNoReason, "no reason") \ | |
| 989 \ | |
| 990 V(k32BitValueInRegisterIsNotZeroExtended, \ | |
| 991 "32 bit value in register is not zero-extended") \ | |
| 992 V(kAlignmentMarkerExpected, "Alignment marker expected") \ | |
| 993 V(kAllocationIsNotDoubleAligned, "Allocation is not double aligned") \ | |
| 994 V(kAPICallReturnedInvalidObject, "API call returned invalid object") \ | |
| 995 V(kArgumentsObjectValueInATestContext, \ | |
| 996 "Arguments object value in a test context") \ | |
| 997 V(kArrayBoilerplateCreationFailed, "Array boilerplate creation failed") \ | |
| 998 V(kArrayIndexConstantValueTooBig, "Array index constant value too big") \ | |
| 999 V(kAssignmentToArguments, "Assignment to arguments") \ | |
| 1000 V(kAssignmentToLetVariableBeforeInitialization, \ | |
| 1001 "Assignment to let variable before initialization") \ | |
| 1002 V(kAssignmentToLOOKUPVariable, "Assignment to LOOKUP variable") \ | |
| 1003 V(kAssignmentToParameterFunctionUsesArgumentsObject, \ | |
| 1004 "Assignment to parameter, function uses arguments object") \ | |
| 1005 V(kAssignmentToParameterInArgumentsObject, \ | |
| 1006 "Assignment to parameter in arguments object") \ | |
| 1007 V(kAttemptToUseUndefinedCache, "Attempt to use undefined cache") \ | |
| 1008 V(kBadValueContextForArgumentsObjectValue, \ | |
| 1009 "Bad value context for arguments object value") \ | |
| 1010 V(kBadValueContextForArgumentsValue, \ | |
| 1011 "Bad value context for arguments value") \ | |
| 1012 V(kBailedOutDueToDependencyChange, "Bailed out due to dependency change") \ | |
| 1013 V(kBailoutWasNotPrepared, "Bailout was not prepared") \ | |
| 1014 V(kBinaryStubGenerateFloatingPointCode, \ | |
| 1015 "BinaryStub_GenerateFloatingPointCode") \ | |
| 1016 V(kBothRegistersWereSmisInSelectNonSmi, \ | |
| 1017 "Both registers were smis in SelectNonSmi") \ | |
| 1018 V(kCallToAJavaScriptRuntimeFunction, \ | |
| 1019 "Call to a JavaScript runtime function") \ | |
| 1020 V(kCannotTranslatePositionInChangedArea, \ | |
| 1021 "Cannot translate position in changed area") \ | |
| 1022 V(kClassLiteral, "Class literal") \ | |
| 1023 V(kCodeGenerationFailed, "Code generation failed") \ | |
| 1024 V(kCodeObjectNotProperlyPatched, "Code object not properly patched") \ | |
| 1025 V(kCompoundAssignmentToLookupSlot, "Compound assignment to lookup slot") \ | |
| 1026 V(kContextAllocatedArguments, "Context-allocated arguments") \ | |
| 1027 V(kCopyBuffersOverlap, "Copy buffers overlap") \ | |
| 1028 V(kCouldNotGenerateZero, "Could not generate +0.0") \ | |
| 1029 V(kCouldNotGenerateNegativeZero, "Could not generate -0.0") \ | |
| 1030 V(kDebuggerHasBreakPoints, "Debugger has break points") \ | |
| 1031 V(kDebuggerStatement, "DebuggerStatement") \ | |
| 1032 V(kDeclarationInCatchContext, "Declaration in catch context") \ | |
| 1033 V(kDeclarationInWithContext, "Declaration in with context") \ | |
| 1034 V(kDefaultNaNModeNotSet, "Default NaN mode not set") \ | |
| 1035 V(kDeleteWithGlobalVariable, "Delete with global variable") \ | |
| 1036 V(kDeleteWithNonGlobalVariable, "Delete with non-global variable") \ | |
| 1037 V(kDestinationOfCopyNotAligned, "Destination of copy not aligned") \ | |
| 1038 V(kDontDeleteCellsCannotContainTheHole, \ | |
| 1039 "DontDelete cells can't contain the hole") \ | |
| 1040 V(kDoPushArgumentNotImplementedForDoubleType, \ | |
| 1041 "DoPushArgument not implemented for double type") \ | |
| 1042 V(kEliminatedBoundsCheckFailed, "Eliminated bounds check failed") \ | |
| 1043 V(kEmitLoadRegisterUnsupportedDoubleImmediate, \ | |
| 1044 "EmitLoadRegister: Unsupported double immediate") \ | |
| 1045 V(kEval, "eval") \ | |
| 1046 V(kExpected0AsASmiSentinel, "Expected 0 as a Smi sentinel") \ | |
| 1047 V(kExpectedAlignmentMarker, "Expected alignment marker") \ | |
| 1048 V(kExpectedAllocationSite, "Expected allocation site") \ | |
| 1049 V(kExpectedFunctionObject, "Expected function object in register") \ | |
| 1050 V(kExpectedHeapNumber, "Expected HeapNumber") \ | |
| 1051 V(kExpectedNativeContext, "Expected native context") \ | |
| 1052 V(kExpectedNonIdenticalObjects, "Expected non-identical objects") \ | |
| 1053 V(kExpectedNonNullContext, "Expected non-null context") \ | |
| 1054 V(kExpectedPositiveZero, "Expected +0.0") \ | |
| 1055 V(kExpectedAllocationSiteInCell, "Expected AllocationSite in property cell") \ | |
| 1056 V(kExpectedFixedArrayInFeedbackVector, \ | |
| 1057 "Expected fixed array in feedback vector") \ | |
| 1058 V(kExpectedFixedArrayInRegisterA2, "Expected fixed array in register a2") \ | |
| 1059 V(kExpectedFixedArrayInRegisterEbx, "Expected fixed array in register ebx") \ | |
| 1060 V(kExpectedFixedArrayInRegisterR2, "Expected fixed array in register r2") \ | |
| 1061 V(kExpectedFixedArrayInRegisterRbx, "Expected fixed array in register rbx") \ | |
| 1062 V(kExpectedNewSpaceObject, "Expected new space object") \ | |
| 1063 V(kExpectedSmiOrHeapNumber, "Expected smi or HeapNumber") \ | |
| 1064 V(kExpectedUndefinedOrCell, "Expected undefined or cell in register") \ | |
| 1065 V(kExpectingAlignmentForCopyBytes, "Expecting alignment for CopyBytes") \ | |
| 1066 V(kExportDeclaration, "Export declaration") \ | |
| 1067 V(kExternalStringExpectedButNotFound, \ | |
| 1068 "External string expected, but not found") \ | |
| 1069 V(kFailedBailedOutLastTime, "Failed/bailed out last time") \ | |
| 1070 V(kForInStatementIsNotFastCase, "ForInStatement is not fast case") \ | |
| 1071 V(kForInStatementOptimizationIsDisabled, \ | |
| 1072 "ForInStatement optimization is disabled") \ | |
| 1073 V(kForInStatementWithNonLocalEachVariable, \ | |
| 1074 "ForInStatement with non-local each variable") \ | |
| 1075 V(kForOfStatement, "ForOfStatement") \ | |
| 1076 V(kFrameIsExpectedToBeAligned, "Frame is expected to be aligned") \ | |
| 1077 V(kFunctionCallsEval, "Function calls eval") \ | |
| 1078 V(kFunctionIsAGenerator, "Function is a generator") \ | |
| 1079 V(kFunctionWithIllegalRedeclaration, "Function with illegal redeclaration") \ | |
| 1080 V(kGeneratedCodeIsTooLarge, "Generated code is too large") \ | |
| 1081 V(kGeneratorFailedToResume, "Generator failed to resume") \ | |
| 1082 V(kGenerator, "Generator") \ | |
| 1083 V(kGlobalFunctionsMustHaveInitialMap, \ | |
| 1084 "Global functions must have initial map") \ | |
| 1085 V(kHeapNumberMapRegisterClobbered, "HeapNumberMap register clobbered") \ | |
| 1086 V(kHydrogenFilter, "Optimization disabled by filter") \ | |
| 1087 V(kImportDeclaration, "Import declaration") \ | |
| 1088 V(kImproperObjectOnPrototypeChainForStore, \ | |
| 1089 "Improper object on prototype chain for store") \ | |
| 1090 V(kIndexIsNegative, "Index is negative") \ | |
| 1091 V(kIndexIsTooLarge, "Index is too large") \ | |
| 1092 V(kInlinedRuntimeFunctionClassOf, "Inlined runtime function: ClassOf") \ | |
| 1093 V(kInlinedRuntimeFunctionFastOneByteArrayJoin, \ | |
| 1094 "Inlined runtime function: FastOneByteArrayJoin") \ | |
| 1095 V(kInlinedRuntimeFunctionGeneratorNext, \ | |
| 1096 "Inlined runtime function: GeneratorNext") \ | |
| 1097 V(kInlinedRuntimeFunctionGeneratorThrow, \ | |
| 1098 "Inlined runtime function: GeneratorThrow") \ | |
| 1099 V(kInlinedRuntimeFunctionGetFromCache, \ | |
| 1100 "Inlined runtime function: GetFromCache") \ | |
| 1101 V(kInlinedRuntimeFunctionIsNonNegativeSmi, \ | |
| 1102 "Inlined runtime function: IsNonNegativeSmi") \ | |
| 1103 V(kInlinedRuntimeFunctionIsStringWrapperSafeForDefaultValueOf, \ | |
| 1104 "Inlined runtime function: IsStringWrapperSafeForDefaultValueOf") \ | |
| 1105 V(kInliningBailedOut, "Inlining bailed out") \ | |
| 1106 V(kInputGPRIsExpectedToHaveUpper32Cleared, \ | |
| 1107 "Input GPR is expected to have upper32 cleared") \ | |
| 1108 V(kInputStringTooLong, "Input string too long") \ | |
| 1109 V(kInstanceofStubUnexpectedCallSiteCacheCheck, \ | |
| 1110 "InstanceofStub unexpected call site cache (check)") \ | |
| 1111 V(kInstanceofStubUnexpectedCallSiteCacheCmp1, \ | |
| 1112 "InstanceofStub unexpected call site cache (cmp 1)") \ | |
| 1113 V(kInstanceofStubUnexpectedCallSiteCacheCmp2, \ | |
| 1114 "InstanceofStub unexpected call site cache (cmp 2)") \ | |
| 1115 V(kInstanceofStubUnexpectedCallSiteCacheMov, \ | |
| 1116 "InstanceofStub unexpected call site cache (mov)") \ | |
| 1117 V(kInteger32ToSmiFieldWritingToNonSmiLocation, \ | |
| 1118 "Integer32ToSmiField writing to non-smi location") \ | |
| 1119 V(kInvalidCaptureReferenced, "Invalid capture referenced") \ | |
| 1120 V(kInvalidElementsKindForInternalArrayOrInternalPackedArray, \ | |
| 1121 "Invalid ElementsKind for InternalArray or InternalPackedArray") \ | |
| 1122 V(kInvalidFullCodegenState, "invalid full-codegen state") \ | |
| 1123 V(kInvalidHandleScopeLevel, "Invalid HandleScope level") \ | |
| 1124 V(kInvalidLeftHandSideInAssignment, "Invalid left-hand side in assignment") \ | |
| 1125 V(kInvalidLhsInCompoundAssignment, "Invalid lhs in compound assignment") \ | |
| 1126 V(kInvalidLhsInCountOperation, "Invalid lhs in count operation") \ | |
| 1127 V(kInvalidMinLength, "Invalid min_length") \ | |
| 1128 V(kJSGlobalObjectNativeContextShouldBeANativeContext, \ | |
| 1129 "JSGlobalObject::native_context should be a native context") \ | |
| 1130 V(kJSGlobalProxyContextShouldNotBeNull, \ | |
| 1131 "JSGlobalProxy::context() should not be null") \ | |
| 1132 V(kJSObjectWithFastElementsMapHasSlowElements, \ | |
| 1133 "JSObject with fast elements map has slow elements") \ | |
| 1134 V(kLetBindingReInitialization, "Let binding re-initialization") \ | |
| 1135 V(kLhsHasBeenClobbered, "lhs has been clobbered") \ | |
| 1136 V(kLiveBytesCountOverflowChunkSize, "Live Bytes Count overflow chunk size") \ | |
| 1137 V(kLiveEdit, "LiveEdit") \ | |
| 1138 V(kLookupVariableInCountOperation, "Lookup variable in count operation") \ | |
| 1139 V(kMapBecameDeprecated, "Map became deprecated") \ | |
| 1140 V(kMapBecameUnstable, "Map became unstable") \ | |
| 1141 V(kMapIsNoLongerInEax, "Map is no longer in eax") \ | |
| 1142 V(kModuleDeclaration, "Module declaration") \ | |
| 1143 V(kModuleLiteral, "Module literal") \ | |
| 1144 V(kModulePath, "Module path") \ | |
| 1145 V(kModuleStatement, "Module statement") \ | |
| 1146 V(kModuleVariable, "Module variable") \ | |
| 1147 V(kModuleUrl, "Module url") \ | |
| 1148 V(kNativeFunctionLiteral, "Native function literal") \ | |
| 1149 V(kSuperReference, "Super reference") \ | |
| 1150 V(kNeedSmiLiteral, "Need a Smi literal here") \ | |
| 1151 V(kNoCasesLeft, "No cases left") \ | |
| 1152 V(kNoEmptyArraysHereInEmitFastOneByteArrayJoin, \ | |
| 1153 "No empty arrays here in EmitFastOneByteArrayJoin") \ | |
| 1154 V(kNonInitializerAssignmentToConst, "Non-initializer assignment to const") \ | |
| 1155 V(kNonSmiIndex, "Non-smi index") \ | |
| 1156 V(kNonSmiKeyInArrayLiteral, "Non-smi key in array literal") \ | |
| 1157 V(kNonSmiValue, "Non-smi value") \ | |
| 1158 V(kNonObject, "Non-object value") \ | |
| 1159 V(kNotEnoughVirtualRegistersForValues, \ | |
| 1160 "Not enough virtual registers for values") \ | |
| 1161 V(kNotEnoughSpillSlotsForOsr, "Not enough spill slots for OSR") \ | |
| 1162 V(kNotEnoughVirtualRegistersRegalloc, \ | |
| 1163 "Not enough virtual registers (regalloc)") \ | |
| 1164 V(kObjectFoundInSmiOnlyArray, "Object found in smi-only array") \ | |
| 1165 V(kObjectLiteralWithComplexProperty, "Object literal with complex property") \ | |
| 1166 V(kOddballInStringTableIsNotUndefinedOrTheHole, \ | |
| 1167 "Oddball in string table is not undefined or the hole") \ | |
| 1168 V(kOffsetOutOfRange, "Offset out of range") \ | |
| 1169 V(kOperandIsASmiAndNotAName, "Operand is a smi and not a name") \ | |
| 1170 V(kOperandIsASmiAndNotAString, "Operand is a smi and not a string") \ | |
| 1171 V(kOperandIsASmi, "Operand is a smi") \ | |
| 1172 V(kOperandIsNotAName, "Operand is not a name") \ | |
| 1173 V(kOperandIsNotANumber, "Operand is not a number") \ | |
| 1174 V(kOperandIsNotASmi, "Operand is not a smi") \ | |
| 1175 V(kOperandIsNotAString, "Operand is not a string") \ | |
| 1176 V(kOperandIsNotSmi, "Operand is not smi") \ | |
| 1177 V(kOperandNotANumber, "Operand not a number") \ | |
| 1178 V(kObjectTagged, "The object is tagged") \ | |
| 1179 V(kObjectNotTagged, "The object is not tagged") \ | |
| 1180 V(kOptimizationDisabled, "Optimization is disabled") \ | |
| 1181 V(kOptimizedTooManyTimes, "Optimized too many times") \ | |
| 1182 V(kOutOfVirtualRegistersWhileTryingToAllocateTempRegister, \ | |
| 1183 "Out of virtual registers while trying to allocate temp register") \ | |
| 1184 V(kParseScopeError, "Parse/scope error") \ | |
| 1185 V(kPossibleDirectCallToEval, "Possible direct call to eval") \ | |
| 1186 V(kPreconditionsWereNotMet, "Preconditions were not met") \ | |
| 1187 V(kPropertyAllocationCountFailed, "Property allocation count failed") \ | |
| 1188 V(kReceivedInvalidReturnAddress, "Received invalid return address") \ | |
| 1189 V(kReferenceToAVariableWhichRequiresDynamicLookup, \ | |
| 1190 "Reference to a variable which requires dynamic lookup") \ | |
| 1191 V(kReferenceToGlobalLexicalVariable, "Reference to global lexical variable") \ | |
| 1192 V(kReferenceToUninitializedVariable, "Reference to uninitialized variable") \ | |
| 1193 V(kRegisterDidNotMatchExpectedRoot, "Register did not match expected root") \ | |
| 1194 V(kRegisterWasClobbered, "Register was clobbered") \ | |
| 1195 V(kRememberedSetPointerInNewSpace, "Remembered set pointer is in new space") \ | |
| 1196 V(kReturnAddressNotFoundInFrame, "Return address not found in frame") \ | |
| 1197 V(kRhsHasBeenClobbered, "Rhs has been clobbered") \ | |
| 1198 V(kScopedBlock, "ScopedBlock") \ | |
| 1199 V(kSmiAdditionOverflow, "Smi addition overflow") \ | |
| 1200 V(kSmiSubtractionOverflow, "Smi subtraction overflow") \ | |
| 1201 V(kStackAccessBelowStackPointer, "Stack access below stack pointer") \ | |
| 1202 V(kStackFrameTypesMustMatch, "Stack frame types must match") \ | |
| 1203 V(kTheCurrentStackPointerIsBelowCsp, \ | |
| 1204 "The current stack pointer is below csp") \ | |
| 1205 V(kTheInstructionShouldBeALui, "The instruction should be a lui") \ | |
| 1206 V(kTheInstructionShouldBeAnOri, "The instruction should be an ori") \ | |
| 1207 V(kTheInstructionToPatchShouldBeALoadFromConstantPool, \ | |
| 1208 "The instruction to patch should be a load from the constant pool") \ | |
| 1209 V(kTheInstructionToPatchShouldBeAnLdrLiteral, \ | |
| 1210 "The instruction to patch should be a ldr literal") \ | |
| 1211 V(kTheInstructionToPatchShouldBeALui, \ | |
| 1212 "The instruction to patch should be a lui") \ | |
| 1213 V(kTheInstructionToPatchShouldBeAnOri, \ | |
| 1214 "The instruction to patch should be an ori") \ | |
| 1215 V(kTheSourceAndDestinationAreTheSame, \ | |
| 1216 "The source and destination are the same") \ | |
| 1217 V(kTheStackPointerIsNotAligned, "The stack pointer is not aligned.") \ | |
| 1218 V(kTheStackWasCorruptedByMacroAssemblerCall, \ | |
| 1219 "The stack was corrupted by MacroAssembler::Call()") \ | |
| 1220 V(kTooManyParametersLocals, "Too many parameters/locals") \ | |
| 1221 V(kTooManyParameters, "Too many parameters") \ | |
| 1222 V(kTooManySpillSlotsNeededForOSR, "Too many spill slots needed for OSR") \ | |
| 1223 V(kToOperand32UnsupportedImmediate, "ToOperand32 unsupported immediate.") \ | |
| 1224 V(kToOperandIsDoubleRegisterUnimplemented, \ | |
| 1225 "ToOperand IsDoubleRegister unimplemented") \ | |
| 1226 V(kToOperandUnsupportedDoubleImmediate, \ | |
| 1227 "ToOperand Unsupported double immediate") \ | |
| 1228 V(kTryCatchStatement, "TryCatchStatement") \ | |
| 1229 V(kTryFinallyStatement, "TryFinallyStatement") \ | |
| 1230 V(kUnableToEncodeValueAsSmi, "Unable to encode value as smi") \ | |
| 1231 V(kUnalignedAllocationInNewSpace, "Unaligned allocation in new space") \ | |
| 1232 V(kUnalignedCellInWriteBarrier, "Unaligned cell in write barrier") \ | |
| 1233 V(kUndefinedValueNotLoaded, "Undefined value not loaded") \ | |
| 1234 V(kUndoAllocationOfNonAllocatedMemory, \ | |
| 1235 "Undo allocation of non allocated memory") \ | |
| 1236 V(kUnexpectedAllocationTop, "Unexpected allocation top") \ | |
| 1237 V(kUnexpectedColorFound, "Unexpected color bit pattern found") \ | |
| 1238 V(kUnexpectedElementsKindInArrayConstructor, \ | |
| 1239 "Unexpected ElementsKind in array constructor") \ | |
| 1240 V(kUnexpectedFallthroughFromCharCodeAtSlowCase, \ | |
| 1241 "Unexpected fallthrough from CharCodeAt slow case") \ | |
| 1242 V(kUnexpectedFallthroughFromCharFromCodeSlowCase, \ | |
| 1243 "Unexpected fallthrough from CharFromCode slow case") \ | |
| 1244 V(kUnexpectedFallThroughFromStringComparison, \ | |
| 1245 "Unexpected fall-through from string comparison") \ | |
| 1246 V(kUnexpectedFallThroughInBinaryStubGenerateFloatingPointCode, \ | |
| 1247 "Unexpected fall-through in BinaryStub_GenerateFloatingPointCode") \ | |
| 1248 V(kUnexpectedFallthroughToCharCodeAtSlowCase, \ | |
| 1249 "Unexpected fallthrough to CharCodeAt slow case") \ | |
| 1250 V(kUnexpectedFallthroughToCharFromCodeSlowCase, \ | |
| 1251 "Unexpected fallthrough to CharFromCode slow case") \ | |
| 1252 V(kUnexpectedFPUStackDepthAfterInstruction, \ | |
| 1253 "Unexpected FPU stack depth after instruction") \ | |
| 1254 V(kUnexpectedInitialMapForArrayFunction1, \ | |
| 1255 "Unexpected initial map for Array function (1)") \ | |
| 1256 V(kUnexpectedInitialMapForArrayFunction2, \ | |
| 1257 "Unexpected initial map for Array function (2)") \ | |
| 1258 V(kUnexpectedInitialMapForArrayFunction, \ | |
| 1259 "Unexpected initial map for Array function") \ | |
| 1260 V(kUnexpectedInitialMapForInternalArrayFunction, \ | |
| 1261 "Unexpected initial map for InternalArray function") \ | |
| 1262 V(kUnexpectedLevelAfterReturnFromApiCall, \ | |
| 1263 "Unexpected level after return from api call") \ | |
| 1264 V(kUnexpectedNegativeValue, "Unexpected negative value") \ | |
| 1265 V(kUnexpectedNumberOfPreAllocatedPropertyFields, \ | |
| 1266 "Unexpected number of pre-allocated property fields") \ | |
| 1267 V(kUnexpectedFPCRMode, "Unexpected FPCR mode.") \ | |
| 1268 V(kUnexpectedSmi, "Unexpected smi value") \ | |
| 1269 V(kUnexpectedStringFunction, "Unexpected String function") \ | |
| 1270 V(kUnexpectedStringType, "Unexpected string type") \ | |
| 1271 V(kUnexpectedStringWrapperInstanceSize, \ | |
| 1272 "Unexpected string wrapper instance size") \ | |
| 1273 V(kUnexpectedTypeForRegExpDataFixedArrayExpected, \ | |
| 1274 "Unexpected type for RegExp data, FixedArray expected") \ | |
| 1275 V(kUnexpectedValue, "Unexpected value") \ | |
| 1276 V(kUnexpectedUnusedPropertiesOfStringWrapper, \ | |
| 1277 "Unexpected unused properties of string wrapper") \ | |
| 1278 V(kUnimplemented, "unimplemented") \ | |
| 1279 V(kUninitializedKSmiConstantRegister, "Uninitialized kSmiConstantRegister") \ | |
| 1280 V(kUnknown, "Unknown") \ | |
| 1281 V(kUnsupportedConstCompoundAssignment, \ | |
| 1282 "Unsupported const compound assignment") \ | |
| 1283 V(kUnsupportedCountOperationWithConst, \ | |
| 1284 "Unsupported count operation with const") \ | |
| 1285 V(kUnsupportedDoubleImmediate, "Unsupported double immediate") \ | |
| 1286 V(kUnsupportedLetCompoundAssignment, "Unsupported let compound assignment") \ | |
| 1287 V(kUnsupportedLookupSlotInDeclaration, \ | |
| 1288 "Unsupported lookup slot in declaration") \ | |
| 1289 V(kUnsupportedNonPrimitiveCompare, "Unsupported non-primitive compare") \ | |
| 1290 V(kUnsupportedPhiUseOfArguments, "Unsupported phi use of arguments") \ | |
| 1291 V(kUnsupportedPhiUseOfConstVariable, \ | |
| 1292 "Unsupported phi use of const variable") \ | |
| 1293 V(kUnsupportedTaggedImmediate, "Unsupported tagged immediate") \ | |
| 1294 V(kVariableResolvedToWithContext, "Variable resolved to with context") \ | |
| 1295 V(kWeShouldNotHaveAnEmptyLexicalContext, \ | |
| 1296 "We should not have an empty lexical context") \ | |
| 1297 V(kWithStatement, "WithStatement") \ | |
| 1298 V(kWrongFunctionContext, "Wrong context passed to function") \ | |
| 1299 V(kWrongAddressOrValuePassedToRecordWrite, \ | |
| 1300 "Wrong address or value passed to RecordWrite") \ | |
| 1301 V(kYield, "Yield") | |
| 1302 | |
| 1303 | |
| 1304 #define ERROR_MESSAGES_CONSTANTS(C, T) C, | |
| 1305 enum BailoutReason { | |
| 1306 ERROR_MESSAGES_LIST(ERROR_MESSAGES_CONSTANTS) | |
| 1307 kLastErrorMessage | |
| 1308 }; | |
| 1309 #undef ERROR_MESSAGES_CONSTANTS | |
| 1310 | |
| 1311 | |
| 1312 const char* GetBailoutReason(BailoutReason reason); | |
| 1313 | |
| 1314 | |
| 1315 // Object is the abstract superclass for all classes in the | 987 // Object is the abstract superclass for all classes in the |
| 1316 // object hierarchy. | 988 // object hierarchy. |
| 1317 // Object does not use any virtual functions to avoid the | 989 // Object does not use any virtual functions to avoid the |
| 1318 // allocation of the C++ vtable. | 990 // allocation of the C++ vtable. |
| 1319 // Since both Smi and HeapObject are subclasses of Object no | 991 // Since both Smi and HeapObject are subclasses of Object no |
| 1320 // data members can be present in Object. | 992 // data members can be present in Object. |
| 1321 class Object { | 993 class Object { |
| 1322 public: | 994 public: |
| 1323 // Type testing. | 995 // Type testing. |
| 1324 bool IsObject() const { return true; } | 996 bool IsObject() const { return true; } |
| (...skipping 9806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11131 } else { | 10803 } else { |
| 11132 value &= ~(1 << bit_position); | 10804 value &= ~(1 << bit_position); |
| 11133 } | 10805 } |
| 11134 return value; | 10806 return value; |
| 11135 } | 10807 } |
| 11136 }; | 10808 }; |
| 11137 | 10809 |
| 11138 } } // namespace v8::internal | 10810 } } // namespace v8::internal |
| 11139 | 10811 |
| 11140 #endif // V8_OBJECTS_H_ | 10812 #endif // V8_OBJECTS_H_ |
| OLD | NEW |