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

Side by Side Diff: src/debug.cc

Issue 660095: Merge revision 3813 to 3930 from bleeding_edge to partial snapshots branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/partial_snapshots/
Patch Set: '' Created 10 years, 10 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/data-flow.cc ('k') | src/debug-debugger.js » ('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 13 matching lines...) Expand all
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #include "v8.h" 28 #include "v8.h"
29 29
30 #include "api.h" 30 #include "api.h"
31 #include "arguments.h" 31 #include "arguments.h"
32 #include "bootstrapper.h" 32 #include "bootstrapper.h"
33 #include "code-stubs.h" 33 #include "code-stubs.h"
34 #include "codegen.h"
34 #include "compilation-cache.h" 35 #include "compilation-cache.h"
35 #include "compiler.h" 36 #include "compiler.h"
36 #include "debug.h" 37 #include "debug.h"
37 #include "execution.h" 38 #include "execution.h"
38 #include "global-handles.h" 39 #include "global-handles.h"
39 #include "ic.h" 40 #include "ic.h"
40 #include "ic-inl.h" 41 #include "ic-inl.h"
41 #include "natives.h" 42 #include "natives.h"
42 #include "stub-cache.h" 43 #include "stub-cache.h"
43 #include "log.h" 44 #include "log.h"
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 // fast case. We need to patch back the keyed store because no 447 // fast case. We need to patch back the keyed store because no
447 // patching happens when running normally. For keyed loads, the 448 // patching happens when running normally. For keyed loads, the
448 // map check will get patched back when running normally after ICs 449 // map check will get patched back when running normally after ICs
449 // have been cleared at GC. 450 // have been cleared at GC.
450 if (code->is_keyed_store_stub()) KeyedStoreIC::RestoreInlinedVersion(pc()); 451 if (code->is_keyed_store_stub()) KeyedStoreIC::RestoreInlinedVersion(pc());
451 } 452 }
452 } 453 }
453 454
454 455
455 bool BreakLocationIterator::IsDebuggerStatement() { 456 bool BreakLocationIterator::IsDebuggerStatement() {
456 if (RelocInfo::IsCodeTarget(rmode())) { 457 return RelocInfo::DEBUG_BREAK == rmode();
457 Address target = original_rinfo()->target_address();
458 Code* code = Code::GetCodeFromTargetAddress(target);
459 if (code->kind() == Code::STUB) {
460 CodeStub::Major major_key = code->major_key();
461 return (major_key == CodeStub::DebuggerStatement);
462 }
463 }
464 return false;
465 } 458 }
466 459
467 460
468 Object* BreakLocationIterator::BreakPointObjects() { 461 Object* BreakLocationIterator::BreakPointObjects() {
469 return debug_info_->GetBreakPointObjects(code_position()); 462 return debug_info_->GetBreakPointObjects(code_position());
470 } 463 }
471 464
472 465
473 // Clear out all the debug break code. This is ONLY supposed to be used when 466 // Clear out all the debug break code. This is ONLY supposed to be used when
474 // shutting down the debugger as it will leave the break point information in 467 // shutting down the debugger as it will leave the break point information in
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 // Compile the script. 682 // Compile the script.
690 bool allow_natives_syntax = FLAG_allow_natives_syntax; 683 bool allow_natives_syntax = FLAG_allow_natives_syntax;
691 FLAG_allow_natives_syntax = true; 684 FLAG_allow_natives_syntax = true;
692 Handle<JSFunction> boilerplate; 685 Handle<JSFunction> boilerplate;
693 boilerplate = Compiler::Compile(source_code, 686 boilerplate = Compiler::Compile(source_code,
694 script_name, 687 script_name,
695 0, 688 0,
696 0, 689 0,
697 NULL, 690 NULL,
698 NULL, 691 NULL,
692 Handle<String>::null(),
699 NATIVES_CODE); 693 NATIVES_CODE);
700 FLAG_allow_natives_syntax = allow_natives_syntax; 694 FLAG_allow_natives_syntax = allow_natives_syntax;
701 695
702 // Silently ignore stack overflows during compilation. 696 // Silently ignore stack overflows during compilation.
703 if (boilerplate.is_null()) { 697 if (boilerplate.is_null()) {
704 ASSERT(Top::has_pending_exception()); 698 ASSERT(Top::has_pending_exception());
705 Top::clear_pending_exception(); 699 Top::clear_pending_exception();
706 return false; 700 return false;
707 } 701 }
708 702
(...skipping 2090 matching lines...) Expand 10 before | Expand all | Expand 10 after
2799 { 2793 {
2800 Locker locker; 2794 Locker locker;
2801 Debugger::CallMessageDispatchHandler(); 2795 Debugger::CallMessageDispatchHandler();
2802 } 2796 }
2803 } 2797 }
2804 } 2798 }
2805 2799
2806 #endif // ENABLE_DEBUGGER_SUPPORT 2800 #endif // ENABLE_DEBUGGER_SUPPORT
2807 2801
2808 } } // namespace v8::internal 2802 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/data-flow.cc ('k') | src/debug-debugger.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698