OLD | NEW |
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 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1449 Testing::DeoptimizeAll(); | 1449 Testing::DeoptimizeAll(); |
1450 } else { | 1450 } else { |
1451 result = RunMain(argc, argv); | 1451 result = RunMain(argc, argv); |
1452 } | 1452 } |
1453 | 1453 |
1454 | 1454 |
1455 #if !defined(V8_SHARED) && defined(ENABLE_DEBUGGER_SUPPORT) | 1455 #if !defined(V8_SHARED) && defined(ENABLE_DEBUGGER_SUPPORT) |
1456 // Run remote debugger if requested, but never on --test | 1456 // Run remote debugger if requested, but never on --test |
1457 if (i::FLAG_remote_debugger && !options.test_shell) { | 1457 if (i::FLAG_remote_debugger && !options.test_shell) { |
1458 InstallUtilityScript(); | 1458 InstallUtilityScript(); |
1459 RunRemoteDebugger(i::FLAG_debugger_port); | 1459 RunRemoteDebugger(i::FLAG_debugger_port, utility_context_); |
1460 return 0; | 1460 return 0; |
1461 } | 1461 } |
1462 #endif // !V8_SHARED && ENABLE_DEBUGGER_SUPPORT | 1462 #endif // !V8_SHARED && ENABLE_DEBUGGER_SUPPORT |
1463 | 1463 |
1464 // Run interactive shell if explicitly requested or if no script has been | 1464 // Run interactive shell if explicitly requested or if no script has been |
1465 // executed, but never on --test | 1465 // executed, but never on --test |
1466 | 1466 |
1467 if (( options.interactive_shell | 1467 if (( options.interactive_shell |
1468 || !options.script_executed ) | 1468 || !options.script_executed ) |
1469 && !options.test_shell ) { | 1469 && !options.test_shell ) { |
(...skipping 15 matching lines...) Expand all Loading... |
1485 } | 1485 } |
1486 | 1486 |
1487 } // namespace v8 | 1487 } // namespace v8 |
1488 | 1488 |
1489 | 1489 |
1490 #ifndef GOOGLE3 | 1490 #ifndef GOOGLE3 |
1491 int main(int argc, char* argv[]) { | 1491 int main(int argc, char* argv[]) { |
1492 return v8::Shell::Main(argc, argv); | 1492 return v8::Shell::Main(argc, argv); |
1493 } | 1493 } |
1494 #endif | 1494 #endif |
OLD | NEW |