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

Side by Side Diff: src/d8.cc

Issue 6577036: [Isolates] Merge from bleeding_edge to isolates, revisions 6100-6300. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 10 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.js » ('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 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « src/cpu-profiler.cc ('k') | src/d8.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698