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

Side by Side Diff: src/d8.cc

Issue 7331036: bug fix since --prof did not work (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 if (Shell::options.last_run) { 961 if (Shell::options.last_run) {
962 thread_->Join(); 962 thread_->Join();
963 thread_ = NULL; 963 thread_ = NULL;
964 } else { 964 } else {
965 done_semaphore_->Wait(); 965 done_semaphore_->Wait();
966 } 966 }
967 } 967 }
968 968
969 969
970 bool Shell::SetOptions(int argc, char* argv[]) { 970 bool Shell::SetOptions(int argc, char* argv[]) {
971 Locker lock;
972
Yang 2011/07/11 11:06:03 locker initializes v8 if not already done. if opti
973 for (int i = 0; i < argc; i++) { 971 for (int i = 0; i < argc; i++) {
974 if (strcmp(argv[i], "--stress-opt") == 0) { 972 if (strcmp(argv[i], "--stress-opt") == 0) {
975 options.stress_opt = true; 973 options.stress_opt = true;
976 argv[i] = NULL; 974 argv[i] = NULL;
977 } else if (strcmp(argv[i], "--stress-deopt") == 0) { 975 } else if (strcmp(argv[i], "--stress-deopt") == 0) {
978 options.stress_deopt = true; 976 options.stress_deopt = true;
979 argv[i] = NULL; 977 argv[i] = NULL;
980 } else if (strcmp(argv[i], "--noalways-opt") == 0) { 978 } else if (strcmp(argv[i], "--noalways-opt") == 0) {
981 // No support for stressing if we can't use --always-opt. 979 // No support for stressing if we can't use --always-opt.
982 options.stress_opt = false; 980 options.stress_opt = false;
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
1163 } 1161 }
1164 1162
1165 } // namespace v8 1163 } // namespace v8
1166 1164
1167 1165
1168 #ifndef GOOGLE3 1166 #ifndef GOOGLE3
1169 int main(int argc, char* argv[]) { 1167 int main(int argc, char* argv[]) {
1170 return v8::Shell::Main(argc, argv); 1168 return v8::Shell::Main(argc, argv);
1171 } 1169 }
1172 #endif 1170 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698