Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(803)

Side by Side Diff: src/objects.h

Issue 131383004: [not for landing] Diff between a64 and r19234 for no-a64 files. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 19 matching lines...) Expand all
30 30
31 #include "allocation.h" 31 #include "allocation.h"
32 #include "assert-scope.h" 32 #include "assert-scope.h"
33 #include "builtins.h" 33 #include "builtins.h"
34 #include "elements-kind.h" 34 #include "elements-kind.h"
35 #include "flags.h" 35 #include "flags.h"
36 #include "list.h" 36 #include "list.h"
37 #include "property-details.h" 37 #include "property-details.h"
38 #include "smart-pointers.h" 38 #include "smart-pointers.h"
39 #include "unicode-inl.h" 39 #include "unicode-inl.h"
40 #if V8_TARGET_ARCH_ARM 40 #if V8_TARGET_ARCH_A64
41 #include "a64/constants-a64.h"
42 #elif V8_TARGET_ARCH_ARM
41 #include "arm/constants-arm.h" 43 #include "arm/constants-arm.h"
42 #elif V8_TARGET_ARCH_MIPS 44 #elif V8_TARGET_ARCH_MIPS
43 #include "mips/constants-mips.h" 45 #include "mips/constants-mips.h"
44 #endif 46 #endif
45 #include "v8checks.h" 47 #include "v8checks.h"
46 #include "zone.h" 48 #include "zone.h"
47 49
48 50
49 // 51 //
50 // Most object types in the V8 JavaScript are described in this file. 52 // Most object types in the V8 JavaScript are described in this file.
(...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 V(kBothRegistersWereSmisInSelectNonSmi, \ 1124 V(kBothRegistersWereSmisInSelectNonSmi, \
1123 "Both registers were smis in SelectNonSmi") \ 1125 "Both registers were smis in SelectNonSmi") \
1124 V(kCallToAJavaScriptRuntimeFunction, \ 1126 V(kCallToAJavaScriptRuntimeFunction, \
1125 "Call to a JavaScript runtime function") \ 1127 "Call to a JavaScript runtime function") \
1126 V(kCannotTranslatePositionInChangedArea, \ 1128 V(kCannotTranslatePositionInChangedArea, \
1127 "Cannot translate position in changed area") \ 1129 "Cannot translate position in changed area") \
1128 V(kCodeGenerationFailed, "Code generation failed") \ 1130 V(kCodeGenerationFailed, "Code generation failed") \
1129 V(kCodeObjectNotProperlyPatched, "Code object not properly patched") \ 1131 V(kCodeObjectNotProperlyPatched, "Code object not properly patched") \
1130 V(kCompoundAssignmentToLookupSlot, "Compound assignment to lookup slot") \ 1132 V(kCompoundAssignmentToLookupSlot, "Compound assignment to lookup slot") \
1131 V(kContextAllocatedArguments, "Context-allocated arguments") \ 1133 V(kContextAllocatedArguments, "Context-allocated arguments") \
1134 V(kCopyBuffersOverlap, "Copy buffers overlap") \
1135 V(kCouldNotGenerateZero, "Could not generate +0.0") \
1136 V(kCouldNotGenerateNegativeZero, "Could not generate -0.0") \
1132 V(kDebuggerIsActive, "Debugger is active") \ 1137 V(kDebuggerIsActive, "Debugger is active") \
1133 V(kDebuggerStatement, "DebuggerStatement") \ 1138 V(kDebuggerStatement, "DebuggerStatement") \
1134 V(kDeclarationInCatchContext, "Declaration in catch context") \ 1139 V(kDeclarationInCatchContext, "Declaration in catch context") \
1135 V(kDeclarationInWithContext, "Declaration in with context") \ 1140 V(kDeclarationInWithContext, "Declaration in with context") \
1136 V(kDefaultNaNModeNotSet, "Default NaN mode not set") \ 1141 V(kDefaultNaNModeNotSet, "Default NaN mode not set") \
1137 V(kDeleteWithGlobalVariable, "Delete with global variable") \ 1142 V(kDeleteWithGlobalVariable, "Delete with global variable") \
1138 V(kDeleteWithNonGlobalVariable, "Delete with non-global variable") \ 1143 V(kDeleteWithNonGlobalVariable, "Delete with non-global variable") \
1139 V(kDestinationOfCopyNotAligned, "Destination of copy not aligned") \ 1144 V(kDestinationOfCopyNotAligned, "Destination of copy not aligned") \
1140 V(kDontDeleteCellsCannotContainTheHole, \ 1145 V(kDontDeleteCellsCannotContainTheHole, \
1141 "DontDelete cells can't contain the hole") \ 1146 "DontDelete cells can't contain the hole") \
1142 V(kDoPushArgumentNotImplementedForDoubleType, \ 1147 V(kDoPushArgumentNotImplementedForDoubleType, \
1143 "DoPushArgument not implemented for double type") \ 1148 "DoPushArgument not implemented for double type") \
1149 V(kEliminatedBoundsCheckFailed, "Eliminated bounds check failed") \
1144 V(kEmitLoadRegisterUnsupportedDoubleImmediate, \ 1150 V(kEmitLoadRegisterUnsupportedDoubleImmediate, \
1145 "EmitLoadRegister: Unsupported double immediate") \ 1151 "EmitLoadRegister: Unsupported double immediate") \
1146 V(kEval, "eval") \ 1152 V(kEval, "eval") \
1147 V(kExpected0AsASmiSentinel, "Expected 0 as a Smi sentinel") \ 1153 V(kExpected0AsASmiSentinel, "Expected 0 as a Smi sentinel") \
1148 V(kExpectedAlignmentMarker, "expected alignment marker") \ 1154 V(kExpectedAlignmentMarker, "Expected alignment marker") \
1149 V(kExpectedAllocationSite, "expected allocation site") \ 1155 V(kExpectedAllocationSite, "Expected allocation site") \
1156 V(kExpectedFunctionObject, "Expected function object in register") \
1157 V(kExpectedHeapNumber, "Expected HeapNumber") \
1158 V(kExpectedNativeContext, "Expected native context") \
1159 V(kExpectedNonIdenticalObjects, "Expected non-identical objects") \
1160 V(kExpectedNonNullContext, "Expected non-null context") \
1161 V(kExpectedPositiveZero, "Expected +0.0") \
1162 V(kExpectedPropertyCellInTypeInfoCell, \
1163 "Expected property cell in type_info_cell") \
1164 V(kExpectedAllocationSiteInCell, \
1165 "Expected AllocationSite in property cell") \
1150 V(kExpectedPropertyCellInRegisterA2, \ 1166 V(kExpectedPropertyCellInRegisterA2, \
1151 "Expected property cell in register a2") \ 1167 "Expected property cell in register a2") \
1152 V(kExpectedPropertyCellInRegisterEbx, \ 1168 V(kExpectedPropertyCellInRegisterEbx, \
1153 "Expected property cell in register ebx") \ 1169 "Expected property cell in register ebx") \
1154 V(kExpectedPropertyCellInRegisterRbx, \ 1170 V(kExpectedPropertyCellInRegisterRbx, \
1155 "Expected property cell in register rbx") \ 1171 "Expected property cell in register rbx") \
1172 V(kExpectedSmiOrHeapNumber, "Expected smi or HeapNumber") \
1156 V(kExpectingAlignmentForCopyBytes, \ 1173 V(kExpectingAlignmentForCopyBytes, \
1157 "Expecting alignment for CopyBytes") \ 1174 "Expecting alignment for CopyBytes") \
1158 V(kExportDeclaration, "Export declaration") \ 1175 V(kExportDeclaration, "Export declaration") \
1159 V(kExternalStringExpectedButNotFound, \ 1176 V(kExternalStringExpectedButNotFound, \
1160 "External string expected, but not found") \ 1177 "External string expected, but not found") \
1161 V(kFailedBailedOutLastTime, "Failed/bailed out last time") \ 1178 V(kFailedBailedOutLastTime, "Failed/bailed out last time") \
1162 V(kForInStatementIsNotFastCase, "ForInStatement is not fast case") \ 1179 V(kForInStatementIsNotFastCase, "ForInStatement is not fast case") \
1163 V(kForInStatementOptimizationIsDisabled, \ 1180 V(kForInStatementOptimizationIsDisabled, \
1164 "ForInStatement optimization is disabled") \ 1181 "ForInStatement optimization is disabled") \
1165 V(kForInStatementWithNonLocalEachVariable, \ 1182 V(kForInStatementWithNonLocalEachVariable, \
(...skipping 24 matching lines...) Expand all
1190 "Inlined runtime function: GeneratorThrow") \ 1207 "Inlined runtime function: GeneratorThrow") \
1191 V(kInlinedRuntimeFunctionGetFromCache, \ 1208 V(kInlinedRuntimeFunctionGetFromCache, \
1192 "Inlined runtime function: GetFromCache") \ 1209 "Inlined runtime function: GetFromCache") \
1193 V(kInlinedRuntimeFunctionIsNonNegativeSmi, \ 1210 V(kInlinedRuntimeFunctionIsNonNegativeSmi, \
1194 "Inlined runtime function: IsNonNegativeSmi") \ 1211 "Inlined runtime function: IsNonNegativeSmi") \
1195 V(kInlinedRuntimeFunctionIsStringWrapperSafeForDefaultValueOf, \ 1212 V(kInlinedRuntimeFunctionIsStringWrapperSafeForDefaultValueOf, \
1196 "Inlined runtime function: IsStringWrapperSafeForDefaultValueOf") \ 1213 "Inlined runtime function: IsStringWrapperSafeForDefaultValueOf") \
1197 V(kInliningBailedOut, "Inlining bailed out") \ 1214 V(kInliningBailedOut, "Inlining bailed out") \
1198 V(kInputGPRIsExpectedToHaveUpper32Cleared, \ 1215 V(kInputGPRIsExpectedToHaveUpper32Cleared, \
1199 "Input GPR is expected to have upper32 cleared") \ 1216 "Input GPR is expected to have upper32 cleared") \
1217 V(kInputStringTooLong, "Input string too long") \
1200 V(kInstanceofStubUnexpectedCallSiteCacheCheck, \ 1218 V(kInstanceofStubUnexpectedCallSiteCacheCheck, \
1201 "InstanceofStub unexpected call site cache (check)") \ 1219 "InstanceofStub unexpected call site cache (check)") \
1202 V(kInstanceofStubUnexpectedCallSiteCacheCmp1, \ 1220 V(kInstanceofStubUnexpectedCallSiteCacheCmp1, \
1203 "InstanceofStub unexpected call site cache (cmp 1)") \ 1221 "InstanceofStub unexpected call site cache (cmp 1)") \
1204 V(kInstanceofStubUnexpectedCallSiteCacheCmp2, \ 1222 V(kInstanceofStubUnexpectedCallSiteCacheCmp2, \
1205 "InstanceofStub unexpected call site cache (cmp 2)") \ 1223 "InstanceofStub unexpected call site cache (cmp 2)") \
1206 V(kInstanceofStubUnexpectedCallSiteCacheMov, \ 1224 V(kInstanceofStubUnexpectedCallSiteCacheMov, \
1207 "InstanceofStub unexpected call site cache (mov)") \ 1225 "InstanceofStub unexpected call site cache (mov)") \
1208 V(kInteger32ToSmiFieldWritingToNonSmiLocation, \ 1226 V(kInteger32ToSmiFieldWritingToNonSmiLocation, \
1209 "Integer32ToSmiField writing to non-smi location") \ 1227 "Integer32ToSmiField writing to non-smi location") \
1210 V(kInvalidCaptureReferenced, "Invalid capture referenced") \ 1228 V(kInvalidCaptureReferenced, "Invalid capture referenced") \
1211 V(kInvalidElementsKindForInternalArrayOrInternalPackedArray, \ 1229 V(kInvalidElementsKindForInternalArrayOrInternalPackedArray, \
1212 "Invalid ElementsKind for InternalArray or InternalPackedArray") \ 1230 "Invalid ElementsKind for InternalArray or InternalPackedArray") \
1231 V(kInvalidFullCodegenState, "invalid full-codegen state") \
1213 V(kInvalidHandleScopeLevel, "Invalid HandleScope level") \ 1232 V(kInvalidHandleScopeLevel, "Invalid HandleScope level") \
1214 V(kInvalidLeftHandSideInAssignment, "Invalid left-hand side in assignment") \ 1233 V(kInvalidLeftHandSideInAssignment, "Invalid left-hand side in assignment") \
1215 V(kInvalidLhsInCompoundAssignment, "Invalid lhs in compound assignment") \ 1234 V(kInvalidLhsInCompoundAssignment, "Invalid lhs in compound assignment") \
1216 V(kInvalidLhsInCountOperation, "Invalid lhs in count operation") \ 1235 V(kInvalidLhsInCountOperation, "Invalid lhs in count operation") \
1217 V(kInvalidMinLength, "Invalid min_length") \ 1236 V(kInvalidMinLength, "Invalid min_length") \
1218 V(kJSGlobalObjectNativeContextShouldBeANativeContext, \ 1237 V(kJSGlobalObjectNativeContextShouldBeANativeContext, \
1219 "JSGlobalObject::native_context should be a native context") \ 1238 "JSGlobalObject::native_context should be a native context") \
1220 V(kJSGlobalProxyContextShouldNotBeNull, \ 1239 V(kJSGlobalProxyContextShouldNotBeNull, \
1221 "JSGlobalProxy::context() should not be null") \ 1240 "JSGlobalProxy::context() should not be null") \
1222 V(kJSObjectWithFastElementsMapHasSlowElements, \ 1241 V(kJSObjectWithFastElementsMapHasSlowElements, \
1223 "JSObject with fast elements map has slow elements") \ 1242 "JSObject with fast elements map has slow elements") \
1224 V(kLetBindingReInitialization, "Let binding re-initialization") \ 1243 V(kLetBindingReInitialization, "Let binding re-initialization") \
1244 V(kLhsHasBeenClobbered, "lhs has been clobbered") \
1225 V(kLiveBytesCountOverflowChunkSize, "Live Bytes Count overflow chunk size") \ 1245 V(kLiveBytesCountOverflowChunkSize, "Live Bytes Count overflow chunk size") \
1246 V(kLiveEditFrameDroppingIsNotSupportedOnA64, \
1247 "LiveEdit frame dropping is not supported on a64") \
1226 V(kLiveEditFrameDroppingIsNotSupportedOnArm, \ 1248 V(kLiveEditFrameDroppingIsNotSupportedOnArm, \
1227 "LiveEdit frame dropping is not supported on arm") \ 1249 "LiveEdit frame dropping is not supported on arm") \
1228 V(kLiveEditFrameDroppingIsNotSupportedOnMips, \ 1250 V(kLiveEditFrameDroppingIsNotSupportedOnMips, \
1229 "LiveEdit frame dropping is not supported on mips") \ 1251 "LiveEdit frame dropping is not supported on mips") \
1230 V(kLiveEdit, "LiveEdit") \ 1252 V(kLiveEdit, "LiveEdit") \
1231 V(kLookupVariableInCountOperation, \ 1253 V(kLookupVariableInCountOperation, \
1232 "Lookup variable in count operation") \ 1254 "Lookup variable in count operation") \
1233 V(kMapIsNoLongerInEax, "Map is no longer in eax") \ 1255 V(kMapIsNoLongerInEax, "Map is no longer in eax") \
1234 V(kModuleDeclaration, "Module declaration") \ 1256 V(kModuleDeclaration, "Module declaration") \
1235 V(kModuleLiteral, "Module literal") \ 1257 V(kModuleLiteral, "Module literal") \
(...skipping 15 matching lines...) Expand all
1251 "Not enough virtual registers for values") \ 1273 "Not enough virtual registers for values") \
1252 V(kNotEnoughSpillSlotsForOsr, \ 1274 V(kNotEnoughSpillSlotsForOsr, \
1253 "Not enough spill slots for OSR") \ 1275 "Not enough spill slots for OSR") \
1254 V(kNotEnoughVirtualRegistersRegalloc, \ 1276 V(kNotEnoughVirtualRegistersRegalloc, \
1255 "Not enough virtual registers (regalloc)") \ 1277 "Not enough virtual registers (regalloc)") \
1256 V(kObjectFoundInSmiOnlyArray, "Object found in smi-only array") \ 1278 V(kObjectFoundInSmiOnlyArray, "Object found in smi-only array") \
1257 V(kObjectLiteralWithComplexProperty, \ 1279 V(kObjectLiteralWithComplexProperty, \
1258 "Object literal with complex property") \ 1280 "Object literal with complex property") \
1259 V(kOddballInStringTableIsNotUndefinedOrTheHole, \ 1281 V(kOddballInStringTableIsNotUndefinedOrTheHole, \
1260 "Oddball in string table is not undefined or the hole") \ 1282 "Oddball in string table is not undefined or the hole") \
1283 V(kOffsetOutOfRange, "Offset out of range") \
1261 V(kOperandIsASmiAndNotAName, "Operand is a smi and not a name") \ 1284 V(kOperandIsASmiAndNotAName, "Operand is a smi and not a name") \
1262 V(kOperandIsASmiAndNotAString, "Operand is a smi and not a string") \ 1285 V(kOperandIsASmiAndNotAString, "Operand is a smi and not a string") \
1263 V(kOperandIsASmi, "Operand is a smi") \ 1286 V(kOperandIsASmi, "Operand is a smi") \
1264 V(kOperandIsNotAName, "Operand is not a name") \ 1287 V(kOperandIsNotAName, "Operand is not a name") \
1265 V(kOperandIsNotANumber, "Operand is not a number") \ 1288 V(kOperandIsNotANumber, "Operand is not a number") \
1266 V(kOperandIsNotASmi, "Operand is not a smi") \ 1289 V(kOperandIsNotASmi, "Operand is not a smi") \
1267 V(kOperandIsNotAString, "Operand is not a string") \ 1290 V(kOperandIsNotAString, "Operand is not a string") \
1268 V(kOperandIsNotSmi, "Operand is not smi") \ 1291 V(kOperandIsNotSmi, "Operand is not smi") \
1269 V(kOperandNotANumber, "Operand not a number") \ 1292 V(kOperandNotANumber, "Operand not a number") \
1270 V(kOptimizationDisabled, "Optimization is disabled") \ 1293 V(kOptimizationDisabled, "Optimization is disabled") \
1271 V(kOptimizedTooManyTimes, "Optimized too many times") \ 1294 V(kOptimizedTooManyTimes, "Optimized too many times") \
1272 V(kOutOfVirtualRegistersWhileTryingToAllocateTempRegister, \ 1295 V(kOutOfVirtualRegistersWhileTryingToAllocateTempRegister, \
1273 "Out of virtual registers while trying to allocate temp register") \ 1296 "Out of virtual registers while trying to allocate temp register") \
1274 V(kParseScopeError, "Parse/scope error") \ 1297 V(kParseScopeError, "Parse/scope error") \
1275 V(kPossibleDirectCallToEval, "Possible direct call to eval") \ 1298 V(kPossibleDirectCallToEval, "Possible direct call to eval") \
1299 V(kPreconditionsWereNotMet, "Preconditions were not met") \
1276 V(kPropertyAllocationCountFailed, "Property allocation count failed") \ 1300 V(kPropertyAllocationCountFailed, "Property allocation count failed") \
1277 V(kReceivedInvalidReturnAddress, "Received invalid return address") \ 1301 V(kReceivedInvalidReturnAddress, "Received invalid return address") \
1278 V(kReferenceToAVariableWhichRequiresDynamicLookup, \ 1302 V(kReferenceToAVariableWhichRequiresDynamicLookup, \
1279 "Reference to a variable which requires dynamic lookup") \ 1303 "Reference to a variable which requires dynamic lookup") \
1280 V(kReferenceToGlobalLexicalVariable, \ 1304 V(kReferenceToGlobalLexicalVariable, \
1281 "Reference to global lexical variable") \ 1305 "Reference to global lexical variable") \
1282 V(kReferenceToUninitializedVariable, "Reference to uninitialized variable") \ 1306 V(kReferenceToUninitializedVariable, "Reference to uninitialized variable") \
1283 V(kRegisterDidNotMatchExpectedRoot, "Register did not match expected root") \ 1307 V(kRegisterDidNotMatchExpectedRoot, "Register did not match expected root") \
1284 V(kRegisterWasClobbered, "Register was clobbered") \ 1308 V(kRegisterWasClobbered, "Register was clobbered") \
1309 V(kRememberedSetPointerInNewSpace, "Remembered set pointer is in new space") \
1310 V(kReturnAddressNotFoundInFrame, "Return address not found in frame") \
1311 V(kRhsHasBeenClobbered, "Rhs has been clobbered") \
1285 V(kScopedBlock, "ScopedBlock") \ 1312 V(kScopedBlock, "ScopedBlock") \
1286 V(kSmiAdditionOverflow, "Smi addition overflow") \ 1313 V(kSmiAdditionOverflow, "Smi addition overflow") \
1287 V(kSmiSubtractionOverflow, "Smi subtraction overflow") \ 1314 V(kSmiSubtractionOverflow, "Smi subtraction overflow") \
1315 V(kStackAccessBelowStackPointer, "Stack access below stack pointer") \
1288 V(kStackFrameTypesMustMatch, "Stack frame types must match") \ 1316 V(kStackFrameTypesMustMatch, "Stack frame types must match") \
1289 V(kSwitchStatementMixedOrNonLiteralSwitchLabels, \ 1317 V(kSwitchStatementMixedOrNonLiteralSwitchLabels, \
1290 "SwitchStatement: mixed or non-literal switch labels") \ 1318 "SwitchStatement: mixed or non-literal switch labels") \
1291 V(kSwitchStatementTooManyClauses, "SwitchStatement: too many clauses") \ 1319 V(kSwitchStatementTooManyClauses, "SwitchStatement: too many clauses") \
1320 V(kTheCurrentStackPointerIsBelowCsp, \
1321 "The current stack pointer is below csp") \
1292 V(kTheInstructionShouldBeALui, "The instruction should be a lui") \ 1322 V(kTheInstructionShouldBeALui, "The instruction should be a lui") \
1293 V(kTheInstructionShouldBeAnOri, "The instruction should be an ori") \ 1323 V(kTheInstructionShouldBeAnOri, "The instruction should be an ori") \
1294 V(kTheInstructionToPatchShouldBeALoadFromPc, \ 1324 V(kTheInstructionToPatchShouldBeALoadFromPc, \
1295 "The instruction to patch should be a load from pc") \ 1325 "The instruction to patch should be a load from pc") \
1326 V(kTheInstructionToPatchShouldBeAnLdrLiteral, \
1327 "The instruction to patch should be a ldr literal") \
1296 V(kTheInstructionToPatchShouldBeALui, \ 1328 V(kTheInstructionToPatchShouldBeALui, \
1297 "The instruction to patch should be a lui") \ 1329 "The instruction to patch should be a lui") \
1298 V(kTheInstructionToPatchShouldBeAnOri, \ 1330 V(kTheInstructionToPatchShouldBeAnOri, \
1299 "The instruction to patch should be an ori") \ 1331 "The instruction to patch should be an ori") \
1332 V(kTheSourceAndDestinationAreTheSame, \
1333 "The source and destination are the same") \
1334 V(kTheStackWasCorruptedByMacroAssemblerCall, \
1335 "The stack was corrupted by MacroAssembler::Call()") \
1300 V(kTooManyParametersLocals, "Too many parameters/locals") \ 1336 V(kTooManyParametersLocals, "Too many parameters/locals") \
1301 V(kTooManyParameters, "Too many parameters") \ 1337 V(kTooManyParameters, "Too many parameters") \
1302 V(kTooManySpillSlotsNeededForOSR, "Too many spill slots needed for OSR") \ 1338 V(kTooManySpillSlotsNeededForOSR, "Too many spill slots needed for OSR") \
1339 V(kToOperand32UnsupportedImmediate, "ToOperand32 unsupported immediate.") \
1303 V(kToOperandIsDoubleRegisterUnimplemented, \ 1340 V(kToOperandIsDoubleRegisterUnimplemented, \
1304 "ToOperand IsDoubleRegister unimplemented") \ 1341 "ToOperand IsDoubleRegister unimplemented") \
1305 V(kToOperandUnsupportedDoubleImmediate, \ 1342 V(kToOperandUnsupportedDoubleImmediate, \
1306 "ToOperand Unsupported double immediate") \ 1343 "ToOperand Unsupported double immediate") \
1307 V(kTryCatchStatement, "TryCatchStatement") \ 1344 V(kTryCatchStatement, "TryCatchStatement") \
1308 V(kTryFinallyStatement, "TryFinallyStatement") \ 1345 V(kTryFinallyStatement, "TryFinallyStatement") \
1309 V(kUnableToEncodeValueAsSmi, "Unable to encode value as smi") \ 1346 V(kUnableToEncodeValueAsSmi, "Unable to encode value as smi") \
1310 V(kUnalignedAllocationInNewSpace, "Unaligned allocation in new space") \ 1347 V(kUnalignedAllocationInNewSpace, "Unaligned allocation in new space") \
1348 V(kUnalignedCellInWriteBarrier, "Unaligned cell in write barrier") \
1311 V(kUndefinedValueNotLoaded, "Undefined value not loaded") \ 1349 V(kUndefinedValueNotLoaded, "Undefined value not loaded") \
1312 V(kUndoAllocationOfNonAllocatedMemory, \ 1350 V(kUndoAllocationOfNonAllocatedMemory, \
1313 "Undo allocation of non allocated memory") \ 1351 "Undo allocation of non allocated memory") \
1314 V(kUnexpectedAllocationTop, "Unexpected allocation top") \ 1352 V(kUnexpectedAllocationTop, "Unexpected allocation top") \
1353 V(kUnexpectedColorFound, "Unexpected color bit pattern found") \
1315 V(kUnexpectedElementsKindInArrayConstructor, \ 1354 V(kUnexpectedElementsKindInArrayConstructor, \
1316 "Unexpected ElementsKind in array constructor") \ 1355 "Unexpected ElementsKind in array constructor") \
1317 V(kUnexpectedFallthroughFromCharCodeAtSlowCase, \ 1356 V(kUnexpectedFallthroughFromCharCodeAtSlowCase, \
1318 "Unexpected fallthrough from CharCodeAt slow case") \ 1357 "Unexpected fallthrough from CharCodeAt slow case") \
1319 V(kUnexpectedFallthroughFromCharFromCodeSlowCase, \ 1358 V(kUnexpectedFallthroughFromCharFromCodeSlowCase, \
1320 "Unexpected fallthrough from CharFromCode slow case") \ 1359 "Unexpected fallthrough from CharFromCode slow case") \
1321 V(kUnexpectedFallThroughFromStringComparison, \ 1360 V(kUnexpectedFallThroughFromStringComparison, \
1322 "Unexpected fall-through from string comparison") \ 1361 "Unexpected fall-through from string comparison") \
1323 V(kUnexpectedFallThroughInBinaryStubGenerateFloatingPointCode, \ 1362 V(kUnexpectedFallThroughInBinaryStubGenerateFloatingPointCode, \
1324 "Unexpected fall-through in BinaryStub_GenerateFloatingPointCode") \ 1363 "Unexpected fall-through in BinaryStub_GenerateFloatingPointCode") \
1325 V(kUnexpectedFallthroughToCharCodeAtSlowCase, \ 1364 V(kUnexpectedFallthroughToCharCodeAtSlowCase, \
1326 "Unexpected fallthrough to CharCodeAt slow case") \ 1365 "Unexpected fallthrough to CharCodeAt slow case") \
1327 V(kUnexpectedFallthroughToCharFromCodeSlowCase, \ 1366 V(kUnexpectedFallthroughToCharFromCodeSlowCase, \
1328 "Unexpected fallthrough to CharFromCode slow case") \ 1367 "Unexpected fallthrough to CharFromCode slow case") \
1329 V(kUnexpectedFPUStackDepthAfterInstruction, \ 1368 V(kUnexpectedFPUStackDepthAfterInstruction, \
1330 "Unexpected FPU stack depth after instruction") \ 1369 "Unexpected FPU stack depth after instruction") \
1331 V(kUnexpectedInitialMapForArrayFunction1, \ 1370 V(kUnexpectedInitialMapForArrayFunction1, \
1332 "Unexpected initial map for Array function (1)") \ 1371 "Unexpected initial map for Array function (1)") \
1333 V(kUnexpectedInitialMapForArrayFunction2, \ 1372 V(kUnexpectedInitialMapForArrayFunction2, \
1334 "Unexpected initial map for Array function (2)") \ 1373 "Unexpected initial map for Array function (2)") \
1335 V(kUnexpectedInitialMapForArrayFunction, \ 1374 V(kUnexpectedInitialMapForArrayFunction, \
1336 "Unexpected initial map for Array function") \ 1375 "Unexpected initial map for Array function") \
1337 V(kUnexpectedInitialMapForInternalArrayFunction, \ 1376 V(kUnexpectedInitialMapForInternalArrayFunction, \
1338 "Unexpected initial map for InternalArray function") \ 1377 "Unexpected initial map for InternalArray function") \
1339 V(kUnexpectedLevelAfterReturnFromApiCall, \ 1378 V(kUnexpectedLevelAfterReturnFromApiCall, \
1340 "Unexpected level after return from api call") \ 1379 "Unexpected level after return from api call") \
1380 V(kUnexpectedNegativeValue, "Unexpected negative value") \
1341 V(kUnexpectedNumberOfPreAllocatedPropertyFields, \ 1381 V(kUnexpectedNumberOfPreAllocatedPropertyFields, \
1342 "Unexpected number of pre-allocated property fields") \ 1382 "Unexpected number of pre-allocated property fields") \
1383 V(kUnexpectedSmi, "Unexpected smi value") \
1343 V(kUnexpectedStringFunction, "Unexpected String function") \ 1384 V(kUnexpectedStringFunction, "Unexpected String function") \
1344 V(kUnexpectedStringType, "Unexpected string type") \ 1385 V(kUnexpectedStringType, "Unexpected string type") \
1345 V(kUnexpectedStringWrapperInstanceSize, \ 1386 V(kUnexpectedStringWrapperInstanceSize, \
1346 "Unexpected string wrapper instance size") \ 1387 "Unexpected string wrapper instance size") \
1347 V(kUnexpectedTypeForRegExpDataFixedArrayExpected, \ 1388 V(kUnexpectedTypeForRegExpDataFixedArrayExpected, \
1348 "Unexpected type for RegExp data, FixedArray expected") \ 1389 "Unexpected type for RegExp data, FixedArray expected") \
1390 V(kUnexpectedValue, "Unexpected value") \
1349 V(kUnexpectedUnusedPropertiesOfStringWrapper, \ 1391 V(kUnexpectedUnusedPropertiesOfStringWrapper, \
1350 "Unexpected unused properties of string wrapper") \ 1392 "Unexpected unused properties of string wrapper") \
1393 V(kUnimplemented, "unimplemented") \
1351 V(kUninitializedKSmiConstantRegister, "Uninitialized kSmiConstantRegister") \ 1394 V(kUninitializedKSmiConstantRegister, "Uninitialized kSmiConstantRegister") \
1352 V(kUnknown, "Unknown") \ 1395 V(kUnknown, "Unknown") \
1353 V(kUnsupportedConstCompoundAssignment, \ 1396 V(kUnsupportedConstCompoundAssignment, \
1354 "Unsupported const compound assignment") \ 1397 "Unsupported const compound assignment") \
1355 V(kUnsupportedCountOperationWithConst, \ 1398 V(kUnsupportedCountOperationWithConst, \
1356 "Unsupported count operation with const") \ 1399 "Unsupported count operation with const") \
1357 V(kUnsupportedDoubleImmediate, "Unsupported double immediate") \ 1400 V(kUnsupportedDoubleImmediate, "Unsupported double immediate") \
1358 V(kUnsupportedLetCompoundAssignment, "Unsupported let compound assignment") \ 1401 V(kUnsupportedLetCompoundAssignment, "Unsupported let compound assignment") \
1359 V(kUnsupportedLookupSlotInDeclaration, \ 1402 V(kUnsupportedLookupSlotInDeclaration, \
1360 "Unsupported lookup slot in declaration") \ 1403 "Unsupported lookup slot in declaration") \
(...skipping 7257 matching lines...) Expand 10 before | Expand all | Expand 10 after
8618 static const int kArrayIndexHashMask = (1 << kArrayIndexHashLengthShift) - 1; 8661 static const int kArrayIndexHashMask = (1 << kArrayIndexHashLengthShift) - 1;
8619 8662
8620 static const int kArrayIndexValueMask = 8663 static const int kArrayIndexValueMask =
8621 ((1 << kArrayIndexValueBits) - 1) << kHashShift; 8664 ((1 << kArrayIndexValueBits) - 1) << kHashShift;
8622 8665
8623 // Check that kMaxCachedArrayIndexLength + 1 is a power of two so we 8666 // Check that kMaxCachedArrayIndexLength + 1 is a power of two so we
8624 // could use a mask to test if the length of string is less than or equal to 8667 // could use a mask to test if the length of string is less than or equal to
8625 // kMaxCachedArrayIndexLength. 8668 // kMaxCachedArrayIndexLength.
8626 STATIC_CHECK(IS_POWER_OF_TWO(kMaxCachedArrayIndexLength + 1)); 8669 STATIC_CHECK(IS_POWER_OF_TWO(kMaxCachedArrayIndexLength + 1));
8627 8670
8628 static const int kContainsCachedArrayIndexMask = 8671 static const unsigned int kContainsCachedArrayIndexMask =
8629 (~kMaxCachedArrayIndexLength << kArrayIndexHashLengthShift) | 8672 (~kMaxCachedArrayIndexLength << kArrayIndexHashLengthShift) |
8630 kIsNotArrayIndexMask; 8673 kIsNotArrayIndexMask;
8631 8674
8632 // Value of empty hash field indicating that the hash is not computed. 8675 // Value of empty hash field indicating that the hash is not computed.
8633 static const int kEmptyHashField = 8676 static const int kEmptyHashField =
8634 kIsNotArrayIndexMask | kHashNotComputedMask; 8677 kIsNotArrayIndexMask | kHashNotComputedMask;
8635 8678
8636 protected: 8679 protected:
8637 static inline bool IsHashFieldComputed(uint32_t field); 8680 static inline bool IsHashFieldComputed(uint32_t field);
8638 8681
(...skipping 2122 matching lines...) Expand 10 before | Expand all | Expand 10 after
10761 } else { 10804 } else {
10762 value &= ~(1 << bit_position); 10805 value &= ~(1 << bit_position);
10763 } 10806 }
10764 return value; 10807 return value;
10765 } 10808 }
10766 }; 10809 };
10767 10810
10768 } } // namespace v8::internal 10811 } } // namespace v8::internal
10769 10812
10770 #endif // V8_OBJECTS_H_ 10813 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698