Changeset 44889 in webkit for trunk/JavaScriptCore/jit/JITStubs.cpp
- Timestamp:
- Jun 19, 2009, 6:29:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jit/JITStubs.cpp
r44886 r44889 331 331 #if PLATFORM_ARM_ARCH(7) 332 332 // Unfortunate the arm compiler does not like the use of offsetof on JITStackFrame (since it contains non POD types), 333 // and the FIELD_OFFSETmacro does not appear constantish enough for it to be happy with its use in COMPILE_ASSERT333 // and the OBJECT_OFFSETOF macro does not appear constantish enough for it to be happy with its use in COMPILE_ASSERT 334 334 // macros. 335 ASSERT( FIELD_OFFSET(struct JITStackFrame, preservedReturnAddress) == 0x20);336 ASSERT( FIELD_OFFSET(struct JITStackFrame, preservedR4) == 0x24);337 ASSERT( FIELD_OFFSET(struct JITStackFrame, preservedR5) == 0x28);338 ASSERT( FIELD_OFFSET(struct JITStackFrame, preservedR6) == 0x2c);339 340 ASSERT( FIELD_OFFSET(struct JITStackFrame, registerFile) == 0x30);341 ASSERT( FIELD_OFFSET(struct JITStackFrame, callFrame) == 0x34);342 ASSERT( FIELD_OFFSET(struct JITStackFrame, exception) == 0x38);335 ASSERT(OBJECT_OFFSETOF(struct JITStackFrame, preservedReturnAddress) == 0x20); 336 ASSERT(OBJECT_OFFSETOF(struct JITStackFrame, preservedR4) == 0x24); 337 ASSERT(OBJECT_OFFSETOF(struct JITStackFrame, preservedR5) == 0x28); 338 ASSERT(OBJECT_OFFSETOF(struct JITStackFrame, preservedR6) == 0x2c); 339 340 ASSERT(OBJECT_OFFSETOF(struct JITStackFrame, registerFile) == 0x30); 341 ASSERT(OBJECT_OFFSETOF(struct JITStackFrame, callFrame) == 0x34); 342 ASSERT(OBJECT_OFFSETOF(struct JITStackFrame, exception) == 0x38); 343 343 // The fifth argument is the first item already on the stack. 344 ASSERT( FIELD_OFFSET(struct JITStackFrame, enabledProfilerReference) == 0x3c);345 346 ASSERT( FIELD_OFFSET(struct JITStackFrame, thunkReturnAddress) == 0x1C);344 ASSERT(OBJECT_OFFSETOF(struct JITStackFrame, enabledProfilerReference) == 0x3c); 345 346 ASSERT(OBJECT_OFFSETOF(struct JITStackFrame, thunkReturnAddress) == 0x1C); 347 347 #endif 348 348 }
Note:
See TracChangeset
for help on using the changeset viewer.