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

Side by Side Diff: src/d8.cc

Issue 9838054: Fix compile error introduced by r11122. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 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 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after
1429 InstallUtilityScript(); 1429 InstallUtilityScript();
1430 } 1430 }
1431 #endif // !V8_SHARED && ENABLE_DEBUGGER_SUPPORT 1431 #endif // !V8_SHARED && ENABLE_DEBUGGER_SUPPORT
1432 } 1432 }
1433 { 1433 {
1434 Context::Scope cscope(context); 1434 Context::Scope cscope(context);
1435 options.isolate_sources[0].Execute(); 1435 options.isolate_sources[0].Execute();
1436 } 1436 }
1437 if (!options.last_run) { 1437 if (!options.last_run) {
1438 context.Dispose(); 1438 context.Dispose();
1439 #if !defined(V8_SHARED)
1439 if (i::FLAG_send_idle_notification) { 1440 if (i::FLAG_send_idle_notification) {
1440 const int kLongIdlePauseInMs = 1000; 1441 const int kLongIdlePauseInMs = 1000;
1441 V8::ContextDisposedNotification(); 1442 V8::ContextDisposedNotification();
1442 V8::IdleNotification(kLongIdlePauseInMs); 1443 V8::IdleNotification(kLongIdlePauseInMs);
1443 } 1444 }
1445 #endif // !V8_SHARED
1444 } 1446 }
1445 1447
1446 #ifndef V8_SHARED 1448 #ifndef V8_SHARED
1447 // Start preemption if threads have been created and preemption is enabled. 1449 // Start preemption if threads have been created and preemption is enabled.
1448 if (threads.length() > 0 1450 if (threads.length() > 0
1449 && options.use_preemption) { 1451 && options.use_preemption) {
1450 Locker::StartPreemption(options.preemption_interval); 1452 Locker::StartPreemption(options.preemption_interval);
1451 } 1453 }
1452 #endif // V8_SHARED 1454 #endif // V8_SHARED
1453 } 1455 }
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
1537 } 1539 }
1538 1540
1539 } // namespace v8 1541 } // namespace v8
1540 1542
1541 1543
1542 #ifndef GOOGLE3 1544 #ifndef GOOGLE3
1543 int main(int argc, char* argv[]) { 1545 int main(int argc, char* argv[]) {
1544 return v8::Shell::Main(argc, argv); 1546 return v8::Shell::Main(argc, argv);
1545 } 1547 }
1546 #endif 1548 #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