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

Side by Side Diff: src/d8.cc

Issue 7003113: corrected parts in d8 that accesses the new "deisolated" Thread in platform.h (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 6 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 | src/d8-debug.h » ('j') | src/d8-debug.h » ('J')
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 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | src/d8-debug.h » ('j') | src/d8-debug.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698