| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 872 | 872 |
| 873 if (stack_guard->IsGCRequest()) { | 873 if (stack_guard->IsGCRequest()) { |
| 874 isolate->heap()->CollectAllGarbage(false); | 874 isolate->heap()->CollectAllGarbage(false); |
| 875 stack_guard->Continue(GC_REQUEST); | 875 stack_guard->Continue(GC_REQUEST); |
| 876 } | 876 } |
| 877 | 877 |
| 878 isolate->counters()->stack_interrupts()->Increment(); | 878 isolate->counters()->stack_interrupts()->Increment(); |
| 879 if (stack_guard->IsRuntimeProfilerTick()) { | 879 if (stack_guard->IsRuntimeProfilerTick()) { |
| 880 isolate->counters()->runtime_profiler_ticks()->Increment(); | 880 isolate->counters()->runtime_profiler_ticks()->Increment(); |
| 881 stack_guard->Continue(RUNTIME_PROFILER_TICK); | 881 stack_guard->Continue(RUNTIME_PROFILER_TICK); |
| 882 isolate->heap()->VisualizeCrankshaft(); |
| 882 isolate->runtime_profiler()->OptimizeNow(); | 883 isolate->runtime_profiler()->OptimizeNow(); |
| 884 isolate->heap()->VisualizeCrankshaftDone(); |
| 883 } | 885 } |
| 884 #ifdef ENABLE_DEBUGGER_SUPPORT | 886 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 885 if (stack_guard->IsDebugBreak() || stack_guard->IsDebugCommand()) { | 887 if (stack_guard->IsDebugBreak() || stack_guard->IsDebugCommand()) { |
| 886 DebugBreakHelper(); | 888 DebugBreakHelper(); |
| 887 } | 889 } |
| 888 #endif | 890 #endif |
| 889 if (stack_guard->IsPreempted()) RuntimePreempt(); | 891 if (stack_guard->IsPreempted()) RuntimePreempt(); |
| 890 if (stack_guard->IsTerminateExecution()) { | 892 if (stack_guard->IsTerminateExecution()) { |
| 891 stack_guard->Continue(TERMINATE); | 893 stack_guard->Continue(TERMINATE); |
| 892 return isolate->TerminateExecution(); | 894 return isolate->TerminateExecution(); |
| 893 } | 895 } |
| 894 if (stack_guard->IsInterrupted()) { | 896 if (stack_guard->IsInterrupted()) { |
| 895 stack_guard->Continue(INTERRUPT); | 897 stack_guard->Continue(INTERRUPT); |
| 896 return isolate->StackOverflow(); | 898 return isolate->StackOverflow(); |
| 897 } | 899 } |
| 898 return isolate->heap()->undefined_value(); | 900 return isolate->heap()->undefined_value(); |
| 899 } | 901 } |
| 900 | 902 |
| 901 } } // namespace v8::internal | 903 } } // namespace v8::internal |
| OLD | NEW |