Changeset 90232 in webkit
- Timestamp:
- Jul 1, 2011, 9:18:48 AM (15 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
jit/JITOpcodes32_64.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r90215 r90232 1 2011-07-01 David Kilzer <ddkilzer@apple.com> 2 3 <http://webkit.org/b/63814> Fix clang build error in JITOpcodes32_64.cpp 4 5 Fixes the following build error in clang: 6 7 JavaScriptCore/jit/JITOpcodes32_64.cpp:741:36:{741:9-741:35}: error: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Werror,-Wparentheses,3] 8 map(m_bytecodeOffset + dynamic ? OPCODE_LENGTH(op_resolve_global_dynamic) : OPCODE_LENGTH(op_resolve_global), dst, regT1, regT0); 9 ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ 10 JavaScriptCore/jit/JITOpcodes32_64.cpp:741:36: note: place parentheses around the '+' expression to silence this warning [3] 11 map(m_bytecodeOffset + dynamic ? OPCODE_LENGTH(op_resolve_global_dynamic) : OPCODE_LENGTH(op_resolve_global), dst, regT1, regT0); 12 ^ 13 ( ) 14 fix-it:"JavaScriptCore/jit/JITOpcodes32_64.cpp":{741:9-741:9}:"(" 15 fix-it:"JavaScriptCore/jit/JITOpcodes32_64.cpp":{741:35-741:35}:")" 16 JavaScriptCore/jit/JITOpcodes32_64.cpp:741:36:{741:28-741:94}: note: place parentheses around the '?:' expression to evaluate it first [3] 17 map(m_bytecodeOffset + dynamic ? OPCODE_LENGTH(op_resolve_global_dynamic) : OPCODE_LENGTH(op_resolve_global), dst, regT1, regT0); 18 ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 19 1 error generated. 20 21 * jit/JITOpcodes32_64.cpp: 22 (JSC::JIT::emit_op_resolve_global): Add parenthesis to make the 23 tertiary expression evaluate first. 24 1 25 2011-07-01 Sheriff Bot <webkit.review.bot@gmail.com> 2 26 -
trunk/Source/JavaScriptCore/jit/JITOpcodes32_64.cpp
r89171 r90232 739 739 load32(BaseIndex(regT2, regT3, TimesEight, OBJECT_OFFSETOF(JSValue, u.asBits.tag)), regT1); // tag 740 740 emitStore(dst, regT1, regT0); 741 map(m_bytecodeOffset + dynamic ? OPCODE_LENGTH(op_resolve_global_dynamic) : OPCODE_LENGTH(op_resolve_global), dst, regT1, regT0);741 map(m_bytecodeOffset + (dynamic ? OPCODE_LENGTH(op_resolve_global_dynamic) : OPCODE_LENGTH(op_resolve_global)), dst, regT1, regT0); 742 742 } 743 743
Note:
See TracChangeset
for help on using the changeset viewer.