Changeset 153197 in webkit for trunk/Source/JavaScriptCore/assembler/MacroAssemblerARM.h
- Timestamp:
- Jul 24, 2013, 9:01:38 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/assembler/MacroAssemblerARM.h
r150748 r153197 1 1 /* 2 * Copyright (C) 2008 Apple Inc.2 * Copyright (C) 2008, 2013 Apple Inc. 3 3 * Copyright (C) 2009, 2010 University of Szeged 4 4 * All rights reserved. … … 36 36 namespace JSC { 37 37 38 struct JITStackFrame; 39 38 40 class MacroAssemblerARM : public AbstractMacroAssembler<ARMAssembler> { 39 41 static const int DoubleConditionMask = 0x0f; … … 1329 1331 } 1330 1332 1333 #if USE(MASM_PROBE) 1334 struct CPUState { 1335 #define DECLARE_REGISTER(_type, _regName) \ 1336 _type _regName; 1337 FOR_EACH_CPU_REGISTER(DECLARE_REGISTER) 1338 #undef DECLARE_REGISTER 1339 }; 1340 1341 struct ProbeContext; 1342 typedef void (*ProbeFunction)(struct ProbeContext*); 1343 1344 struct ProbeContext { 1345 ProbeFunction probeFunction; 1346 void* arg1; 1347 void* arg2; 1348 JITStackFrame* jitStackFrame; 1349 CPUState cpu; 1350 1351 void dump(const char* indentation = 0); 1352 private: 1353 void dumpCPURegisters(const char* indentation); 1354 }; 1355 1356 // For details about probe(), see comment in MacroAssemblerX86_64.h. 1357 void probe(ProbeFunction, void* arg1 = 0, void* arg2 = 0); 1358 #endif // USE(MASM_PROBE) 1359 1331 1360 protected: 1332 1361 ARMAssembler::Condition ARMCondition(RelationalCondition cond) … … 1384 1413 } 1385 1414 1415 #if USE(MASM_PROBE) 1416 inline TrustedImm32 trustedImm32FromPtr(void* ptr) 1417 { 1418 return TrustedImm32(TrustedImmPtr(ptr)); 1419 } 1420 1421 inline TrustedImm32 trustedImm32FromPtr(ProbeFunction function) 1422 { 1423 return TrustedImm32(TrustedImmPtr(reinterpret_cast<void*>(function))); 1424 } 1425 1426 inline TrustedImm32 trustedImm32FromPtr(void (*function)()) 1427 { 1428 return TrustedImm32(TrustedImmPtr(reinterpret_cast<void*>(function))); 1429 } 1430 #endif 1431 1386 1432 static const bool s_isVFPPresent; 1387 1433 };
Note:
See TracChangeset
for help on using the changeset viewer.