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

Side by Side Diff: src/d8.cc

Issue 9837005: Age inline caches after context disposal. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Advance incremental marking 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 | src/flag-definitions.h » ('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 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 (i::FLAG_send_idle_notification) {
1440 const int kLongIdlePauseInMs = 1000;
1441 V8::ContextDisposedNotification();
1442 V8::IdleNotification(kLongIdlePauseInMs);
1443 }
1439 } 1444 }
1440 1445
1441 #ifndef V8_SHARED 1446 #ifndef V8_SHARED
1442 // Start preemption if threads have been created and preemption is enabled. 1447 // Start preemption if threads have been created and preemption is enabled.
1443 if (threads.length() > 0 1448 if (threads.length() > 0
1444 && options.use_preemption) { 1449 && options.use_preemption) {
1445 Locker::StartPreemption(options.preemption_interval); 1450 Locker::StartPreemption(options.preemption_interval);
1446 } 1451 }
1447 #endif // V8_SHARED 1452 #endif // V8_SHARED
1448 } 1453 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1483 options.last_run = (i == stress_runs - 1); 1488 options.last_run = (i == stress_runs - 1);
1484 result = RunMain(argc, argv); 1489 result = RunMain(argc, argv);
1485 } 1490 }
1486 printf("======== Full Deoptimization =======\n"); 1491 printf("======== Full Deoptimization =======\n");
1487 Testing::DeoptimizeAll(); 1492 Testing::DeoptimizeAll();
1488 #if !defined(V8_SHARED) 1493 #if !defined(V8_SHARED)
1489 } else if (i::FLAG_stress_runs > 0) { 1494 } else if (i::FLAG_stress_runs > 0) {
1490 int stress_runs = i::FLAG_stress_runs; 1495 int stress_runs = i::FLAG_stress_runs;
1491 for (int i = 0; i < stress_runs && result == 0; i++) { 1496 for (int i = 0; i < stress_runs && result == 0; i++) {
1492 printf("============ Run %d/%d ============\n", i + 1, stress_runs); 1497 printf("============ Run %d/%d ============\n", i + 1, stress_runs);
1498 options.last_run = (i == stress_runs - 1);
1493 result = RunMain(argc, argv); 1499 result = RunMain(argc, argv);
1494 } 1500 }
1495 #endif 1501 #endif
1496 } else { 1502 } else {
1497 result = RunMain(argc, argv); 1503 result = RunMain(argc, argv);
1498 } 1504 }
1499 1505
1500 1506
1501 #if !defined(V8_SHARED) && defined(ENABLE_DEBUGGER_SUPPORT) 1507 #if !defined(V8_SHARED) && defined(ENABLE_DEBUGGER_SUPPORT)
1502 // Run remote debugger if requested, but never on --test 1508 // Run remote debugger if requested, but never on --test
(...skipping 28 matching lines...) Expand all
1531 } 1537 }
1532 1538
1533 } // namespace v8 1539 } // namespace v8
1534 1540
1535 1541
1536 #ifndef GOOGLE3 1542 #ifndef GOOGLE3
1537 int main(int argc, char* argv[]) { 1543 int main(int argc, char* argv[]) {
1538 return v8::Shell::Main(argc, argv); 1544 return v8::Shell::Main(argc, argv);
1539 } 1545 }
1540 #endif 1546 #endif
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698