Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SKSL_IRGENERATOR | 8 #ifndef SKSL_IRGENERATOR |
| 9 #define SKSL_IRGENERATOR | 9 #define SKSL_IRGENERATOR |
| 10 | 10 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 82 std::unique_ptr<Expression> coerce(std::unique_ptr<Expression> expr, const T ype& type); | 82 std::unique_ptr<Expression> coerce(std::unique_ptr<Expression> expr, const T ype& type); |
| 83 std::unique_ptr<Block> convertBlock(const ASTBlock& block); | 83 std::unique_ptr<Block> convertBlock(const ASTBlock& block); |
| 84 std::unique_ptr<Statement> convertBreak(const ASTBreakStatement& b); | 84 std::unique_ptr<Statement> convertBreak(const ASTBreakStatement& b); |
| 85 std::unique_ptr<Expression> convertConstructor(Position position, | 85 std::unique_ptr<Expression> convertConstructor(Position position, |
| 86 const Type& type, | 86 const Type& type, |
| 87 std::vector<std::unique_ptr<E xpression>> params); | 87 std::vector<std::unique_ptr<E xpression>> params); |
| 88 std::unique_ptr<Statement> convertContinue(const ASTContinueStatement& c); | 88 std::unique_ptr<Statement> convertContinue(const ASTContinueStatement& c); |
| 89 std::unique_ptr<Statement> convertDiscard(const ASTDiscardStatement& d); | 89 std::unique_ptr<Statement> convertDiscard(const ASTDiscardStatement& d); |
| 90 std::unique_ptr<Statement> convertDo(const ASTDoStatement& d); | 90 std::unique_ptr<Statement> convertDo(const ASTDoStatement& d); |
| 91 std::unique_ptr<Expression> convertBinaryExpression(const ASTBinaryExpressio n& expression); | 91 std::unique_ptr<Expression> convertBinaryExpression(const ASTBinaryExpressio n& expression); |
| 92 std::unique_ptr<Expression> constantFold(const Expression& left, | |
|
dogben
2016/11/09 15:35:36
nit: Should probably document that returning nullp
| |
| 93 Token::Kind op, | |
| 94 const Expression& right); | |
| 92 std::unique_ptr<Extension> convertExtension(const ASTExtension& e); | 95 std::unique_ptr<Extension> convertExtension(const ASTExtension& e); |
| 93 std::unique_ptr<Statement> convertExpressionStatement(const ASTExpressionSta tement& s); | 96 std::unique_ptr<Statement> convertExpressionStatement(const ASTExpressionSta tement& s); |
| 94 std::unique_ptr<Statement> convertFor(const ASTForStatement& f); | 97 std::unique_ptr<Statement> convertFor(const ASTForStatement& f); |
| 95 std::unique_ptr<Expression> convertIdentifier(const ASTIdentifier& identifie r); | 98 std::unique_ptr<Expression> convertIdentifier(const ASTIdentifier& identifie r); |
| 96 std::unique_ptr<Statement> convertIf(const ASTIfStatement& s); | 99 std::unique_ptr<Statement> convertIf(const ASTIfStatement& s); |
| 97 std::unique_ptr<Expression> convertIndex(std::unique_ptr<Expression> base, | 100 std::unique_ptr<Expression> convertIndex(std::unique_ptr<Expression> base, |
| 98 const ASTExpression& index); | 101 const ASTExpression& index); |
| 99 std::unique_ptr<InterfaceBlock> convertInterfaceBlock(const ASTInterfaceBloc k& s); | 102 std::unique_ptr<InterfaceBlock> convertInterfaceBlock(const ASTInterfaceBloc k& s); |
| 100 Modifiers convertModifiers(const ASTModifiers& m); | 103 Modifiers convertModifiers(const ASTModifiers& m); |
| 101 std::unique_ptr<Expression> convertPrefixExpression(const ASTPrefixExpressio n& expression); | 104 std::unique_ptr<Expression> convertPrefixExpression(const ASTPrefixExpressio n& expression); |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 120 ErrorReporter& fErrors; | 123 ErrorReporter& fErrors; |
| 121 | 124 |
| 122 friend class AutoSymbolTable; | 125 friend class AutoSymbolTable; |
| 123 friend class AutoLoopLevel; | 126 friend class AutoLoopLevel; |
| 124 friend class Compiler; | 127 friend class Compiler; |
| 125 }; | 128 }; |
| 126 | 129 |
| 127 } | 130 } |
| 128 | 131 |
| 129 #endif | 132 #endif |
| OLD | NEW |