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

Unified Diff: src/trusted/validator_ragel/unreviewed/gen-dfa.cc

Issue 9968039: Add ragel machine generators to SCONS (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 9 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
Index: src/trusted/validator_ragel/unreviewed/gen-dfa.cc
===================================================================
--- src/trusted/validator_ragel/unreviewed/gen-dfa.cc (revision 8157)
+++ src/trusted/validator_ragel/unreviewed/gen-dfa.cc (working copy)
@@ -189,7 +189,7 @@
class Instruction {
public:
- static bool check_flag_valid(const std::string &flag) {
+ static void check_flag_valid(const std::string &flag) {
if (all_instruction_flags.find(flag) == all_instruction_flags.end()) {
fprintf(stderr, "%s: unknown flag: '%s'\n",
short_program_name, flag.c_str());
@@ -1189,7 +1189,7 @@
explicit MarkedInstruction(Instruction instruction_) :
Instruction(instruction_),
instruction_class(get_instruction_class(instruction_)),
- opcode_in_modrm(false), opcode_in_imm(false), rex { } {
+ rex { }, opcode_in_modrm(false), opcode_in_imm(false) {
if (has_flag("branch_hint")) {
optional_prefixes.insert("branch_hint");
}
@@ -1548,7 +1548,7 @@
}
bool modrm_memory = false;
bool modrm_register = false;
- char operand_source;
+ char operand_source = ' ';
for (auto operand_it = operands.begin();
operand_it != operands.end(); ++operand_it) {
auto &operand = *operand_it;
« src/trusted/validator_ragel/build.scons ('K') | « src/trusted/validator_ragel/build.scons ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698