Changeset 214069 in webkit for trunk/Source/JavaScriptCore/ftl/FTLCompile.cpp
- Timestamp:
- Mar 16, 2017, 2:19:23 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ftl/FTLCompile.cpp
r213233 r214069 1 1 /* 2 * Copyright (C) 2015-201 6Apple Inc. All rights reserved.2 * Copyright (C) 2015-2017 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 49 49 #include "PCToCodeOriginMap.h" 50 50 #include "ScratchRegisterAllocator.h" 51 #include <wtf/Function.h> 51 52 52 53 namespace JSC { namespace FTL { … … 78 79 std::unique_ptr<RegisterAtOffsetList> registerOffsets = 79 80 std::make_unique<RegisterAtOffsetList>(state.proc->calleeSaveRegisters()); 80 if (shouldDumpDisassembly()) { 81 dataLog("Unwind info for ", CodeBlockWithJITType(state.graph.m_codeBlock, JITCode::FTLJIT), ":\n"); 82 dataLog(" ", *registerOffsets, "\n"); 83 } 81 if (shouldDumpDisassembly()) 82 dataLog("Unwind info for ", CodeBlockWithJITType(state.graph.m_codeBlock, JITCode::FTLJIT), ": ", *registerOffsets, "\n"); 84 83 state.graph.m_codeBlock->setCalleeSaveRegisters(WTFMove(registerOffsets)); 85 84 ASSERT(!(state.proc->frameSize() % sizeof(EncodedJSValue))); … … 161 160 PrintStream& out = WTF::dataFile(); 162 161 163 out.print(" \nGenerated FTL JITcode for ", CodeBlockWithJITType(state.graph.m_codeBlock, JITCode::FTLJIT), ", instruction count = ", state.graph.m_codeBlock->instructionCount(), ":\n");162 out.print("Generated ", state.graph.m_plan.mode, " code for ", CodeBlockWithJITType(state.graph.m_codeBlock, JITCode::FTLJIT), ", instruction count = ", state.graph.m_codeBlock->instructionCount(), ":\n"); 164 163 165 164 LinkBuffer& linkBuffer = *state.finalizer->b3CodeLinkBuffer; … … 183 182 184 183 HashSet<Node*> localPrintedNodes; 185 std::function<void(Node*)> printNodeRecursive = [&] (Node* node) {184 WTF::Function<void(Node*)> printNodeRecursive = [&] (Node* node) { 186 185 if (printedNodes.contains(node) || localPrintedNodes.contains(node)) 187 186 return; … … 208 207 209 208 HashSet<B3::Value*> localPrintedValues; 210 std::function<void(B3::Value*)> printValueRecursive = [&] (B3::Value* value) {209 WTF::Function<void(B3::Value*)> printValueRecursive = [&] (B3::Value* value) { 211 210 if (printedValues.contains(value) || localPrintedValues.contains(value)) 212 211 return;
Note:
See TracChangeset
for help on using the changeset viewer.