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

Side by Side Diff: src/execution.cc

Issue 9490004: Thread the current isolate through a few places, avoiding Isolate::Current(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 months 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 | « src/execution.h ('k') | src/ia32/regexp-macro-assembler-ia32.cc » ('j') | no next file with comments »
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 854 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 865
866 // Notify the debug event listeners. Indicate auto continue if the break was 866 // Notify the debug event listeners. Indicate auto continue if the break was
867 // a debug command break. 867 // a debug command break.
868 isolate->debugger()->OnDebugBreak(isolate->factory()->undefined_value(), 868 isolate->debugger()->OnDebugBreak(isolate->factory()->undefined_value(),
869 debug_command_only); 869 debug_command_only);
870 } 870 }
871 871
872 872
873 #endif 873 #endif
874 874
875 MaybeObject* Execution::HandleStackGuardInterrupt() { 875 MaybeObject* Execution::HandleStackGuardInterrupt(Isolate* isolate) {
876 Isolate* isolate = Isolate::Current();
877 StackGuard* stack_guard = isolate->stack_guard(); 876 StackGuard* stack_guard = isolate->stack_guard();
878 877
879 if (stack_guard->IsGCRequest()) { 878 if (stack_guard->IsGCRequest()) {
880 isolate->heap()->CollectAllGarbage(false, "StackGuard GC request"); 879 isolate->heap()->CollectAllGarbage(false, "StackGuard GC request");
881 stack_guard->Continue(GC_REQUEST); 880 stack_guard->Continue(GC_REQUEST);
882 } 881 }
883 882
884 isolate->counters()->stack_interrupts()->Increment(); 883 isolate->counters()->stack_interrupts()->Increment();
885 // If FLAG_count_based_interrupts, every interrupt is a profiler interrupt. 884 // If FLAG_count_based_interrupts, every interrupt is a profiler interrupt.
886 if (FLAG_count_based_interrupts || 885 if (FLAG_count_based_interrupts ||
(...skipping 14 matching lines...) Expand all
901 } 900 }
902 if (stack_guard->IsInterrupted()) { 901 if (stack_guard->IsInterrupted()) {
903 stack_guard->Continue(INTERRUPT); 902 stack_guard->Continue(INTERRUPT);
904 return isolate->StackOverflow(); 903 return isolate->StackOverflow();
905 } 904 }
906 return isolate->heap()->undefined_value(); 905 return isolate->heap()->undefined_value();
907 } 906 }
908 907
909 908
910 } } // namespace v8::internal 909 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/execution.h ('k') | src/ia32/regexp-macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698