Ignore:
Timestamp:
Jun 19, 2009, 6:29:36 PM (16 years ago)
Author:
[email protected]
Message:

2009-06-19 Gavin Barraclough <[email protected]>

Reviewed by NOBODY (build fix take 2 - rename FIELD_OFFSET to something that doesn't conflict with winnt.h).

  • jit/JIT.cpp: (JSC::JIT::privateCompile): (JSC::JIT::privateCompileCTIMachineTrampolines): (JSC::JIT::emitGetVariableObjectRegister): (JSC::JIT::emitPutVariableObjectRegister):
  • jit/JIT.h:
  • jit/JITArithmetic.cpp: (JSC::JIT::emit_op_rshift): (JSC::JIT::emitSlow_op_jnless): (JSC::JIT::emitSlow_op_jnlesseq): (JSC::JIT::compileBinaryArithOp):
  • jit/JITCall.cpp: (JSC::JIT::compileOpCallInitializeCallFrame): (JSC::JIT::compileOpCall):
  • jit/JITInlineMethods.h: (JSC::JIT::restoreArgumentReference): (JSC::JIT::checkStructure):
  • jit/JITOpcodes.cpp: (JSC::JIT::emit_op_instanceof): (JSC::JIT::emit_op_get_scoped_var): (JSC::JIT::emit_op_put_scoped_var): (JSC::JIT::emit_op_construct_verify): (JSC::JIT::emit_op_resolve_global): (JSC::JIT::emit_op_jeq_null): (JSC::JIT::emit_op_jneq_null): (JSC::JIT::emit_op_to_jsnumber): (JSC::JIT::emit_op_catch): (JSC::JIT::emit_op_eq_null): (JSC::JIT::emit_op_neq_null): (JSC::JIT::emit_op_convert_this): (JSC::JIT::emit_op_profile_will_call): (JSC::JIT::emit_op_profile_did_call): (JSC::JIT::emitSlow_op_get_by_val):
  • jit/JITPropertyAccess.cpp: (JSC::JIT::emit_op_get_by_val): (JSC::JIT::emit_op_put_by_val): (JSC::JIT::emit_op_method_check): (JSC::JIT::compileGetByIdHotPath): (JSC::JIT::emit_op_put_by_id): (JSC::JIT::compilePutDirectOffset): (JSC::JIT::compileGetDirectOffset): (JSC::JIT::privateCompilePutByIdTransition): (JSC::JIT::privateCompilePatchGetArrayLength):
  • jit/JITStubs.cpp: (JSC::JITThunks::JITThunks):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/jit/JITStubs.cpp

    r44886 r44889  
    331331#if PLATFORM_ARM_ARCH(7)
    332332    // Unfortunate the arm compiler does not like the use of offsetof on JITStackFrame (since it contains non POD types),
    333     // and the FIELD_OFFSET macro does not appear constantish enough for it to be happy with its use in COMPILE_ASSERT
     333    // and the OBJECT_OFFSETOF macro does not appear constantish enough for it to be happy with its use in COMPILE_ASSERT
    334334    // 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);
    343343    // 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);
    347347#endif
    348348}
Note: See TracChangeset for help on using the changeset viewer.