| OLD | NEW |
| 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 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1039 V(MapCache) \ | 1039 V(MapCache) \ |
| 1040 V(Primitive) \ | 1040 V(Primitive) \ |
| 1041 V(GlobalObject) \ | 1041 V(GlobalObject) \ |
| 1042 V(JSGlobalObject) \ | 1042 V(JSGlobalObject) \ |
| 1043 V(JSBuiltinsObject) \ | 1043 V(JSBuiltinsObject) \ |
| 1044 V(JSGlobalProxy) \ | 1044 V(JSGlobalProxy) \ |
| 1045 V(UndetectableObject) \ | 1045 V(UndetectableObject) \ |
| 1046 V(AccessCheckNeeded) \ | 1046 V(AccessCheckNeeded) \ |
| 1047 V(Cell) \ | 1047 V(Cell) \ |
| 1048 V(PropertyCell) \ | 1048 V(PropertyCell) \ |
| 1049 V(ObjectHashTable) | 1049 V(ObjectHashTable) \ |
| 1050 | |
| 1051 | |
| 1052 #define ERROR_MESSAGES_LIST(V) \ | |
| 1053 V(kNoReason, "no reason") \ | |
| 1054 \ | |
| 1055 V(k32BitValueInRegisterIsNotZeroExtended, \ | |
| 1056 "32 bit value in register is not zero-extended") \ | |
| 1057 V(kAlignmentMarkerExpected, "alignment marker expected") \ | |
| 1058 V(kAllocationIsNotDoubleAligned, "Allocation is not double aligned") \ | |
| 1059 V(kAPICallReturnedInvalidObject, "API call returned invalid object") \ | |
| 1060 V(kArgumentsObjectValueInATestContext, \ | |
| 1061 "arguments object value in a test context") \ | |
| 1062 V(kArrayBoilerplateCreationFailed, "array boilerplate creation failed") \ | |
| 1063 V(kArrayIndexConstantValueTooBig, "array index constant value too big") \ | |
| 1064 V(kAssignmentToArguments, "assignment to arguments") \ | |
| 1065 V(kAssignmentToLetVariableBeforeInitialization, \ | |
| 1066 "assignment to let variable before initialization") \ | |
| 1067 V(kAssignmentToLOOKUPVariable, "assignment to LOOKUP variable") \ | |
| 1068 V(kAssignmentToParameterFunctionUsesArgumentsObject, \ | |
| 1069 "assignment to parameter, function uses arguments object") \ | |
| 1070 V(kAssignmentToParameterInArgumentsObject, \ | |
| 1071 "assignment to parameter in arguments object") \ | |
| 1072 V(kAttemptToUseUndefinedCache, "Attempt to use undefined cache") \ | |
| 1073 V(kBadValueContextForArgumentsObjectValue, \ | |
| 1074 "bad value context for arguments object value") \ | |
| 1075 V(kBadValueContextForArgumentsValue, \ | |
| 1076 "bad value context for arguments value") \ | |
| 1077 V(kBailedOutDueToDependentMap, "bailed out due to dependent map") \ | |
| 1078 V(kBailoutWasNotPrepared, "bailout was not prepared") \ | |
| 1079 V(kBinaryStubGenerateFloatingPointCode, \ | |
| 1080 "BinaryStub_GenerateFloatingPointCode") \ | |
| 1081 V(kBothRegistersWereSmisInSelectNonSmi, \ | |
| 1082 "Both registers were smis in SelectNonSmi") \ | |
| 1083 V(kCallToAJavaScriptRuntimeFunction, \ | |
| 1084 "call to a JavaScript runtime function") \ | |
| 1085 V(kCannotTranslatePositionInChangedArea, \ | |
| 1086 "Cannot translate position in changed area") \ | |
| 1087 V(kCodeGenerationFailed, "code generation failed") \ | |
| 1088 V(kCodeObjectNotProperlyPatched, "code object not properly patched") \ | |
| 1089 V(kCompoundAssignmentToLookupSlot, "compound assignment to lookup slot") \ | |
| 1090 V(kContextAllocatedArguments, "context-allocated arguments") \ | |
| 1091 V(kDebuggerIsActive, "debugger is active") \ | |
| 1092 V(kDebuggerStatement, "DebuggerStatement") \ | |
| 1093 V(kDeclarationInCatchContext, "Declaration in catch context") \ | |
| 1094 V(kDeclarationInWithContext, "Declaration in with context") \ | |
| 1095 V(kDefaultNaNModeNotSet, "Default NaN mode not set") \ | |
| 1096 V(kDeleteWithGlobalVariable, "delete with global variable") \ | |
| 1097 V(kDeleteWithNonGlobalVariable, "delete with non-global variable") \ | |
| 1098 V(kDestinationOfCopyNotAligned, "Destination of copy not aligned") \ | |
| 1099 V(kDontDeleteCellsCannotContainTheHole, \ | |
| 1100 "DontDelete cells can't contain the hole") \ | |
| 1101 V(kDoPushArgumentNotImplementedForDoubleType, \ | |
| 1102 "DoPushArgument not implemented for double type") \ | |
| 1103 V(kEmitLoadRegisterUnsupportedDoubleImmediate, \ | |
| 1104 "EmitLoadRegister: Unsupported double immediate") \ | |
| 1105 V(kEval, "eval") \ | |
| 1106 V(kExpected0AsASmiSentinel, "Expected 0 as a Smi sentinel") \ | |
| 1107 V(kExpectedAlignmentMarker, "expected alignment marker") \ | |
| 1108 V(kExpectedPropertyCellInRegisterA2, \ | |
| 1109 "Expected property cell in register a2") \ | |
| 1110 V(kExpectedPropertyCellInRegisterEbx, \ | |
| 1111 "Expected property cell in register ebx") \ | |
| 1112 V(kExpectedPropertyCellInRegisterRbx, \ | |
| 1113 "Expected property cell in register rbx") \ | |
| 1114 V(kExpectingAlignmentForCopyBytes, \ | |
| 1115 "Expecting alignment for CopyBytes") \ | |
| 1116 V(kExternalStringExpectedButNotFound, \ | |
| 1117 "external string expected, but not found") \ | |
| 1118 V(kFailedBailedOutLastTime, "failed/bailed out last time") \ | |
| 1119 V(kForInStatementIsNotFastCase, "ForInStatement is not fast case") \ | |
| 1120 V(kForInStatementOptimizationIsDisabled, \ | |
| 1121 "ForInStatement optimization is disabled") \ | |
| 1122 V(kForInStatementWithNonLocalEachVariable, \ | |
| 1123 "ForInStatement with non-local each variable") \ | |
| 1124 V(kForOfStatement, "ForOfStatement") \ | |
| 1125 V(kFrameIsExpectedToBeAligned, "frame is expected to be aligned") \ | |
| 1126 V(kFunctionCallsEval, "function calls eval") \ | |
| 1127 V(kFunctionIsAGenerator, "function is a generator") \ | |
| 1128 V(kFunctionWithIllegalRedeclaration, "function with illegal redeclaration") \ | |
| 1129 V(kGeneratedCodeIsTooLarge, "Generated code is too large") \ | |
| 1130 V(kGeneratorFailedToResume, "Generator failed to resume") \ | |
| 1131 V(kGenerator, "generator") \ | |
| 1132 V(kGlobalFunctionsMustHaveInitialMap, \ | |
| 1133 "Global functions must have initial map") \ | |
| 1134 V(kHeapNumberMapRegisterClobbered, "HeapNumberMap register clobbered") \ | |
| 1135 V(kImproperObjectOnPrototypeChainForStore, \ | |
| 1136 "improper object on prototype chain for store") \ | |
| 1137 V(kIndexIsNegative, "Index is negative") \ | |
| 1138 V(kIndexIsTooLarge, "Index is too large") \ | |
| 1139 V(kInlinedRuntimeFunctionClassOf, "inlined runtime function: ClassOf") \ | |
| 1140 V(kInlinedRuntimeFunctionFastAsciiArrayJoin, \ | |
| 1141 "inlined runtime function: FastAsciiArrayJoin") \ | |
| 1142 V(kInlinedRuntimeFunctionGeneratorNext, \ | |
| 1143 "inlined runtime function: GeneratorNext") \ | |
| 1144 V(kInlinedRuntimeFunctionGeneratorThrow, \ | |
| 1145 "inlined runtime function: GeneratorThrow") \ | |
| 1146 V(kInlinedRuntimeFunctionGetFromCache, \ | |
| 1147 "inlined runtime function: GetFromCache") \ | |
| 1148 V(kInlinedRuntimeFunctionIsNonNegativeSmi, \ | |
| 1149 "inlined runtime function: IsNonNegativeSmi") \ | |
| 1150 V(kInlinedRuntimeFunctionIsRegExpEquivalent, \ | |
| 1151 "inlined runtime function: IsRegExpEquivalent") \ | |
| 1152 V(kInlinedRuntimeFunctionIsStringWrapperSafeForDefaultValueOf, \ | |
| 1153 "inlined runtime function: IsStringWrapperSafeForDefaultValueOf") \ | |
| 1154 V(kInliningBailedOut, "inlining bailed out") \ | |
| 1155 V(kInputGPRIsExpectedToHaveUpper32Cleared, \ | |
| 1156 "input GPR is expected to have upper32 cleared") \ | |
| 1157 V(kInstanceofStubUnexpectedCallSiteCacheCheck, \ | |
| 1158 "InstanceofStub unexpected call site cache (check)") \ | |
| 1159 V(kInstanceofStubUnexpectedCallSiteCacheCmp1, \ | |
| 1160 "InstanceofStub unexpected call site cache (cmp 1)") \ | |
| 1161 V(kInstanceofStubUnexpectedCallSiteCacheCmp2, \ | |
| 1162 "InstanceofStub unexpected call site cache (cmp 2)") \ | |
| 1163 V(kInstanceofStubUnexpectedCallSiteCacheMov, \ | |
| 1164 "InstanceofStub unexpected call site cache (mov)") \ | |
| 1165 V(kInteger32ToSmiFieldWritingToNonSmiLocation, \ | |
| 1166 "Integer32ToSmiField writing to non-smi location") \ | |
| 1167 V(kInvalidCaptureReferenced, "Invalid capture referenced") \ | |
| 1168 V(kInvalidElementsKindForInternalArrayOrInternalPackedArray, \ | |
| 1169 "Invalid ElementsKind for InternalArray or InternalPackedArray") \ | |
| 1170 V(kInvalidHandleScopeLevel, "Invalid HandleScope level") \ | |
| 1171 V(kInvalidLeftHandSideInAssignment, "invalid left-hand side in assignment") \ | |
| 1172 V(kInvalidLhsInCompoundAssignment, "invalid lhs in compound assignment") \ | |
| 1173 V(kInvalidLhsInCountOperation, "invalid lhs in count operation") \ | |
| 1174 V(kInvalidMinLength, "Invalid min_length") \ | |
| 1175 V(kJSGlobalObjectNativeContextShouldBeANativeContext, \ | |
| 1176 "JSGlobalObject::native_context should be a native context") \ | |
| 1177 V(kJSGlobalProxyContextShouldNotBeNull, \ | |
| 1178 "JSGlobalProxy::context() should not be null") \ | |
| 1179 V(kJSObjectWithFastElementsMapHasSlowElements, \ | |
| 1180 "JSObject with fast elements map has slow elements") \ | |
| 1181 V(kLetBindingReInitialization, "Let binding re-initialization") \ | |
| 1182 V(kLiveBytesCountOverflowChunkSize, "Live Bytes Count overflow chunk size") \ | |
| 1183 V(kLiveEditFrameDroppingIsNotSupportedOnArm, \ | |
| 1184 "LiveEdit frame dropping is not supported on arm") \ | |
| 1185 V(kLiveEditFrameDroppingIsNotSupportedOnMips, \ | |
| 1186 "LiveEdit frame dropping is not supported on mips") \ | |
| 1187 V(kLiveEdit, "LiveEdit") \ | |
| 1188 V(kLookupVariableInCountOperation, \ | |
| 1189 "lookup variable in count operation") \ | |
| 1190 V(kMapIsNoLongerInEax, "Map is no longer in eax") \ | |
| 1191 V(kNoCasesLeft, "no cases left") \ | |
| 1192 V(kNoEmptyArraysHereInEmitFastAsciiArrayJoin, \ | |
| 1193 "No empty arrays here in EmitFastAsciiArrayJoin") \ | |
| 1194 V(kNonInitializerAssignmentToConst, \ | |
| 1195 "non-initializer assignment to const") \ | |
| 1196 V(kNonSmiIndex, "Non-smi index") \ | |
| 1197 V(kNonSmiKeyInArrayLiteral, "Non-smi key in array literal") \ | |
| 1198 V(kNonSmiValue, "Non-smi value") \ | |
| 1199 V(kNotEnoughVirtualRegistersForValues, \ | |
| 1200 "not enough virtual registers for values") \ | |
| 1201 V(kNotEnoughVirtualRegistersRegalloc, \ | |
| 1202 "not enough virtual registers (regalloc)") \ | |
| 1203 V(kObjectFoundInSmiOnlyArray, "object found in smi-only array") \ | |
| 1204 V(kObjectLiteralWithComplexProperty, \ | |
| 1205 "Object literal with complex property") \ | |
| 1206 V(kOddballInStringTableIsNotUndefinedOrTheHole, \ | |
| 1207 "oddball in string table is not undefined or the hole") \ | |
| 1208 V(kOperandIsASmiAndNotAName, "Operand is a smi and not a name") \ | |
| 1209 V(kOperandIsASmiAndNotAString, "Operand is a smi and not a string") \ | |
| 1210 V(kOperandIsASmi, "Operand is a smi") \ | |
| 1211 V(kOperandIsNotAName, "Operand is not a name") \ | |
| 1212 V(kOperandIsNotANumber, "Operand is not a number") \ | |
| 1213 V(kOperandIsNotASmi, "Operand is not a smi") \ | |
| 1214 V(kOperandIsNotAString, "Operand is not a string") \ | |
| 1215 V(kOperandIsNotSmi, "Operand is not smi") \ | |
| 1216 V(kOperandNotANumber, "Operand not a number") \ | |
| 1217 V(kOptimizedTooManyTimes, "optimized too many times") \ | |
| 1218 V(kOutOfVirtualRegistersWhileTryingToAllocateTempRegister, \ | |
| 1219 "Out of virtual registers while trying to allocate temp register") \ | |
| 1220 V(kParseScopeError, "parse/scope error") \ | |
| 1221 V(kPossibleDirectCallToEval, "possible direct call to eval") \ | |
| 1222 V(kPropertyAllocationCountFailed, "Property allocation count failed") \ | |
| 1223 V(kReceivedInvalidReturnAddress, "Received invalid return address") \ | |
| 1224 V(kReferenceToAVariableWhichRequiresDynamicLookup, \ | |
| 1225 "reference to a variable which requires dynamic lookup") \ | |
| 1226 V(kReferenceToGlobalLexicalVariable, \ | |
| 1227 "reference to global lexical variable") \ | |
| 1228 V(kReferenceToUninitializedVariable, "reference to uninitialized variable") \ | |
| 1229 V(kRegisterDidNotMatchExpectedRoot, "Register did not match expected root") \ | |
| 1230 V(kRegisterWasClobbered, "register was clobbered") \ | |
| 1231 V(kScopedBlock, "ScopedBlock") \ | |
| 1232 V(kSharedFunctionInfoLiteral, "SharedFunctionInfoLiteral") \ | |
| 1233 V(kSmiAdditionOverflow, "Smi addition overflow") \ | |
| 1234 V(kSmiSubtractionOverflow, "Smi subtraction overflow") \ | |
| 1235 V(kStackFrameTypesMustMatch, "stack frame types must match") \ | |
| 1236 V(kSwitchStatementMixedOrNonLiteralSwitchLabels, \ | |
| 1237 "SwitchStatement: mixed or non-literal switch labels") \ | |
| 1238 V(kSwitchStatementTooManyClauses, "SwitchStatement: too many clauses") \ | |
| 1239 V(kTheInstructionShouldBeALui, "The instruction should be a lui") \ | |
| 1240 V(kTheInstructionShouldBeAnOri, "The instruction should be an ori") \ | |
| 1241 V(kTheInstructionToPatchShouldBeALoadFromPc, \ | |
| 1242 "The instruction to patch should be a load from pc") \ | |
| 1243 V(kTheInstructionToPatchShouldBeALui, \ | |
| 1244 "The instruction to patch should be a lui") \ | |
| 1245 V(kTheInstructionToPatchShouldBeAnOri, \ | |
| 1246 "The instruction to patch should be an ori") \ | |
| 1247 V(kTooManyParametersLocals, "too many parameters/locals") \ | |
| 1248 V(kTooManyParameters, "too many parameters") \ | |
| 1249 V(kTooManySpillSlotsNeededForOSR, "Too many spill slots needed for OSR") \ | |
| 1250 V(kToOperandIsDoubleRegisterUnimplemented, \ | |
| 1251 "ToOperand IsDoubleRegister unimplemented") \ | |
| 1252 V(kToOperandUnsupportedDoubleImmediate, \ | |
| 1253 "ToOperand Unsupported double immediate") \ | |
| 1254 V(kTryCatchStatement, "TryCatchStatement") \ | |
| 1255 V(kTryFinallyStatement, "TryFinallyStatement") \ | |
| 1256 V(kUnableToEncodeValueAsSmi, "Unable to encode value as smi") \ | |
| 1257 V(kUnalignedAllocationInNewSpace, "Unaligned allocation in new space") \ | |
| 1258 V(kUndefinedValueNotLoaded, "Undefined value not loaded") \ | |
| 1259 V(kUndoAllocationOfNonAllocatedMemory, \ | |
| 1260 "Undo allocation of non allocated memory") \ | |
| 1261 V(kUnexpectedAllocationTop, "Unexpected allocation top") \ | |
| 1262 V(kUnexpectedElementsKindInArrayConstructor, \ | |
| 1263 "Unexpected ElementsKind in array constructor") \ | |
| 1264 V(kUnexpectedFallthroughFromCharCodeAtSlowCase, \ | |
| 1265 "Unexpected fallthrough from CharCodeAt slow case") \ | |
| 1266 V(kUnexpectedFallthroughFromCharFromCodeSlowCase, \ | |
| 1267 "Unexpected fallthrough from CharFromCode slow case") \ | |
| 1268 V(kUnexpectedFallThroughFromStringComparison, \ | |
| 1269 "Unexpected fall-through from string comparison") \ | |
| 1270 V(kUnexpectedFallThroughInBinaryStubGenerateFloatingPointCode, \ | |
| 1271 "Unexpected fall-through in BinaryStub_GenerateFloatingPointCode") \ | |
| 1272 V(kUnexpectedFallthroughToCharCodeAtSlowCase, \ | |
| 1273 "Unexpected fallthrough to CharCodeAt slow case") \ | |
| 1274 V(kUnexpectedFallthroughToCharFromCodeSlowCase, \ | |
| 1275 "Unexpected fallthrough to CharFromCode slow case") \ | |
| 1276 V(kUnexpectedFPUStackDepthAfterInstruction, \ | |
| 1277 "Unexpected FPU stack depth after instruction") \ | |
| 1278 V(kUnexpectedInitialMapForArrayFunction1, \ | |
| 1279 "Unexpected initial map for Array function (1)") \ | |
| 1280 V(kUnexpectedInitialMapForArrayFunction2, \ | |
| 1281 "Unexpected initial map for Array function (2)") \ | |
| 1282 V(kUnexpectedInitialMapForArrayFunction, \ | |
| 1283 "Unexpected initial map for Array function") \ | |
| 1284 V(kUnexpectedInitialMapForInternalArrayFunction, \ | |
| 1285 "Unexpected initial map for InternalArray function") \ | |
| 1286 V(kUnexpectedLevelAfterReturnFromApiCall, \ | |
| 1287 "Unexpected level after return from api call") \ | |
| 1288 V(kUnexpectedNumberOfPreAllocatedPropertyFields, \ | |
| 1289 "Unexpected number of pre-allocated property fields") \ | |
| 1290 V(kUnexpectedStringFunction, "Unexpected String function") \ | |
| 1291 V(kUnexpectedStringType, "Unexpected string type") \ | |
| 1292 V(kUnexpectedStringWrapperInstanceSize, \ | |
| 1293 "Unexpected string wrapper instance size") \ | |
| 1294 V(kUnexpectedTypeForRegExpDataFixedArrayExpected, \ | |
| 1295 "Unexpected type for RegExp data, FixedArray expected") \ | |
| 1296 V(kUnexpectedUnusedPropertiesOfStringWrapper, \ | |
| 1297 "Unexpected unused properties of string wrapper") \ | |
| 1298 V(kUninitializedKSmiConstantRegister, "Uninitialized kSmiConstantRegister") \ | |
| 1299 V(kUnknown, "unknown") \ | |
| 1300 V(kUnsupportedConstCompoundAssignment, \ | |
| 1301 "unsupported const compound assignment") \ | |
| 1302 V(kUnsupportedCountOperationWithConst, \ | |
| 1303 "unsupported count operation with const") \ | |
| 1304 V(kUnsupportedDoubleImmediate, "unsupported double immediate") \ | |
| 1305 V(kUnsupportedLetCompoundAssignment, "unsupported let compound assignment") \ | |
| 1306 V(kUnsupportedLookupSlotInDeclaration, \ | |
| 1307 "unsupported lookup slot in declaration") \ | |
| 1308 V(kUnsupportedNonPrimitiveCompare, "Unsupported non-primitive compare") \ | |
| 1309 V(kUnsupportedPhiUseOfArguments, "Unsupported phi use of arguments") \ | |
| 1310 V(kUnsupportedPhiUseOfConstVariable, \ | |
| 1311 "Unsupported phi use of const variable") \ | |
| 1312 V(kUnsupportedTaggedImmediate, "unsupported tagged immediate") \ | |
| 1313 V(kVariableResolvedToWithContext, "Variable resolved to with context") \ | |
| 1314 V(kWeShouldNotHaveAnEmptyLexicalContext, \ | |
| 1315 "we should not have an empty lexical context") \ | |
| 1316 V(kWithStatement, "WithStatement") \ | |
| 1317 V(kWrongAddressOrValuePassedToRecordWrite, \ | |
| 1318 "Wrong address or value passed to RecordWrite") | |
| 1319 | |
| 1320 | |
| 1321 #define ERROR_MESSAGES_CONSTANTS(C, T) C, | |
| 1322 enum BailoutReason { | |
| 1323 ERROR_MESSAGES_LIST(ERROR_MESSAGES_CONSTANTS) | |
| 1324 kLastErrorMessage | |
| 1325 }; | |
| 1326 #undef ERROR_MESSAGES_CONSTANTS | |
| 1327 | |
| 1328 | |
| 1329 const char* GetBailoutReason(BailoutReason reason); | |
| 1330 | 1050 |
| 1331 | 1051 |
| 1332 // Object is the abstract superclass for all classes in the | 1052 // Object is the abstract superclass for all classes in the |
| 1333 // object hierarchy. | 1053 // object hierarchy. |
| 1334 // Object does not use any virtual functions to avoid the | 1054 // Object does not use any virtual functions to avoid the |
| 1335 // allocation of the C++ vtable. | 1055 // allocation of the C++ vtable. |
| 1336 // Since Smi and Failure are subclasses of Object no | 1056 // Since Smi and Failure are subclasses of Object no |
| 1337 // data members can be present in Object. | 1057 // data members can be present in Object. |
| 1338 class Object : public MaybeObject { | 1058 class Object : public MaybeObject { |
| 1339 public: | 1059 public: |
| (...skipping 3434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4774 V(BUILTIN) \ | 4494 V(BUILTIN) \ |
| 4775 V(REGEXP) | 4495 V(REGEXP) |
| 4776 | 4496 |
| 4777 #define IC_KIND_LIST(V) \ | 4497 #define IC_KIND_LIST(V) \ |
| 4778 V(LOAD_IC) \ | 4498 V(LOAD_IC) \ |
| 4779 V(KEYED_LOAD_IC) \ | 4499 V(KEYED_LOAD_IC) \ |
| 4780 V(CALL_IC) \ | 4500 V(CALL_IC) \ |
| 4781 V(KEYED_CALL_IC) \ | 4501 V(KEYED_CALL_IC) \ |
| 4782 V(STORE_IC) \ | 4502 V(STORE_IC) \ |
| 4783 V(KEYED_STORE_IC) \ | 4503 V(KEYED_STORE_IC) \ |
| 4504 V(UNARY_OP_IC) \ |
| 4784 V(BINARY_OP_IC) \ | 4505 V(BINARY_OP_IC) \ |
| 4785 V(COMPARE_IC) \ | 4506 V(COMPARE_IC) \ |
| 4786 V(COMPARE_NIL_IC) \ | 4507 V(COMPARE_NIL_IC) \ |
| 4787 V(TO_BOOLEAN_IC) | 4508 V(TO_BOOLEAN_IC) |
| 4788 | 4509 |
| 4789 #define CODE_KIND_LIST(V) \ | 4510 #define CODE_KIND_LIST(V) \ |
| 4790 NON_IC_KIND_LIST(V) \ | 4511 NON_IC_KIND_LIST(V) \ |
| 4791 IC_KIND_LIST(V) | 4512 IC_KIND_LIST(V) |
| 4792 | 4513 |
| 4793 enum Kind { | 4514 enum Kind { |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4892 inline Kind kind(); | 4613 inline Kind kind(); |
| 4893 inline InlineCacheState ic_state(); // Only valid for IC stubs. | 4614 inline InlineCacheState ic_state(); // Only valid for IC stubs. |
| 4894 inline ExtraICState extra_ic_state(); // Only valid for IC stubs. | 4615 inline ExtraICState extra_ic_state(); // Only valid for IC stubs. |
| 4895 | 4616 |
| 4896 inline ExtraICState extended_extra_ic_state(); // Only valid for | 4617 inline ExtraICState extended_extra_ic_state(); // Only valid for |
| 4897 // non-call IC stubs. | 4618 // non-call IC stubs. |
| 4898 static bool needs_extended_extra_ic_state(Kind kind) { | 4619 static bool needs_extended_extra_ic_state(Kind kind) { |
| 4899 // TODO(danno): This is a bit of a hack right now since there are still | 4620 // TODO(danno): This is a bit of a hack right now since there are still |
| 4900 // clients of this API that pass "extra" values in for argc. These clients | 4621 // clients of this API that pass "extra" values in for argc. These clients |
| 4901 // should be retrofitted to used ExtendedExtraICState. | 4622 // should be retrofitted to used ExtendedExtraICState. |
| 4902 return kind == COMPARE_NIL_IC || kind == TO_BOOLEAN_IC; | 4623 return kind == COMPARE_NIL_IC || kind == TO_BOOLEAN_IC || |
| 4624 kind == UNARY_OP_IC; |
| 4903 } | 4625 } |
| 4904 | 4626 |
| 4905 inline StubType type(); // Only valid for monomorphic IC stubs. | 4627 inline StubType type(); // Only valid for monomorphic IC stubs. |
| 4906 inline int arguments_count(); // Only valid for call IC stubs. | 4628 inline int arguments_count(); // Only valid for call IC stubs. |
| 4907 | 4629 |
| 4908 // Testers for IC stub kinds. | 4630 // Testers for IC stub kinds. |
| 4909 inline bool is_inline_cache_stub(); | 4631 inline bool is_inline_cache_stub(); |
| 4910 inline bool is_debug_break(); | 4632 inline bool is_debug_break(); |
| 4911 inline bool is_load_stub() { return kind() == LOAD_IC; } | 4633 inline bool is_load_stub() { return kind() == LOAD_IC; } |
| 4912 inline bool is_keyed_load_stub() { return kind() == KEYED_LOAD_IC; } | 4634 inline bool is_keyed_load_stub() { return kind() == KEYED_LOAD_IC; } |
| 4913 inline bool is_store_stub() { return kind() == STORE_IC; } | 4635 inline bool is_store_stub() { return kind() == STORE_IC; } |
| 4914 inline bool is_keyed_store_stub() { return kind() == KEYED_STORE_IC; } | 4636 inline bool is_keyed_store_stub() { return kind() == KEYED_STORE_IC; } |
| 4915 inline bool is_call_stub() { return kind() == CALL_IC; } | 4637 inline bool is_call_stub() { return kind() == CALL_IC; } |
| 4916 inline bool is_keyed_call_stub() { return kind() == KEYED_CALL_IC; } | 4638 inline bool is_keyed_call_stub() { return kind() == KEYED_CALL_IC; } |
| 4639 inline bool is_unary_op_stub() { return kind() == UNARY_OP_IC; } |
| 4917 inline bool is_binary_op_stub() { return kind() == BINARY_OP_IC; } | 4640 inline bool is_binary_op_stub() { return kind() == BINARY_OP_IC; } |
| 4918 inline bool is_compare_ic_stub() { return kind() == COMPARE_IC; } | 4641 inline bool is_compare_ic_stub() { return kind() == COMPARE_IC; } |
| 4919 inline bool is_compare_nil_ic_stub() { return kind() == COMPARE_NIL_IC; } | 4642 inline bool is_compare_nil_ic_stub() { return kind() == COMPARE_NIL_IC; } |
| 4920 inline bool is_to_boolean_ic_stub() { return kind() == TO_BOOLEAN_IC; } | 4643 inline bool is_to_boolean_ic_stub() { return kind() == TO_BOOLEAN_IC; } |
| 4921 | 4644 |
| 4922 // [major_key]: For kind STUB or BINARY_OP_IC, the major key. | 4645 // [major_key]: For kind STUB or BINARY_OP_IC, the major key. |
| 4923 inline int major_key(); | 4646 inline int major_key(); |
| 4924 inline void set_major_key(int value); | 4647 inline void set_major_key(int value); |
| 4925 | 4648 |
| 4926 // For kind STUB or ICs, tells whether or not a code object was generated by | 4649 // For kind STUB or ICs, tells whether or not a code object was generated by |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4980 inline void set_back_edge_table_offset(unsigned offset); | 4703 inline void set_back_edge_table_offset(unsigned offset); |
| 4981 | 4704 |
| 4982 inline bool back_edges_patched_for_osr(); | 4705 inline bool back_edges_patched_for_osr(); |
| 4983 inline void set_back_edges_patched_for_osr(bool value); | 4706 inline void set_back_edges_patched_for_osr(bool value); |
| 4984 | 4707 |
| 4985 // [check type]: For kind CALL_IC, tells how to check if the | 4708 // [check type]: For kind CALL_IC, tells how to check if the |
| 4986 // receiver is valid for the given call. | 4709 // receiver is valid for the given call. |
| 4987 inline CheckType check_type(); | 4710 inline CheckType check_type(); |
| 4988 inline void set_check_type(CheckType value); | 4711 inline void set_check_type(CheckType value); |
| 4989 | 4712 |
| 4713 // [type-recording unary op type]: For kind UNARY_OP_IC. |
| 4714 inline byte unary_op_type(); |
| 4715 inline void set_unary_op_type(byte value); |
| 4716 |
| 4990 // [to_boolean_foo]: For kind TO_BOOLEAN_IC tells what state the stub is in. | 4717 // [to_boolean_foo]: For kind TO_BOOLEAN_IC tells what state the stub is in. |
| 4991 inline byte to_boolean_state(); | 4718 inline byte to_boolean_state(); |
| 4992 | 4719 |
| 4993 // [has_function_cache]: For kind STUB tells whether there is a function | 4720 // [has_function_cache]: For kind STUB tells whether there is a function |
| 4994 // cache is passed to the stub. | 4721 // cache is passed to the stub. |
| 4995 inline bool has_function_cache(); | 4722 inline bool has_function_cache(); |
| 4996 inline void set_has_function_cache(bool flag); | 4723 inline void set_has_function_cache(bool flag); |
| 4997 | 4724 |
| 4998 | 4725 |
| 4999 // [marked_for_deoptimization]: For kind OPTIMIZED_FUNCTION tells whether | 4726 // [marked_for_deoptimization]: For kind OPTIMIZED_FUNCTION tells whether |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5218 class KindField: public BitField<Kind, 7, 4> {}; | 4945 class KindField: public BitField<Kind, 7, 4> {}; |
| 5219 class IsPregeneratedField: public BitField<bool, 11, 1> {}; | 4946 class IsPregeneratedField: public BitField<bool, 11, 1> {}; |
| 5220 class ExtraICStateField: public BitField<ExtraICState, 12, 5> {}; | 4947 class ExtraICStateField: public BitField<ExtraICState, 12, 5> {}; |
| 5221 class ExtendedExtraICStateField: public BitField<ExtraICState, 12, | 4948 class ExtendedExtraICStateField: public BitField<ExtraICState, 12, |
| 5222 PlatformSmiTagging::kSmiValueSize - 12 + 1> {}; // NOLINT | 4949 PlatformSmiTagging::kSmiValueSize - 12 + 1> {}; // NOLINT |
| 5223 STATIC_ASSERT(ExtraICStateField::kShift == ExtendedExtraICStateField::kShift); | 4950 STATIC_ASSERT(ExtraICStateField::kShift == ExtendedExtraICStateField::kShift); |
| 5224 | 4951 |
| 5225 // KindSpecificFlags1 layout (STUB and OPTIMIZED_FUNCTION) | 4952 // KindSpecificFlags1 layout (STUB and OPTIMIZED_FUNCTION) |
| 5226 static const int kStackSlotsFirstBit = 0; | 4953 static const int kStackSlotsFirstBit = 0; |
| 5227 static const int kStackSlotsBitCount = 24; | 4954 static const int kStackSlotsBitCount = 24; |
| 4955 static const int kUnaryOpTypeFirstBit = |
| 4956 kStackSlotsFirstBit + kStackSlotsBitCount; |
| 4957 static const int kUnaryOpTypeBitCount = 3; |
| 5228 static const int kHasFunctionCacheFirstBit = | 4958 static const int kHasFunctionCacheFirstBit = |
| 5229 kStackSlotsFirstBit + kStackSlotsBitCount; | 4959 kStackSlotsFirstBit + kStackSlotsBitCount; |
| 5230 static const int kHasFunctionCacheBitCount = 1; | 4960 static const int kHasFunctionCacheBitCount = 1; |
| 5231 static const int kMarkedForDeoptimizationFirstBit = | 4961 static const int kMarkedForDeoptimizationFirstBit = |
| 5232 kStackSlotsFirstBit + kStackSlotsBitCount + 1; | 4962 kStackSlotsFirstBit + kStackSlotsBitCount + 1; |
| 5233 static const int kMarkedForDeoptimizationBitCount = 1; | 4963 static const int kMarkedForDeoptimizationBitCount = 1; |
| 5234 | 4964 |
| 5235 STATIC_ASSERT(kStackSlotsFirstBit + kStackSlotsBitCount <= 32); | 4965 STATIC_ASSERT(kStackSlotsFirstBit + kStackSlotsBitCount <= 32); |
| 4966 STATIC_ASSERT(kUnaryOpTypeFirstBit + kUnaryOpTypeBitCount <= 32); |
| 5236 STATIC_ASSERT(kHasFunctionCacheFirstBit + kHasFunctionCacheBitCount <= 32); | 4967 STATIC_ASSERT(kHasFunctionCacheFirstBit + kHasFunctionCacheBitCount <= 32); |
| 5237 STATIC_ASSERT(kMarkedForDeoptimizationFirstBit + | 4968 STATIC_ASSERT(kMarkedForDeoptimizationFirstBit + |
| 5238 kMarkedForDeoptimizationBitCount <= 32); | 4969 kMarkedForDeoptimizationBitCount <= 32); |
| 5239 | 4970 |
| 5240 class StackSlotsField: public BitField<int, | 4971 class StackSlotsField: public BitField<int, |
| 5241 kStackSlotsFirstBit, kStackSlotsBitCount> {}; // NOLINT | 4972 kStackSlotsFirstBit, kStackSlotsBitCount> {}; // NOLINT |
| 4973 class UnaryOpTypeField: public BitField<int, |
| 4974 kUnaryOpTypeFirstBit, kUnaryOpTypeBitCount> {}; // NOLINT |
| 5242 class HasFunctionCacheField: public BitField<bool, | 4975 class HasFunctionCacheField: public BitField<bool, |
| 5243 kHasFunctionCacheFirstBit, kHasFunctionCacheBitCount> {}; // NOLINT | 4976 kHasFunctionCacheFirstBit, kHasFunctionCacheBitCount> {}; // NOLINT |
| 5244 class MarkedForDeoptimizationField: public BitField<bool, | 4977 class MarkedForDeoptimizationField: public BitField<bool, |
| 5245 kMarkedForDeoptimizationFirstBit, | 4978 kMarkedForDeoptimizationFirstBit, |
| 5246 kMarkedForDeoptimizationBitCount> {}; // NOLINT | 4979 kMarkedForDeoptimizationBitCount> {}; // NOLINT |
| 5247 | 4980 |
| 5248 // KindSpecificFlags2 layout (ALL) | 4981 // KindSpecificFlags2 layout (ALL) |
| 5249 static const int kIsCrankshaftedBit = 0; | 4982 static const int kIsCrankshaftedBit = 0; |
| 5250 class IsCrankshaftedField: public BitField<bool, | 4983 class IsCrankshaftedField: public BitField<bool, |
| 5251 kIsCrankshaftedBit, 1> {}; // NOLINT | 4984 kIsCrankshaftedBit, 1> {}; // NOLINT |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5436 | 5169 |
| 5437 // Bit field. | 5170 // Bit field. |
| 5438 inline byte bit_field(); | 5171 inline byte bit_field(); |
| 5439 inline void set_bit_field(byte value); | 5172 inline void set_bit_field(byte value); |
| 5440 | 5173 |
| 5441 // Bit field 2. | 5174 // Bit field 2. |
| 5442 inline byte bit_field2(); | 5175 inline byte bit_field2(); |
| 5443 inline void set_bit_field2(byte value); | 5176 inline void set_bit_field2(byte value); |
| 5444 | 5177 |
| 5445 // Bit field 3. | 5178 // Bit field 3. |
| 5446 inline uint32_t bit_field3(); | 5179 inline int bit_field3(); |
| 5447 inline void set_bit_field3(uint32_t bits); | 5180 inline void set_bit_field3(int value); |
| 5448 | 5181 |
| 5449 class EnumLengthBits: public BitField<int, 0, 11> {}; | 5182 class EnumLengthBits: public BitField<int, 0, 11> {}; |
| 5450 class NumberOfOwnDescriptorsBits: public BitField<int, 11, 11> {}; | 5183 class NumberOfOwnDescriptorsBits: public BitField<int, 11, 11> {}; |
| 5451 class IsShared: public BitField<bool, 22, 1> {}; | 5184 class IsShared: public BitField<bool, 22, 1> {}; |
| 5452 class FunctionWithPrototype: public BitField<bool, 23, 1> {}; | 5185 class FunctionWithPrototype: public BitField<bool, 23, 1> {}; |
| 5453 class DictionaryMap: public BitField<bool, 24, 1> {}; | 5186 class DictionaryMap: public BitField<bool, 24, 1> {}; |
| 5454 class OwnsDescriptors: public BitField<bool, 25, 1> {}; | 5187 class OwnsDescriptors: public BitField<bool, 25, 1> {}; |
| 5455 class IsObserved: public BitField<bool, 26, 1> {}; | 5188 class IsObserved: public BitField<bool, 26, 1> {}; |
| 5456 class Deprecated: public BitField<bool, 27, 1> {}; | 5189 class Deprecated: public BitField<bool, 27, 1> {}; |
| 5457 class IsFrozen: public BitField<bool, 28, 1> {}; | 5190 class IsFrozen: public BitField<bool, 28, 1> {}; |
| 5458 class IsUnstable: public BitField<bool, 29, 1> {}; | 5191 class IsUnstable: public BitField<bool, 29, 1> {}; |
| 5459 class IsMigrationTarget: public BitField<bool, 30, 1> {}; | |
| 5460 | 5192 |
| 5461 // Tells whether the object in the prototype property will be used | 5193 // Tells whether the object in the prototype property will be used |
| 5462 // for instances created from this function. If the prototype | 5194 // for instances created from this function. If the prototype |
| 5463 // property is set to a value that is not a JSObject, the prototype | 5195 // property is set to a value that is not a JSObject, the prototype |
| 5464 // property will not be used to create instances of the function. | 5196 // property will not be used to create instances of the function. |
| 5465 // See ECMA-262, 13.2.2. | 5197 // See ECMA-262, 13.2.2. |
| 5466 inline void set_non_instance_prototype(bool value); | 5198 inline void set_non_instance_prototype(bool value); |
| 5467 inline bool has_non_instance_prototype(); | 5199 inline bool has_non_instance_prototype(); |
| 5468 | 5200 |
| 5469 // Tells whether function has special prototype property. If not, prototype | 5201 // Tells whether function has special prototype property. If not, prototype |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5756 | 5488 |
| 5757 inline bool CanTrackAllocationSite(); | 5489 inline bool CanTrackAllocationSite(); |
| 5758 inline bool owns_descriptors(); | 5490 inline bool owns_descriptors(); |
| 5759 inline void set_owns_descriptors(bool is_shared); | 5491 inline void set_owns_descriptors(bool is_shared); |
| 5760 inline bool is_observed(); | 5492 inline bool is_observed(); |
| 5761 inline void set_is_observed(bool is_observed); | 5493 inline void set_is_observed(bool is_observed); |
| 5762 inline void freeze(); | 5494 inline void freeze(); |
| 5763 inline bool is_frozen(); | 5495 inline bool is_frozen(); |
| 5764 inline void mark_unstable(); | 5496 inline void mark_unstable(); |
| 5765 inline bool is_stable(); | 5497 inline bool is_stable(); |
| 5766 inline void set_migration_target(bool value); | |
| 5767 inline bool is_migration_target(); | |
| 5768 inline void deprecate(); | 5498 inline void deprecate(); |
| 5769 inline bool is_deprecated(); | 5499 inline bool is_deprecated(); |
| 5770 inline bool CanBeDeprecated(); | 5500 inline bool CanBeDeprecated(); |
| 5771 // Returns a non-deprecated version of the input. If the input was not | 5501 // Returns a non-deprecated version of the input. If the input was not |
| 5772 // deprecated, it is directly returned. Otherwise, the non-deprecated version | 5502 // deprecated, it is directly returned. Otherwise, the non-deprecated version |
| 5773 // is found by re-transitioning from the root of the transition tree using the | 5503 // is found by re-transitioning from the root of the transition tree using the |
| 5774 // descriptor array of the map. Returns NULL if no updated map is found. | 5504 // descriptor array of the map. Returns NULL if no updated map is found. |
| 5775 Map* CurrentMapForDeprecated(); | 5505 Map* CurrentMapForDeprecated(); |
| 5776 | 5506 |
| 5777 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size); | 5507 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size); |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5904 // Only JSObject and subtypes have map transitions and back pointers. | 5634 // Only JSObject and subtypes have map transitions and back pointers. |
| 5905 STATIC_ASSERT(LAST_TYPE == LAST_JS_OBJECT_TYPE); | 5635 STATIC_ASSERT(LAST_TYPE == LAST_JS_OBJECT_TYPE); |
| 5906 return instance_type() >= FIRST_JS_OBJECT_TYPE; | 5636 return instance_type() >= FIRST_JS_OBJECT_TYPE; |
| 5907 } | 5637 } |
| 5908 | 5638 |
| 5909 // Fires when the layout of an object with a leaf map changes. | 5639 // Fires when the layout of an object with a leaf map changes. |
| 5910 // This includes adding transitions to the leaf map or changing | 5640 // This includes adding transitions to the leaf map or changing |
| 5911 // the descriptor array. | 5641 // the descriptor array. |
| 5912 inline void NotifyLeafMapLayoutChange(); | 5642 inline void NotifyLeafMapLayoutChange(); |
| 5913 | 5643 |
| 5644 inline bool CanOmitPrototypeChecks(); |
| 5914 inline bool CanOmitMapChecks(); | 5645 inline bool CanOmitMapChecks(); |
| 5915 | 5646 |
| 5916 void AddDependentCompilationInfo(DependentCode::DependencyGroup group, | 5647 void AddDependentCompilationInfo(DependentCode::DependencyGroup group, |
| 5917 CompilationInfo* info); | 5648 CompilationInfo* info); |
| 5918 | 5649 |
| 5919 void AddDependentCode(DependentCode::DependencyGroup group, | 5650 void AddDependentCode(DependentCode::DependencyGroup group, |
| 5920 Handle<Code> code); | 5651 Handle<Code> code); |
| 5921 | 5652 |
| 5922 bool IsMapInArrayPrototypeChain(); | 5653 bool IsMapInArrayPrototypeChain(); |
| 5923 | 5654 |
| 5924 // Dispatched behavior. | 5655 // Dispatched behavior. |
| 5925 DECLARE_PRINTER(Map) | 5656 DECLARE_PRINTER(Map) |
| 5926 DECLARE_VERIFIER(Map) | 5657 DECLARE_VERIFIER(Map) |
| 5927 | 5658 |
| 5928 #ifdef VERIFY_HEAP | 5659 #ifdef VERIFY_HEAP |
| 5929 void SharedMapVerify(); | 5660 void SharedMapVerify(); |
| 5930 void VerifyOmittedMapChecks(); | 5661 void VerifyOmittedPrototypeChecks(); |
| 5931 #endif | 5662 #endif |
| 5932 | 5663 |
| 5933 inline int visitor_id(); | 5664 inline int visitor_id(); |
| 5934 inline void set_visitor_id(int visitor_id); | 5665 inline void set_visitor_id(int visitor_id); |
| 5935 | 5666 |
| 5936 typedef void (*TraverseCallback)(Map* map, void* data); | 5667 typedef void (*TraverseCallback)(Map* map, void* data); |
| 5937 | 5668 |
| 5938 void TraverseTransitionTree(TraverseCallback callback, void* data); | 5669 void TraverseTransitionTree(TraverseCallback callback, void* data); |
| 5939 | 5670 |
| 5940 // When you set the prototype of an object using the __proto__ accessor you | 5671 // When you set the prototype of an object using the __proto__ accessor you |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6567 | 6298 |
| 6568 // Indicates whether or not the code in the shared function support | 6299 // Indicates whether or not the code in the shared function support |
| 6569 // deoptimization. | 6300 // deoptimization. |
| 6570 inline bool has_deoptimization_support(); | 6301 inline bool has_deoptimization_support(); |
| 6571 | 6302 |
| 6572 // Enable deoptimization support through recompiled code. | 6303 // Enable deoptimization support through recompiled code. |
| 6573 void EnableDeoptimizationSupport(Code* recompiled); | 6304 void EnableDeoptimizationSupport(Code* recompiled); |
| 6574 | 6305 |
| 6575 // Disable (further) attempted optimization of all functions sharing this | 6306 // Disable (further) attempted optimization of all functions sharing this |
| 6576 // shared function info. | 6307 // shared function info. |
| 6577 void DisableOptimization(BailoutReason reason); | 6308 void DisableOptimization(const char* reason); |
| 6578 | 6309 |
| 6579 // Lookup the bailout ID and ASSERT that it exists in the non-optimized | 6310 // Lookup the bailout ID and ASSERT that it exists in the non-optimized |
| 6580 // code, returns whether it asserted (i.e., always true if assertions are | 6311 // code, returns whether it asserted (i.e., always true if assertions are |
| 6581 // disabled). | 6312 // disabled). |
| 6582 bool VerifyBailoutId(BailoutId id); | 6313 bool VerifyBailoutId(BailoutId id); |
| 6583 | 6314 |
| 6584 // [source code]: Source code for the function. | 6315 // [source code]: Source code for the function. |
| 6585 bool HasSourceCode(); | 6316 bool HasSourceCode(); |
| 6586 Handle<Object> GetSourceCode(); | 6317 Handle<Object> GetSourceCode(); |
| 6587 | 6318 |
| (...skipping 3461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10049 V(kStrongRootList, "strong_root_list", "(Strong roots)") \ | 9780 V(kStrongRootList, "strong_root_list", "(Strong roots)") \ |
| 10050 V(kInternalizedString, "internalized_string", "(Internal string)") \ | 9781 V(kInternalizedString, "internalized_string", "(Internal string)") \ |
| 10051 V(kBootstrapper, "bootstrapper", "(Bootstrapper)") \ | 9782 V(kBootstrapper, "bootstrapper", "(Bootstrapper)") \ |
| 10052 V(kTop, "top", "(Isolate)") \ | 9783 V(kTop, "top", "(Isolate)") \ |
| 10053 V(kRelocatable, "relocatable", "(Relocatable)") \ | 9784 V(kRelocatable, "relocatable", "(Relocatable)") \ |
| 10054 V(kDebug, "debug", "(Debugger)") \ | 9785 V(kDebug, "debug", "(Debugger)") \ |
| 10055 V(kCompilationCache, "compilationcache", "(Compilation cache)") \ | 9786 V(kCompilationCache, "compilationcache", "(Compilation cache)") \ |
| 10056 V(kHandleScope, "handlescope", "(Handle scope)") \ | 9787 V(kHandleScope, "handlescope", "(Handle scope)") \ |
| 10057 V(kBuiltins, "builtins", "(Builtins)") \ | 9788 V(kBuiltins, "builtins", "(Builtins)") \ |
| 10058 V(kGlobalHandles, "globalhandles", "(Global handles)") \ | 9789 V(kGlobalHandles, "globalhandles", "(Global handles)") \ |
| 10059 V(kEternalHandles, "eternalhandles", "(Eternal handles)") \ | |
| 10060 V(kThreadManager, "threadmanager", "(Thread manager)") \ | 9790 V(kThreadManager, "threadmanager", "(Thread manager)") \ |
| 10061 V(kExtensions, "Extensions", "(Extensions)") | 9791 V(kExtensions, "Extensions", "(Extensions)") |
| 10062 | 9792 |
| 10063 class VisitorSynchronization : public AllStatic { | 9793 class VisitorSynchronization : public AllStatic { |
| 10064 public: | 9794 public: |
| 10065 #define DECLARE_ENUM(enum_item, ignore1, ignore2) enum_item, | 9795 #define DECLARE_ENUM(enum_item, ignore1, ignore2) enum_item, |
| 10066 enum SyncTag { | 9796 enum SyncTag { |
| 10067 VISITOR_SYNCHRONIZATION_TAGS_LIST(DECLARE_ENUM) | 9797 VISITOR_SYNCHRONIZATION_TAGS_LIST(DECLARE_ENUM) |
| 10068 kNumberOfSyncTags | 9798 kNumberOfSyncTags |
| 10069 }; | 9799 }; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10169 } else { | 9899 } else { |
| 10170 value &= ~(1 << bit_position); | 9900 value &= ~(1 << bit_position); |
| 10171 } | 9901 } |
| 10172 return value; | 9902 return value; |
| 10173 } | 9903 } |
| 10174 }; | 9904 }; |
| 10175 | 9905 |
| 10176 } } // namespace v8::internal | 9906 } } // namespace v8::internal |
| 10177 | 9907 |
| 10178 #endif // V8_OBJECTS_H_ | 9908 #endif // V8_OBJECTS_H_ |
| OLD | NEW |