| OLD | NEW |
| 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 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 957 result = RunMain(argc, argv); | 957 result = RunMain(argc, argv); |
| 958 } | 958 } |
| 959 printf("======== Full Deoptimization =======\n"); | 959 printf("======== Full Deoptimization =======\n"); |
| 960 v8::Testing::DeoptimizeAll(); | 960 v8::Testing::DeoptimizeAll(); |
| 961 } else { | 961 } else { |
| 962 result = RunMain(argc, argv); | 962 result = RunMain(argc, argv); |
| 963 } | 963 } |
| 964 | 964 |
| 965 #ifdef ENABLE_DEBUGGER_SUPPORT | 965 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 966 if (i::FLAG_remote_debugger) { | 966 if (i::FLAG_remote_debugger) { |
| 967 InstallUtilityScript(); |
| 967 RunRemoteDebugger(i::FLAG_debugger_port); | 968 RunRemoteDebugger(i::FLAG_debugger_port); |
| 968 return 0; | 969 return 0; |
| 969 } | 970 } |
| 970 #endif | 971 #endif |
| 971 | 972 |
| 972 if (run_shell) { | 973 if (run_shell) { |
| 973 InstallUtilityScript(); | 974 InstallUtilityScript(); |
| 974 RunShell(); | 975 RunShell(); |
| 975 } | 976 } |
| 976 | 977 |
| 977 v8::V8::Dispose(); | 978 v8::V8::Dispose(); |
| 978 | 979 |
| 979 return result; | 980 return result; |
| 980 } | 981 } |
| 981 | 982 |
| 982 } // namespace v8 | 983 } // namespace v8 |
| 983 | 984 |
| 984 | 985 |
| 985 #ifndef GOOGLE3 | 986 #ifndef GOOGLE3 |
| 986 int main(int argc, char* argv[]) { | 987 int main(int argc, char* argv[]) { |
| 987 return v8::Shell::Main(argc, argv); | 988 return v8::Shell::Main(argc, argv); |
| 988 } | 989 } |
| 989 #endif | 990 #endif |
| OLD | NEW |