Revision: 18832
Author: [email protected]
Date: Fri Jan 24 15:33:46 2014 UTC
Log: Experimental lexer: unbreak lexer_shell.
BUG=
[email protected]
Review URL: https://codereview.chromium.org/137553006
http://code.google.com/p/v8/source/detail?r=18832
Modified:
/branches/experimental/parser/src/lexer/lexer-shell.cc
=======================================
--- /branches/experimental/parser/src/lexer/lexer-shell.cc Fri Jan 24
14:10:33 2014 UTC
+++ /branches/experimental/parser/src/lexer/lexer-shell.cc Fri Jan 24
15:33:46 2014 UTC
@@ -492,7 +492,8 @@
for (size_t i = 0; i < fnames.size(); i++) {
std::pair<TimeDelta, TimeDelta> times;
bool can_truncate = eos_test;
- for (int truncate_by = 0; can_truncate; ++truncate_by) {
+ int truncate_by = 0;
+ do {
times = ProcessFile(fnames[i].c_str(),
encoding,
internal_isolate,
@@ -507,7 +508,8 @@
&can_truncate);
baseline_total += times.first.InMillisecondsF();
experimental_total += times.second.InMillisecondsF();
- }
+ ++truncate_by;
+ } while (can_truncate);
}
if (run_baseline) {
printf("Baseline%s(RunTime): %.f ms\n", benchmark.c_str(),
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.