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

Side by Side Diff: src/execution.cc

Issue 2861017: [Isolates] Make statics from BootstrapperActive to be instance members (Closed)
Patch Set: Created 10 years, 6 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
« no previous file with comments | « src/contexts.cc ('k') | src/heap.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 #ifdef ENABLE_DEBUGGER_SUPPORT 636 #ifdef ENABLE_DEBUGGER_SUPPORT
637 Object* Execution::DebugBreakHelper() { 637 Object* Execution::DebugBreakHelper() {
638 Isolate* isolate = Isolate::Current(); 638 Isolate* isolate = Isolate::Current();
639 639
640 // Just continue if breaks are disabled. 640 // Just continue if breaks are disabled.
641 if (Debug::disable_break()) { 641 if (Debug::disable_break()) {
642 return isolate->heap()->undefined_value(); 642 return isolate->heap()->undefined_value();
643 } 643 }
644 644
645 // Ignore debug break during bootstrapping. 645 // Ignore debug break during bootstrapping.
646 if (Bootstrapper::IsActive()) { 646 if (isolate->bootstrapper()->IsActive()) {
647 return isolate->heap()->undefined_value(); 647 return isolate->heap()->undefined_value();
648 } 648 }
649 649
650 { 650 {
651 JavaScriptFrameIterator it; 651 JavaScriptFrameIterator it;
652 ASSERT(!it.done()); 652 ASSERT(!it.done());
653 Object* fun = it.frame()->function(); 653 Object* fun = it.frame()->function();
654 if (fun && fun->IsJSFunction()) { 654 if (fun && fun->IsJSFunction()) {
655 // Don't stop in builtin functions. 655 // Don't stop in builtin functions.
656 if (JSFunction::cast(fun)->IsBuiltin()) { 656 if (JSFunction::cast(fun)->IsBuiltin()) {
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 // All allocation spaces other than NEW_SPACE have the same effect. 733 // All allocation spaces other than NEW_SPACE have the same effect.
734 HEAP->CollectAllGarbage(false); 734 HEAP->CollectAllGarbage(false);
735 return v8::Undefined(); 735 return v8::Undefined();
736 } 736 }
737 737
738 738
739 static GCExtension kGCExtension; 739 static GCExtension kGCExtension;
740 v8::DeclareExtension kGCExtensionDeclaration(&kGCExtension); 740 v8::DeclareExtension kGCExtensionDeclaration(&kGCExtension);
741 741
742 } } // namespace v8::internal 742 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/contexts.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698