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 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
857 PostponeInterruptsScope postpone(isolate); | 857 PostponeInterruptsScope postpone(isolate); |
858 | 858 |
859 Handle<SharedFunctionInfo> shared = info->shared_info(); | 859 Handle<SharedFunctionInfo> shared = info->shared_info(); |
860 int compiled_size = shared->end_position() - shared->start_position(); | 860 int compiled_size = shared->end_position() - shared->start_position(); |
861 isolate->counters()->total_compile_size()->Increment(compiled_size); | 861 isolate->counters()->total_compile_size()->Increment(compiled_size); |
862 info->SetOptimizing(BailoutId::None()); | 862 info->SetOptimizing(BailoutId::None()); |
863 | 863 |
864 { | 864 { |
865 CompilationHandleScope handle_scope(*info); | 865 CompilationHandleScope handle_scope(*info); |
866 | 866 |
867 if (InstallCodeFromOptimizedCodeMap(*info)) return; | 867 if (!FLAG_manual_parallel_recompilation && |
| 868 InstallCodeFromOptimizedCodeMap(*info)) { |
| 869 return; |
| 870 } |
868 | 871 |
869 if (ParserApi::Parse(*info, kNoParsingFlags)) { | 872 if (ParserApi::Parse(*info, kNoParsingFlags)) { |
870 LanguageMode language_mode = info->function()->language_mode(); | 873 LanguageMode language_mode = info->function()->language_mode(); |
871 info->SetLanguageMode(language_mode); | 874 info->SetLanguageMode(language_mode); |
872 shared->set_language_mode(language_mode); | 875 shared->set_language_mode(language_mode); |
873 info->SaveHandles(); | 876 info->SaveHandles(); |
874 | 877 |
875 if (Rewriter::Rewrite(*info) && Scope::Analyze(*info)) { | 878 if (Rewriter::Rewrite(*info) && Scope::Analyze(*info)) { |
876 OptimizingCompiler* compiler = | 879 OptimizingCompiler* compiler = |
877 new(info->zone()) OptimizingCompiler(*info); | 880 new(info->zone()) OptimizingCompiler(*info); |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1051 } | 1054 } |
1052 } | 1055 } |
1053 | 1056 |
1054 GDBJIT(AddCode(Handle<String>(shared->DebugName()), | 1057 GDBJIT(AddCode(Handle<String>(shared->DebugName()), |
1055 Handle<Script>(info->script()), | 1058 Handle<Script>(info->script()), |
1056 Handle<Code>(info->code()), | 1059 Handle<Code>(info->code()), |
1057 info)); | 1060 info)); |
1058 } | 1061 } |
1059 | 1062 |
1060 } } // namespace v8::internal | 1063 } } // namespace v8::internal |
OLD | NEW |