| 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 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 765 ExecuteString(String::New(*input), name, true, true); | 765 ExecuteString(String::New(*input), name, true, true); |
| 766 } | 766 } |
| 767 editor->Close(); | 767 editor->Close(); |
| 768 printf("\n"); | 768 printf("\n"); |
| 769 } | 769 } |
| 770 | 770 |
| 771 | 771 |
| 772 class ShellThread : public i::Thread { | 772 class ShellThread : public i::Thread { |
| 773 public: | 773 public: |
| 774 ShellThread(i::Isolate* isolate, int no, i::Vector<const char> files) | 774 ShellThread(i::Isolate* isolate, int no, i::Vector<const char> files) |
| 775 : Thread(isolate, "d8:ShellThread"), | 775 : Thread("d8:ShellThread"), |
| 776 no_(no), files_(files) { } | 776 no_(no), files_(files) { } |
| 777 virtual void Run(); | 777 virtual void Run(); |
| 778 private: | 778 private: |
| 779 int no_; | 779 int no_; |
| 780 i::Vector<const char> files_; | 780 i::Vector<const char> files_; |
| 781 }; | 781 }; |
| 782 | 782 |
| 783 | 783 |
| 784 void ShellThread::Run() { | 784 void ShellThread::Run() { |
| 785 // Prepare the context for this thread. | 785 // Prepare the context for this thread. |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 980 } | 980 } |
| 981 | 981 |
| 982 } // namespace v8 | 982 } // namespace v8 |
| 983 | 983 |
| 984 | 984 |
| 985 #ifndef GOOGLE3 | 985 #ifndef GOOGLE3 |
| 986 int main(int argc, char* argv[]) { | 986 int main(int argc, char* argv[]) { |
| 987 return v8::Shell::Main(argc, argv); | 987 return v8::Shell::Main(argc, argv); |
| 988 } | 988 } |
| 989 #endif | 989 #endif |
| OLD | NEW |