| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |