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

Side by Side Diff: src/execution.cc

Issue 11419012: Introduce helper functions to test parallel recompilation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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') | src/runtime.cc » ('J')
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 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 stack_guard->Continue(GC_REQUEST); 930 stack_guard->Continue(GC_REQUEST);
931 } 931 }
932 932
933 if (stack_guard->IsCodeReadyEvent()) { 933 if (stack_guard->IsCodeReadyEvent()) {
934 ASSERT(FLAG_parallel_recompilation); 934 ASSERT(FLAG_parallel_recompilation);
935 if (FLAG_trace_parallel_recompilation) { 935 if (FLAG_trace_parallel_recompilation) {
936 PrintF(" ** CODE_READY event received.\n"); 936 PrintF(" ** CODE_READY event received.\n");
937 } 937 }
938 stack_guard->Continue(CODE_READY); 938 stack_guard->Continue(CODE_READY);
939 } 939 }
940 if (!stack_guard->IsTerminateExecution()) { 940 if (!stack_guard->IsTerminateExecution() &&
941 !FLAG_manual_parallel_recompilation) {
941 isolate->optimizing_compiler_thread()->InstallOptimizedFunctions(); 942 isolate->optimizing_compiler_thread()->InstallOptimizedFunctions();
942 } 943 }
943 944
944 isolate->counters()->stack_interrupts()->Increment(); 945 isolate->counters()->stack_interrupts()->Increment();
945 // If FLAG_count_based_interrupts, every interrupt is a profiler interrupt. 946 // If FLAG_count_based_interrupts, every interrupt is a profiler interrupt.
946 if (FLAG_count_based_interrupts || 947 if (FLAG_count_based_interrupts ||
947 stack_guard->IsRuntimeProfilerTick()) { 948 stack_guard->IsRuntimeProfilerTick()) {
948 isolate->counters()->runtime_profiler_ticks()->Increment(); 949 isolate->counters()->runtime_profiler_ticks()->Increment();
949 stack_guard->Continue(RUNTIME_PROFILER_TICK); 950 stack_guard->Continue(RUNTIME_PROFILER_TICK);
950 isolate->runtime_profiler()->OptimizeNow(); 951 isolate->runtime_profiler()->OptimizeNow();
(...skipping 10 matching lines...) Expand all
961 } 962 }
962 if (stack_guard->IsInterrupted()) { 963 if (stack_guard->IsInterrupted()) {
963 stack_guard->Continue(INTERRUPT); 964 stack_guard->Continue(INTERRUPT);
964 return isolate->StackOverflow(); 965 return isolate->StackOverflow();
965 } 966 }
966 return isolate->heap()->undefined_value(); 967 return isolate->heap()->undefined_value();
967 } 968 }
968 969
969 970
970 } } // namespace v8::internal 971 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | src/runtime.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698