Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(974)

Unified Diff: src/asmjs/asm-typer.h

Issue 2452403003: Changed statement ZoneList to a ZoneChunkList
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/asmjs/asm-typer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/asmjs/asm-typer.h
diff --git a/src/asmjs/asm-typer.h b/src/asmjs/asm-typer.h
index 2c66948d567f5ef3afb689c54105aa82f701ff61..4eaa6defb7077d512e57e75116b8202621488004 100644
--- a/src/asmjs/asm-typer.h
+++ b/src/asmjs/asm-typer.h
@@ -184,14 +184,15 @@ class AsmTyper final {
// the tests.
class FlattenedStatements {
public:
- explicit FlattenedStatements(Zone* zone, ZoneList<Statement*>* s);
+ explicit FlattenedStatements(Zone* zone, ZoneChunkList<Statement*>* s);
Statement* Next();
private:
struct Context {
- explicit Context(ZoneList<Statement*>* s) : statements_(s) {}
- ZoneList<Statement*>* statements_;
- int next_index_ = 0;
+ explicit Context(ZoneChunkList<Statement*>* s)
+ : current_(s->begin()), end_(s->end()) {}
+ ForwardZoneChunkListIterator<Statement*> current_;
+ ForwardZoneChunkListIterator<Statement*> end_;
};
ZoneVector<Context> context_stack_;
« no previous file with comments | « no previous file | src/asmjs/asm-typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698