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

Side by Side Diff: tools/lexer-shell.cc

Issue 238353015: Simplify v8/Isolate teardown. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Tiny serializer fix after recent changes. Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/cctest/test-microtask-delivery.cc ('k') | tools/parser-shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 &baseline_tokens, repeat); 175 &baseline_tokens, repeat);
176 if (print_tokens) { 176 if (print_tokens) {
177 PrintTokens("Baseline", baseline_tokens); 177 PrintTokens("Baseline", baseline_tokens);
178 } 178 }
179 return baseline_time; 179 return baseline_time;
180 } 180 }
181 181
182 182
183 int main(int argc, char* argv[]) { 183 int main(int argc, char* argv[]) {
184 v8::V8::InitializeICU(); 184 v8::V8::InitializeICU();
185 v8::V8::Initialize();
185 v8::V8::SetFlagsFromCommandLine(&argc, argv, true); 186 v8::V8::SetFlagsFromCommandLine(&argc, argv, true);
186 Encoding encoding = LATIN1; 187 Encoding encoding = LATIN1;
187 bool print_tokens = false; 188 bool print_tokens = false;
188 std::vector<std::string> fnames; 189 std::vector<std::string> fnames;
189 std::string benchmark; 190 std::string benchmark;
190 int repeat = 1; 191 int repeat = 1;
191 for (int i = 0; i < argc; ++i) { 192 for (int i = 0; i < argc; ++i) {
192 if (strcmp(argv[i], "--latin1") == 0) { 193 if (strcmp(argv[i], "--latin1") == 0) {
193 encoding = LATIN1; 194 encoding = LATIN1;
194 } else if (strcmp(argv[i], "--utf8") == 0) { 195 } else if (strcmp(argv[i], "--utf8") == 0) {
(...skipping 27 matching lines...) Expand all
222 repeat); 223 repeat);
223 baseline_total += time.InMillisecondsF(); 224 baseline_total += time.InMillisecondsF();
224 } 225 }
225 if (benchmark.empty()) benchmark = "Baseline"; 226 if (benchmark.empty()) benchmark = "Baseline";
226 printf("%s(RunTime): %.f ms\n", benchmark.c_str(), baseline_total); 227 printf("%s(RunTime): %.f ms\n", benchmark.c_str(), baseline_total);
227 } 228 }
228 } 229 }
229 v8::V8::Dispose(); 230 v8::V8::Dispose();
230 return 0; 231 return 0;
231 } 232 }
OLDNEW
« no previous file with comments | « test/cctest/test-microtask-delivery.cc ('k') | tools/parser-shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698