OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |