Changeset 159987 in webkit
- Timestamp:
- Dec 2, 2013, 5:32:43 PM (11 years ago)
- Location:
- trunk/Source
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/Source/JavaScriptCore/ChangeLog ¶
r159973 r159987 1 2013-12-02 Mark Lam <mark.lam@apple.com> 2 3 Build failure when disabling JIT, YARR_JIT, and ASSEMBLER. 4 https://bugs.webkit.org/show_bug.cgi?id=123809. 5 6 Reviewed by Geoffrey Garen. 7 8 Also fixed build when disabling the DISASSEMBLER. 9 Added some needed #if's and some comments. 10 11 * assembler/LinkBuffer.cpp: 12 (JSC::LinkBuffer::finalizeCodeWithDisassembly): 13 * dfg/DFGDisassembler.cpp: 14 * dfg/DFGDisassembler.h: 15 (JSC::DFG::Disassembler::Disassembler): 16 (JSC::DFG::Disassembler::setStartOfCode): 17 (JSC::DFG::Disassembler::setForBlockIndex): 18 (JSC::DFG::Disassembler::setForNode): 19 (JSC::DFG::Disassembler::setEndOfMainPath): 20 (JSC::DFG::Disassembler::setEndOfCode): 21 (JSC::DFG::Disassembler::dump): 22 (JSC::DFG::Disassembler::reportToProfiler): 23 * disassembler/Disassembler.cpp: 24 * disassembler/X86Disassembler.cpp: 25 * jit/FPRInfo.h: 26 * jit/GPRInfo.h: 27 * jit/JITDisassembler.cpp: 28 * jit/JITDisassembler.h: 29 (JSC::JITDisassembler::JITDisassembler): 30 (JSC::JITDisassembler::setStartOfCode): 31 (JSC::JITDisassembler::setForBytecodeMainPath): 32 (JSC::JITDisassembler::setForBytecodeSlowPath): 33 (JSC::JITDisassembler::setEndOfSlowPath): 34 (JSC::JITDisassembler::setEndOfCode): 35 (JSC::JITDisassembler::dump): 36 (JSC::JITDisassembler::reportToProfiler): 37 1 38 2013-12-02 Filip Pizlo <fpizlo@apple.com> 2 39 -
TabularUnified trunk/Source/JavaScriptCore/assembler/LinkBuffer.cpp ¶
r158670 r159987 50 50 51 51 CodeRef result = finalizeCodeWithoutDisassembly(); 52 52 53 #if ENABLE(DISASSEMBLER) 53 54 dataLogF("Generated JIT code for "); 54 55 va_list argList; … … 60 61 dataLogF(" Code at [%p, %p):\n", result.code().executableAddress(), static_cast<char*>(result.code().executableAddress()) + result.size()); 61 62 disassemble(result.code(), m_size, " ", WTF::dataFile()); 63 #else 64 UNUSED_PARAM(format); 65 #endif // ENABLE(DISASSEMBLER) 62 66 63 67 return result; -
TabularUnified trunk/Source/JavaScriptCore/dfg/DFGDisassembler.cpp ¶
r159883 r159987 27 27 #include "DFGDisassembler.h" 28 28 29 #if ENABLE(DFG_JIT) 29 #if ENABLE(DFG_JIT) && ENABLE(DISASSEMBLER) 30 30 31 31 #include "CodeBlockWithJITType.h" … … 173 173 } } // namespace JSC::DFG 174 174 175 #endif // ENABLE(DFG_JIT) 175 #endif // ENABLE(DFG_JIT) && ENABLE(DISASSEMBLER) -
TabularUnified trunk/Source/JavaScriptCore/dfg/DFGDisassembler.h ¶
r153296 r159987 42 42 43 43 class Graph; 44 45 #if ENABLE(DISASSEMBLER) 44 46 45 47 class Disassembler { … … 98 100 }; 99 101 102 #else // ENABLE(DISASSEMBLER) 103 104 class Disassembler { 105 WTF_MAKE_FAST_ALLOCATED; 106 public: 107 Disassembler(Graph&) { } 108 109 void setStartOfCode(MacroAssembler::Label) { } 110 void setForBlockIndex(BlockIndex, MacroAssembler::Label) { } 111 void setForNode(Node*, MacroAssembler::Label) { } 112 void setEndOfMainPath(MacroAssembler::Label) { } 113 void setEndOfCode(MacroAssembler::Label) { } 114 115 void dump(LinkBuffer&) { } 116 void reportToProfiler(Profiler::Compilation*, LinkBuffer&) { } 117 }; 118 119 #endif // ENABLE(DISASSEMBLER) 120 100 121 } } // namespace JSC::DFG 101 122 -
TabularUnified trunk/Source/JavaScriptCore/disassembler/Disassembler.cpp ¶
r153256 r159987 27 27 #include "Disassembler.h" 28 28 29 #if ENABLE(DISASSEMBLER) 30 29 31 #include "MacroAssemblerCodeRef.h" 30 32 #include <wtf/DataLog.h> … … 42 44 } // namespace JSC 43 45 46 #endif // ENABLE(DISASSEMBLER) -
TabularUnified trunk/Source/JavaScriptCore/disassembler/X86Disassembler.cpp ¶
r153256 r159987 27 27 #include "Disassembler.h" 28 28 29 #if ENABLE(DISASSEMBLER) 29 30 #if USE(UDIS86) || USE(LLVM_DISASSEMBLER) 30 31 … … 71 72 72 73 #endif // USE(UDIS86) || USE(LLVM_DISASSEMBLER) 73 74 #endif // ENABLE(DISASSEMBLER) -
TabularUnified trunk/Source/JavaScriptCore/jit/FPRInfo.h ¶
r159099 r159987 35 35 #define InvalidFPRReg ((::JSC::FPRReg)-1) 36 36 37 #if ENABLE(JIT) 38 37 39 #if CPU(X86) || CPU(X86_64) 38 40 … … 109 111 }; 110 112 111 #endif 113 #endif // CPU(X86) || CPU(X86_64) 112 114 113 115 #if CPU(ARM) … … 173 175 }; 174 176 175 #endif 177 #endif // CPU(ARM) 176 178 177 179 #if CPU(ARM64) … … 261 263 }; 262 264 263 #endif 265 #endif // CPU(ARM64) 264 266 265 267 #if CPU(MIPS) … … 328 330 }; 329 331 330 #endif 332 #endif // CPU(MIPS) 331 333 332 334 #if CPU(SH4) … … 390 392 }; 391 393 392 #endif 394 #endif // CPU(SH4) 395 396 #endif // ENABLE(JIT) 393 397 394 398 } // namespace JSC -
TabularUnified trunk/Source/JavaScriptCore/jit/GPRInfo.h ¶
r159427 r159987 35 35 #define InvalidGPRReg ((::JSC::GPRReg)-1) 36 36 37 #if ENABLE(JIT) 38 37 39 #if USE(JSVALUE64) 38 40 class JSValueRegs { … … 126 128 GPRReg m_base; 127 129 }; 128 #endif 130 #endif // USE(JSVALUE64) 129 131 130 132 #if USE(JSVALUE32_64) … … 277 279 int8_t m_tagType; // Contains the low bits of the tag. 278 280 }; 279 #endif 281 #endif // USE(JSVALUE32_64) 280 282 281 283 // The baseline JIT requires that regT3 be callee-preserved. … … 344 346 }; 345 347 346 #endif 348 #endif // CPU(X86) 347 349 348 350 #if CPU(X86_64) … … 441 443 }; 442 444 443 #endif 445 #endif // CPU(X86_64) 444 446 445 447 #if CPU(ARM) … … 522 524 }; 523 525 524 #endif 526 #endif // CPU(ARM) 525 527 526 528 #if CPU(ARM64) … … 620 622 }; 621 623 622 #endif 624 #endif // CPU(ARM64) 623 625 624 626 #if CPU(MIPS) … … 696 698 }; 697 699 698 #endif 700 #endif // CPU(MIPS) 699 701 700 702 #if CPU(SH4) … … 766 768 }; 767 769 768 #endif 770 #endif // CPU(SH4) 769 771 770 772 // The baseline JIT uses "accumulator" style execution with regT0 (for 64-bit) … … 776 778 #endif 777 779 780 #endif // ENABLE(JIT) 781 778 782 } // namespace JSC 779 783 -
TabularUnified trunk/Source/JavaScriptCore/jit/JITDisassembler.cpp ¶
r159883 r159987 1 1 /* 2 * Copyright (C) 2012 Apple Inc. All rights reserved.2 * Copyright (C) 2012, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 27 27 #include "JITDisassembler.h" 28 28 29 #if ENABLE(JIT) 29 #if ENABLE(JIT) && ENABLE(DISASSEMBLER) 30 30 31 31 #include "CodeBlock.h" … … 165 165 } // namespace JSC 166 166 167 #endif // ENABLE(JIT) 167 #endif // ENABLE(JIT) && ENABLE(DISASSEMBLER) 168 168 -
TabularUnified trunk/Source/JavaScriptCore/jit/JITDisassembler.h ¶
r136601 r159987 39 39 40 40 class CodeBlock; 41 42 #if ENABLE(DISASSEMBLER) 41 43 42 44 class JITDisassembler { … … 85 87 }; 86 88 89 #else // ENABLE(DISASSEMBLER) 90 91 class JITDisassembler { 92 WTF_MAKE_FAST_ALLOCATED; 93 public: 94 JITDisassembler(CodeBlock*) { } 95 96 void setStartOfCode(MacroAssembler::Label) { } 97 void setForBytecodeMainPath(unsigned, MacroAssembler::Label) { } 98 void setForBytecodeSlowPath(unsigned, MacroAssembler::Label) { } 99 void setEndOfSlowPath(MacroAssembler::Label) { } 100 void setEndOfCode(MacroAssembler::Label) { } 101 102 void dump(LinkBuffer&) { } 103 void reportToProfiler(Profiler::Compilation*, LinkBuffer&) { } 104 }; 105 106 #endif // ENABLE(DISASSEMBLER) 107 87 108 } // namespace JSC 88 109 -
TabularUnified trunk/Source/WTF/ChangeLog ¶
r159892 r159987 1 2013-12-02 Mark Lam <mark.lam@apple.com> 2 3 Build failure when disabling JIT, YARR_JIT, and ASSEMBLER. 4 https://bugs.webkit.org/show_bug.cgi?id=123809. 5 6 Reviewed by Geoffrey Garen. 7 8 * wtf/Platform.h: 9 - Ensure that the ASSEMBLER is enabled when the DISASSEMBLER is enabled. 10 1 11 2013-11-30 peavo@outlook.com <peavo@outlook.com> 2 12 -
TabularUnified trunk/Source/WTF/wtf/Platform.h ¶
r159817 r159987 852 852 #endif 853 853 854 /* If the Disassembler is enabled, then the Assembler must be enabled as well: */ 855 #if ENABLE(DISASSEMBLER) 856 #if defined(ENABLE_ASSEMBLER) && !ENABLE_ASSEMBLER 857 #error "Cannot enable the Disassembler without enabling the Assembler" 858 #else 859 #undef ENABLE_ASSEMBLER 860 #define ENABLE_ASSEMBLER 1 861 #endif 862 #endif 863 854 864 /* FIXME: We currently unconditionally use spearate stacks. When we switch to using the 855 865 C stack for JS frames, we'll need to make the following conditional on ENABLE(LLINT_CLOOP)
Note:
See TracChangeset
for help on using the changeset viewer.