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 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 } | 812 } |
813 } | 813 } |
814 } | 814 } |
815 | 815 |
816 ASSERT(info->code().is_null()); | 816 ASSERT(info->code().is_null()); |
817 return false; | 817 return false; |
818 } | 818 } |
819 | 819 |
820 | 820 |
821 void Compiler::RecompileParallel(Handle<JSFunction> closure) { | 821 void Compiler::RecompileParallel(Handle<JSFunction> closure) { |
| 822 if (closure->IsInRecompileQueue()) return; |
822 ASSERT(closure->IsMarkedForParallelRecompilation()); | 823 ASSERT(closure->IsMarkedForParallelRecompilation()); |
823 if (closure->IsInRecompileQueue()) return; | |
824 | 824 |
825 Isolate* isolate = closure->GetIsolate(); | 825 Isolate* isolate = closure->GetIsolate(); |
826 if (!isolate->optimizing_compiler_thread()->IsQueueAvailable()) { | 826 if (!isolate->optimizing_compiler_thread()->IsQueueAvailable()) { |
827 if (FLAG_trace_parallel_recompilation) { | 827 if (FLAG_trace_parallel_recompilation) { |
828 PrintF(" ** Compilation queue, will retry opting on next run.\n"); | 828 PrintF(" ** Compilation queue, will retry opting on next run.\n"); |
829 } | 829 } |
830 return; | 830 return; |
831 } | 831 } |
832 | 832 |
833 SmartPointer<CompilationInfo> info(new CompilationInfoWithZone(closure)); | 833 SmartPointer<CompilationInfo> info(new CompilationInfoWithZone(closure)); |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1027 } | 1027 } |
1028 } | 1028 } |
1029 | 1029 |
1030 GDBJIT(AddCode(Handle<String>(shared->DebugName()), | 1030 GDBJIT(AddCode(Handle<String>(shared->DebugName()), |
1031 Handle<Script>(info->script()), | 1031 Handle<Script>(info->script()), |
1032 Handle<Code>(info->code()), | 1032 Handle<Code>(info->code()), |
1033 info)); | 1033 info)); |
1034 } | 1034 } |
1035 | 1035 |
1036 } } // namespace v8::internal | 1036 } } // namespace v8::internal |
OLD | NEW |