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

Side by Side Diff: src/d8.cc

Issue 10825454: Fix mjsunit/debug-script.js failure that occurs when running with the --isolates flag. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after
1582 { 1582 {
1583 Isolate::Scope iscope(isolate); 1583 Isolate::Scope iscope(isolate);
1584 Locker lock(isolate); 1584 Locker lock(isolate);
1585 HandleScope scope; 1585 HandleScope scope;
1586 Persistent<Context> context = Shell::CreateEvaluationContext(); 1586 Persistent<Context> context = Shell::CreateEvaluationContext();
1587 { 1587 {
1588 Context::Scope cscope(context); 1588 Context::Scope cscope(context);
1589 Execute(); 1589 Execute();
1590 } 1590 }
1591 context.Dispose(); 1591 context.Dispose();
1592 if (Shell::options.send_idle_notification) {
1593 const int kLongIdlePauseInMs = 1000;
1594 V8::ContextDisposedNotification();
1595 V8::IdleNotification(kLongIdlePauseInMs);
1596 }
1592 } 1597 }
1593 if (done_semaphore_ != NULL) done_semaphore_->Signal(); 1598 if (done_semaphore_ != NULL) done_semaphore_->Signal();
1594 } while (!Shell::options.last_run); 1599 } while (!Shell::options.last_run);
1595 isolate->Dispose(); 1600 isolate->Dispose();
1596 } 1601 }
1597 1602
1598 1603
1599 void SourceGroup::StartExecuteInThread() { 1604 void SourceGroup::StartExecuteInThread() {
1600 if (thread_ == NULL) { 1605 if (thread_ == NULL) {
1601 thread_ = new IsolateThread(this); 1606 thread_ = new IsolateThread(this);
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1894 } 1899 }
1895 1900
1896 } // namespace v8 1901 } // namespace v8
1897 1902
1898 1903
1899 #ifndef GOOGLE3 1904 #ifndef GOOGLE3
1900 int main(int argc, char* argv[]) { 1905 int main(int argc, char* argv[]) {
1901 return v8::Shell::Main(argc, argv); 1906 return v8::Shell::Main(argc, argv);
1902 } 1907 }
1903 #endif 1908 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698