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 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
921 } | 921 } |
922 stack_guard->Continue(CODE_READY); | 922 stack_guard->Continue(CODE_READY); |
923 } | 923 } |
924 if (!stack_guard->IsTerminateExecution() && | 924 if (!stack_guard->IsTerminateExecution() && |
925 !FLAG_manual_parallel_recompilation) { | 925 !FLAG_manual_parallel_recompilation) { |
926 isolate->optimizing_compiler_thread()->InstallOptimizedFunctions(); | 926 isolate->optimizing_compiler_thread()->InstallOptimizedFunctions(); |
927 } | 927 } |
928 | 928 |
929 isolate->counters()->stack_interrupts()->Increment(); | 929 isolate->counters()->stack_interrupts()->Increment(); |
930 isolate->counters()->runtime_profiler_ticks()->Increment(); | 930 isolate->counters()->runtime_profiler_ticks()->Increment(); |
931 stack_guard->Continue(RUNTIME_PROFILER_TICK); | |
932 isolate->runtime_profiler()->OptimizeNow(); | 931 isolate->runtime_profiler()->OptimizeNow(); |
933 #ifdef ENABLE_DEBUGGER_SUPPORT | 932 #ifdef ENABLE_DEBUGGER_SUPPORT |
934 if (stack_guard->IsDebugBreak() || stack_guard->IsDebugCommand()) { | 933 if (stack_guard->IsDebugBreak() || stack_guard->IsDebugCommand()) { |
935 DebugBreakHelper(); | 934 DebugBreakHelper(); |
936 } | 935 } |
937 #endif | 936 #endif |
938 if (stack_guard->IsPreempted()) RuntimePreempt(); | 937 if (stack_guard->IsPreempted()) RuntimePreempt(); |
939 if (stack_guard->IsTerminateExecution()) { | 938 if (stack_guard->IsTerminateExecution()) { |
940 stack_guard->Continue(TERMINATE); | 939 stack_guard->Continue(TERMINATE); |
941 return isolate->TerminateExecution(); | 940 return isolate->TerminateExecution(); |
942 } | 941 } |
943 if (stack_guard->IsInterrupted()) { | 942 if (stack_guard->IsInterrupted()) { |
944 stack_guard->Continue(INTERRUPT); | 943 stack_guard->Continue(INTERRUPT); |
945 return isolate->StackOverflow(); | 944 return isolate->StackOverflow(); |
946 } | 945 } |
947 return isolate->heap()->undefined_value(); | 946 return isolate->heap()->undefined_value(); |
948 } | 947 } |
949 | 948 |
950 | 949 |
951 } } // namespace v8::internal | 950 } } // namespace v8::internal |
OLD | NEW |