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

Side by Side Diff: src/serialize.cc

Issue 345048: Fix issue 493: Infinite loop when debug break is set when entering function.apply (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 1 month 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/ia32/regexp-macro-assembler-ia32.cc ('k') | src/v8.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 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 1, 681 1,
682 "Builtins::builtin_passed_function"); 682 "Builtins::builtin_passed_function");
683 Add(ExternalReference::the_hole_value_location().address(), 683 Add(ExternalReference::the_hole_value_location().address(),
684 UNCLASSIFIED, 684 UNCLASSIFIED,
685 2, 685 2,
686 "Factory::the_hole_value().location()"); 686 "Factory::the_hole_value().location()");
687 Add(ExternalReference::roots_address().address(), 687 Add(ExternalReference::roots_address().address(),
688 UNCLASSIFIED, 688 UNCLASSIFIED,
689 3, 689 3,
690 "Heap::roots_address()"); 690 "Heap::roots_address()");
691 Add(ExternalReference::address_of_stack_guard_limit().address(), 691 Add(ExternalReference::address_of_stack_limit().address(),
692 UNCLASSIFIED, 692 UNCLASSIFIED,
693 4, 693 4,
694 "StackGuard::address_of_jslimit()"); 694 "StackGuard::address_of_jslimit()");
695 Add(ExternalReference::address_of_real_stack_limit().address(),
696 UNCLASSIFIED,
697 5,
698 "StackGuard::address_of_real_jslimit()");
695 Add(ExternalReference::address_of_regexp_stack_limit().address(), 699 Add(ExternalReference::address_of_regexp_stack_limit().address(),
696 UNCLASSIFIED, 700 UNCLASSIFIED,
697 5, 701 6,
698 "RegExpStack::limit_address()"); 702 "RegExpStack::limit_address()");
699 Add(ExternalReference::new_space_start().address(), 703 Add(ExternalReference::new_space_start().address(),
700 UNCLASSIFIED, 704 UNCLASSIFIED,
701 6, 705 7,
702 "Heap::NewSpaceStart()"); 706 "Heap::NewSpaceStart()");
703 Add(ExternalReference::heap_always_allocate_scope_depth().address(), 707 Add(ExternalReference::heap_always_allocate_scope_depth().address(),
704 UNCLASSIFIED, 708 UNCLASSIFIED,
705 7, 709 8,
706 "Heap::always_allocate_scope_depth()"); 710 "Heap::always_allocate_scope_depth()");
707 Add(ExternalReference::new_space_allocation_limit_address().address(), 711 Add(ExternalReference::new_space_allocation_limit_address().address(),
708 UNCLASSIFIED, 712 UNCLASSIFIED,
709 8, 713 9,
710 "Heap::NewSpaceAllocationLimitAddress()"); 714 "Heap::NewSpaceAllocationLimitAddress()");
711 Add(ExternalReference::new_space_allocation_top_address().address(), 715 Add(ExternalReference::new_space_allocation_top_address().address(),
712 UNCLASSIFIED, 716 UNCLASSIFIED,
713 9, 717 10,
714 "Heap::NewSpaceAllocationTopAddress()"); 718 "Heap::NewSpaceAllocationTopAddress()");
715 #ifdef ENABLE_DEBUGGER_SUPPORT 719 #ifdef ENABLE_DEBUGGER_SUPPORT
716 Add(ExternalReference::debug_break().address(), 720 Add(ExternalReference::debug_break().address(),
717 UNCLASSIFIED, 721 UNCLASSIFIED,
718 10, 722 11,
719 "Debug::Break()"); 723 "Debug::Break()");
720 Add(ExternalReference::debug_step_in_fp_address().address(), 724 Add(ExternalReference::debug_step_in_fp_address().address(),
721 UNCLASSIFIED, 725 UNCLASSIFIED,
722 11, 726 12,
723 "Debug::step_in_fp_addr()"); 727 "Debug::step_in_fp_addr()");
724 #endif 728 #endif
725 Add(ExternalReference::double_fp_operation(Token::ADD).address(), 729 Add(ExternalReference::double_fp_operation(Token::ADD).address(),
726 UNCLASSIFIED, 730 UNCLASSIFIED,
727 12, 731 13,
728 "add_two_doubles"); 732 "add_two_doubles");
729 Add(ExternalReference::double_fp_operation(Token::SUB).address(), 733 Add(ExternalReference::double_fp_operation(Token::SUB).address(),
730 UNCLASSIFIED, 734 UNCLASSIFIED,
731 13, 735 14,
732 "sub_two_doubles"); 736 "sub_two_doubles");
733 Add(ExternalReference::double_fp_operation(Token::MUL).address(), 737 Add(ExternalReference::double_fp_operation(Token::MUL).address(),
734 UNCLASSIFIED, 738 UNCLASSIFIED,
735 14, 739 15,
736 "mul_two_doubles"); 740 "mul_two_doubles");
737 Add(ExternalReference::double_fp_operation(Token::DIV).address(), 741 Add(ExternalReference::double_fp_operation(Token::DIV).address(),
738 UNCLASSIFIED, 742 UNCLASSIFIED,
739 15, 743 16,
740 "div_two_doubles"); 744 "div_two_doubles");
741 Add(ExternalReference::double_fp_operation(Token::MOD).address(), 745 Add(ExternalReference::double_fp_operation(Token::MOD).address(),
742 UNCLASSIFIED, 746 UNCLASSIFIED,
743 16, 747 17,
744 "mod_two_doubles"); 748 "mod_two_doubles");
745 Add(ExternalReference::compare_doubles().address(), 749 Add(ExternalReference::compare_doubles().address(),
746 UNCLASSIFIED, 750 UNCLASSIFIED,
747 17, 751 18,
748 "compare_doubles"); 752 "compare_doubles");
749 #ifdef V8_NATIVE_REGEXP 753 #ifdef V8_NATIVE_REGEXP
750 Add(ExternalReference::re_case_insensitive_compare_uc16().address(), 754 Add(ExternalReference::re_case_insensitive_compare_uc16().address(),
751 UNCLASSIFIED, 755 UNCLASSIFIED,
752 18, 756 19,
753 "NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()"); 757 "NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()");
754 Add(ExternalReference::re_check_stack_guard_state().address(), 758 Add(ExternalReference::re_check_stack_guard_state().address(),
755 UNCLASSIFIED, 759 UNCLASSIFIED,
756 19, 760 20,
757 "RegExpMacroAssembler*::CheckStackGuardState()"); 761 "RegExpMacroAssembler*::CheckStackGuardState()");
758 Add(ExternalReference::re_grow_stack().address(), 762 Add(ExternalReference::re_grow_stack().address(),
759 UNCLASSIFIED, 763 UNCLASSIFIED,
760 20, 764 21,
761 "NativeRegExpMacroAssembler::GrowStack()"); 765 "NativeRegExpMacroAssembler::GrowStack()");
762 #endif 766 #endif
763 } 767 }
764 768
765 769
766 ExternalReferenceEncoder::ExternalReferenceEncoder() 770 ExternalReferenceEncoder::ExternalReferenceEncoder()
767 : encodings_(Match) { 771 : encodings_(Match) {
768 ExternalReferenceTable* external_references = 772 ExternalReferenceTable* external_references =
769 ExternalReferenceTable::instance(); 773 ExternalReferenceTable::instance();
770 for (int i = 0; i < external_references->size(); ++i) { 774 for (int i = 0; i < external_references->size(); ++i) {
(...skipping 1490 matching lines...) Expand 10 before | Expand all | Expand 10 after
2261 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); 2265 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize);
2262 } 2266 }
2263 } 2267 }
2264 int allocation_address = fullness_[space]; 2268 int allocation_address = fullness_[space];
2265 fullness_[space] = allocation_address + size; 2269 fullness_[space] = allocation_address + size;
2266 return allocation_address; 2270 return allocation_address;
2267 } 2271 }
2268 2272
2269 2273
2270 } } // namespace v8::internal 2274 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/regexp-macro-assembler-ia32.cc ('k') | src/v8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698