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

Side by Side Diff: src/d8.cc

Issue 6070009: Added labelled thread names to help with some debugging activity. Right now,... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 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 | « src/cpu-profiler.cc ('k') | src/d8-debug.h » ('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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 ExecuteString(String::New(*input), name, true, true); 592 ExecuteString(String::New(*input), name, true, true);
593 } 593 }
594 editor->Close(); 594 editor->Close();
595 printf("\n"); 595 printf("\n");
596 } 596 }
597 597
598 598
599 class ShellThread : public i::Thread { 599 class ShellThread : public i::Thread {
600 public: 600 public:
601 ShellThread(int no, i::Vector<const char> files) 601 ShellThread(int no, i::Vector<const char> files)
602 : no_(no), files_(files) { } 602 : Thread("d8:ShellThread"),
603 no_(no), files_(files) { }
603 virtual void Run(); 604 virtual void Run();
604 private: 605 private:
605 int no_; 606 int no_;
606 i::Vector<const char> files_; 607 i::Vector<const char> files_;
607 }; 608 };
608 609
609 610
610 void ShellThread::Run() { 611 void ShellThread::Run() {
611 // Prepare the context for this thread. 612 // Prepare the context for this thread.
612 Locker locker; 613 Locker locker;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 return 0; 775 return 0;
775 } 776 }
776 777
777 778
778 } // namespace v8 779 } // namespace v8
779 780
780 781
781 int main(int argc, char* argv[]) { 782 int main(int argc, char* argv[]) {
782 return v8::Shell::Main(argc, argv); 783 return v8::Shell::Main(argc, argv);
783 } 784 }
OLDNEW
« no previous file with comments | « src/cpu-profiler.cc ('k') | src/d8-debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698