Skip to content

Commit a9c33a9

Browse files
committed
Unreviewed, build fix in GTK port
https://bugs.webkit.org/show_bug.cgi?id=174590 Source/JavaScriptCore: * bytecompiler/BytecodeGenerator.cpp: (JSC::BytecodeGenerator::emitCatch): * bytecompiler/BytecodeGenerator.h: Source/WTF: * wtf/SingleRootGraph.h: (WTF::SingleRootGraph::successors const): (WTF::SingleRootGraph::predecessors const): Canonical link: https://commits.webkit.org/192576@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@221124 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 8ff3436 commit a9c33a9

5 files changed

Lines changed: 25 additions & 6 deletions

File tree

Source/JavaScriptCore/ChangeLog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2017-08-23 Yusuke Suzuki <utatane.tea@gmail.com>
2+
3+
Unreviewed, build fix in GTK port
4+
https://bugs.webkit.org/show_bug.cgi?id=174590
5+
6+
* bytecompiler/BytecodeGenerator.cpp:
7+
(JSC::BytecodeGenerator::emitCatch):
8+
* bytecompiler/BytecodeGenerator.h:
9+
110
2017-08-23 Saam Barati <sbarati@apple.com>
211

312
Support compiling catch in the DFG

Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4023,7 +4023,7 @@ void BytecodeGenerator::popTry(TryData* tryData, Label& end)
40234023

40244024
void BytecodeGenerator::emitCatch(RegisterID* exceptionRegister, RegisterID* thrownValueRegister, TryData* data)
40254025
{
4026-
m_catchesToEmit.append({ data, exceptionRegister->index(), thrownValueRegister->index() });
4026+
m_catchesToEmit.append(CatchEntry { data, exceptionRegister->index(), thrownValueRegister->index() });
40274027
}
40284028

40294029
void BytecodeGenerator::restoreScopeRegister(int lexicalScopeIndex)

Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,8 @@ namespace JSC {
12011201
bool m_needsToUpdateArrowFunctionContext;
12021202
DerivedContextType m_derivedContextType { DerivedContextType::None };
12031203

1204-
Vector<std::tuple<TryData*, int, int>> m_catchesToEmit;
1204+
using CatchEntry = std::tuple<TryData*, int, int>;
1205+
Vector<CatchEntry> m_catchesToEmit;
12051206
};
12061207

12071208
} // namespace JSC

Source/WTF/ChangeLog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2017-08-23 Yusuke Suzuki <utatane.tea@gmail.com>
2+
3+
Unreviewed, build fix in GTK port
4+
https://bugs.webkit.org/show_bug.cgi?id=174590
5+
6+
* wtf/SingleRootGraph.h:
7+
(WTF::SingleRootGraph::successors const):
8+
(WTF::SingleRootGraph::predecessors const):
9+
110
2017-08-23 Saam Barati <sbarati@apple.com>
211

312
Support compiling catch in the DFG

Source/WTF/wtf/SingleRootGraph.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ class SingleRootGraph {
206206
if (node.isRoot())
207207
return m_rootSuccessorList;
208208
List result;
209-
for (typename Graph::Node node : m_graph.successors(node.node()))
210-
result.append(node);
209+
for (typename Graph::Node successor : m_graph.successors(node.node()))
210+
result.append(successor);
211211
return result;
212212
}
213213

@@ -224,8 +224,8 @@ class SingleRootGraph {
224224
}
225225

226226
List result;
227-
for (typename Graph::Node node : m_graph.predecessors(node.node()))
228-
result.append(node);
227+
for (typename Graph::Node predecessor : m_graph.predecessors(node.node()))
228+
result.append(predecessor);
229229
return result;
230230
}
231231

0 commit comments

Comments
 (0)