Changeset 173509 in webkit for trunk/Source/JavaScriptCore/ftl/FTLCompile.cpp
- Timestamp:
- Sep 11, 2014, 1:52:22 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ftl/FTLCompile.cpp
r173213 r173509 1 1 /* 2 2 * Copyright (C) 2013, 2014 Apple Inc. All rights reserved. 3 * Copyright (C) 2014 Samsung Electronics 4 * Copyright (C) 2014 University of Szeged 3 5 * 4 6 * Redistribution and use in source and binary forms, with or without … … 62 64 // LLVM used to put __compact_unwind in a code section. We keep this here defensively, 63 65 // for clients that use older LLVMs. 64 if (!strcmp(sectionName, "__compact_unwind")) {65 state. compactUnwind= result->start();66 state. compactUnwindSize = result->sizeInBytes();66 if (!strcmp(sectionName, SECTION_NAME("compact_unwind"))) { 67 state.unwindDataSection = result->start(); 68 state.unwindDataSectionSize = result->sizeInBytes(); 67 69 } 68 70 … … 81 83 82 84 // Allocate the GOT in the code section to make it reachable for all code. 83 if (!strcmp(sectionName, "__got"))85 if (!strcmp(sectionName, SECTION_NAME("got"))) 84 86 return mmAllocateCodeSection(opaqueState, size, alignment, sectionID, sectionName); 85 87 … … 88 90 RefPtr<DataSection> section = adoptRef(new DataSection(size, alignment)); 89 91 90 if (!strcmp(sectionName, "__llvm_stackmaps"))92 if (!strcmp(sectionName, SECTION_NAME("llvm_stackmaps"))) 91 93 state.stackmapsSection = section; 92 94 else { 93 95 state.jitCode->addDataSection(section); 94 96 state.dataSectionNames.append(sectionName); 95 if (!strcmp(sectionName, "__compact_unwind")) { 96 state.compactUnwind = section->base(); 97 state.compactUnwindSize = size; 97 #if OS(DARWIN) 98 if (!strcmp(sectionName, SECTION_NAME("compact_unwind"))) { 99 #elif OS(LINUX) 100 if (!strcmp(sectionName, SECTION_NAME("eh_frame"))) { 101 #endif 102 state.unwindDataSection = section->base(); 103 state.unwindDataSectionSize = size; 98 104 } 99 105 } … … 718 724 719 725 bool didSeeUnwindInfo = state.jitCode->unwindInfo.parse( 720 state.compactUnwind, state.compactUnwindSize, state.generatedFunction); 726 state.unwindDataSection, state.unwindDataSectionSize, 727 state.generatedFunction); 721 728 if (shouldShowDisassembly()) { 722 729 dataLog("Unwind info for ", CodeBlockWithJITType(state.graph.m_codeBlock, JITCode::FTLJIT), ":\n"); … … 752 759 if (shouldShowDisassembly()) { 753 760 for (unsigned i = 0; i < state.jitCode->handles().size(); ++i) { 754 if (state.codeSectionNames[i] != "__text")761 if (state.codeSectionNames[i] != SECTION_NAME("text")) 755 762 continue; 756 763
Note:
See TracChangeset
for help on using the changeset viewer.