| 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 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 ExecuteString(String::New(*input), name, true, true); | 593 ExecuteString(String::New(*input), name, true, true); |
| 594 } | 594 } |
| 595 editor->Close(); | 595 editor->Close(); |
| 596 printf("\n"); | 596 printf("\n"); |
| 597 } | 597 } |
| 598 | 598 |
| 599 | 599 |
| 600 class ShellThread : public i::Thread { | 600 class ShellThread : public i::Thread { |
| 601 public: | 601 public: |
| 602 ShellThread(i::Isolate* isolate, int no, i::Vector<const char> files) | 602 ShellThread(i::Isolate* isolate, int no, i::Vector<const char> files) |
| 603 : i::Thread(isolate), no_(no), files_(files) { } | 603 : Thread(isolate, "d8:ShellThread"), |
| 604 no_(no), files_(files) { } |
| 604 virtual void Run(); | 605 virtual void Run(); |
| 605 private: | 606 private: |
| 606 int no_; | 607 int no_; |
| 607 i::Vector<const char> files_; | 608 i::Vector<const char> files_; |
| 608 }; | 609 }; |
| 609 | 610 |
| 610 | 611 |
| 611 void ShellThread::Run() { | 612 void ShellThread::Run() { |
| 612 // Prepare the context for this thread. | 613 // Prepare the context for this thread. |
| 613 Locker locker; | 614 Locker locker; |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 return 0; | 777 return 0; |
| 777 } | 778 } |
| 778 | 779 |
| 779 | 780 |
| 780 } // namespace v8 | 781 } // namespace v8 |
| 781 | 782 |
| 782 | 783 |
| 783 int main(int argc, char* argv[]) { | 784 int main(int argc, char* argv[]) { |
| 784 return v8::Shell::Main(argc, argv); | 785 return v8::Shell::Main(argc, argv); |
| 785 } | 786 } |
| OLD | NEW |