Index: tools/lexer-shell.cc |
diff --git a/tools/lexer-shell.cc b/tools/lexer-shell.cc |
index 6ef8b0b3e7e4777ea75a498fa57954056d9b89f6..276a47315fe9b93ae29f383ef6e23821439ea225 100644 |
--- a/tools/lexer-shell.cc |
+++ b/tools/lexer-shell.cc |
@@ -34,8 +34,8 @@ |
#include "src/v8.h" |
#include "src/api.h" |
+#include "src/base/platform/platform.h" |
#include "src/messages.h" |
-#include "src/platform.h" |
#include "src/runtime.h" |
#include "src/scanner-character-streams.h" |
#include "src/scopeinfo.h" |
@@ -52,7 +52,7 @@ class BaselineScanner { |
BaselineScanner(const char* fname, |
Isolate* isolate, |
Encoding encoding, |
- ElapsedTimer* timer, |
+ v8::base::ElapsedTimer* timer, |
int repeat) |
: stream_(NULL) { |
int length = 0; |
@@ -127,13 +127,11 @@ struct TokenWithLocation { |
}; |
-TimeDelta RunBaselineScanner(const char* fname, |
- Isolate* isolate, |
- Encoding encoding, |
- bool dump_tokens, |
- std::vector<TokenWithLocation>* tokens, |
- int repeat) { |
- ElapsedTimer timer; |
+v8::base::TimeDelta RunBaselineScanner(const char* fname, Isolate* isolate, |
+ Encoding encoding, bool dump_tokens, |
+ std::vector<TokenWithLocation>* tokens, |
+ int repeat) { |
+ v8::base::ElapsedTimer timer; |
BaselineScanner scanner(fname, isolate, encoding, &timer, repeat); |
Token::Value token; |
int beg, end; |
@@ -158,7 +156,7 @@ void PrintTokens(const char* name, |
} |
-TimeDelta ProcessFile( |
+v8::base::TimeDelta ProcessFile( |
const char* fname, |
Encoding encoding, |
Isolate* isolate, |
@@ -169,7 +167,7 @@ TimeDelta ProcessFile( |
} |
HandleScope handle_scope(isolate); |
std::vector<TokenWithLocation> baseline_tokens; |
- TimeDelta baseline_time; |
+ v8::base::TimeDelta baseline_time; |
baseline_time = RunBaselineScanner( |
fname, isolate, encoding, print_tokens, |
&baseline_tokens, repeat); |
@@ -217,7 +215,7 @@ int main(int argc, char* argv[]) { |
v8::Context::Scope scope(context); |
double baseline_total = 0; |
for (size_t i = 0; i < fnames.size(); i++) { |
- TimeDelta time; |
+ v8::base::TimeDelta time; |
time = ProcessFile(fnames[i].c_str(), encoding, |
reinterpret_cast<Isolate*>(isolate), print_tokens, |
repeat); |