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

Side by Side Diff: src/serialize.cc

Issue 171041: Use root array to load roots in generated ARM code.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 4 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/heap.h ('k') | test/cctest/test-disasm-arm.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 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 665
666 // Miscellaneous 666 // Miscellaneous
667 Add(ExternalReference::builtin_passed_function().address(), 667 Add(ExternalReference::builtin_passed_function().address(),
668 UNCLASSIFIED, 668 UNCLASSIFIED,
669 1, 669 1,
670 "Builtins::builtin_passed_function"); 670 "Builtins::builtin_passed_function");
671 Add(ExternalReference::the_hole_value_location().address(), 671 Add(ExternalReference::the_hole_value_location().address(),
672 UNCLASSIFIED, 672 UNCLASSIFIED,
673 2, 673 2,
674 "Factory::the_hole_value().location()"); 674 "Factory::the_hole_value().location()");
675 Add(ExternalReference::roots_address().address(),
676 UNCLASSIFIED,
677 3,
678 "Heap::roots_address()");
675 Add(ExternalReference::address_of_stack_guard_limit().address(), 679 Add(ExternalReference::address_of_stack_guard_limit().address(),
676 UNCLASSIFIED, 680 UNCLASSIFIED,
677 3, 681 4,
678 "StackGuard::address_of_jslimit()"); 682 "StackGuard::address_of_jslimit()");
679 Add(ExternalReference::address_of_regexp_stack_limit().address(), 683 Add(ExternalReference::address_of_regexp_stack_limit().address(),
680 UNCLASSIFIED, 684 UNCLASSIFIED,
681 4, 685 5,
682 "RegExpStack::limit_address()"); 686 "RegExpStack::limit_address()");
683 Add(ExternalReference::new_space_start().address(), 687 Add(ExternalReference::new_space_start().address(),
684 UNCLASSIFIED, 688 UNCLASSIFIED,
685 6, 689 6,
686 "Heap::NewSpaceStart()"); 690 "Heap::NewSpaceStart()");
687 Add(ExternalReference::heap_always_allocate_scope_depth().address(), 691 Add(ExternalReference::heap_always_allocate_scope_depth().address(),
688 UNCLASSIFIED, 692 UNCLASSIFIED,
689 7, 693 7,
690 "Heap::always_allocate_scope_depth()"); 694 "Heap::always_allocate_scope_depth()");
691 Add(ExternalReference::new_space_allocation_limit_address().address(), 695 Add(ExternalReference::new_space_allocation_limit_address().address(),
692 UNCLASSIFIED, 696 UNCLASSIFIED,
693 8, 697 8,
694 "Heap::NewSpaceAllocationLimitAddress()"); 698 "Heap::NewSpaceAllocationLimitAddress()");
695 Add(ExternalReference::new_space_allocation_top_address().address(), 699 Add(ExternalReference::new_space_allocation_top_address().address(),
696 UNCLASSIFIED, 700 UNCLASSIFIED,
697 9, 701 9,
698 "Heap::NewSpaceAllocationTopAddress()"); 702 "Heap::NewSpaceAllocationTopAddress()");
699 #ifdef ENABLE_DEBUGGER_SUPPORT 703 #ifdef ENABLE_DEBUGGER_SUPPORT
700 Add(ExternalReference::debug_break().address(), 704 Add(ExternalReference::debug_break().address(),
701 UNCLASSIFIED, 705 UNCLASSIFIED,
702 5, 706 10,
703 "Debug::Break()"); 707 "Debug::Break()");
704 Add(ExternalReference::debug_step_in_fp_address().address(), 708 Add(ExternalReference::debug_step_in_fp_address().address(),
705 UNCLASSIFIED, 709 UNCLASSIFIED,
706 10, 710 11,
707 "Debug::step_in_fp_addr()"); 711 "Debug::step_in_fp_addr()");
708 #endif 712 #endif
709 Add(ExternalReference::double_fp_operation(Token::ADD).address(), 713 Add(ExternalReference::double_fp_operation(Token::ADD).address(),
710 UNCLASSIFIED, 714 UNCLASSIFIED,
711 11, 715 12,
712 "add_two_doubles"); 716 "add_two_doubles");
713 Add(ExternalReference::double_fp_operation(Token::SUB).address(), 717 Add(ExternalReference::double_fp_operation(Token::SUB).address(),
714 UNCLASSIFIED, 718 UNCLASSIFIED,
715 12, 719 13,
716 "sub_two_doubles"); 720 "sub_two_doubles");
717 Add(ExternalReference::double_fp_operation(Token::MUL).address(), 721 Add(ExternalReference::double_fp_operation(Token::MUL).address(),
718 UNCLASSIFIED, 722 UNCLASSIFIED,
719 13, 723 14,
720 "mul_two_doubles"); 724 "mul_two_doubles");
721 Add(ExternalReference::double_fp_operation(Token::DIV).address(), 725 Add(ExternalReference::double_fp_operation(Token::DIV).address(),
722 UNCLASSIFIED, 726 UNCLASSIFIED,
723 14, 727 15,
724 "div_two_doubles"); 728 "div_two_doubles");
725 Add(ExternalReference::double_fp_operation(Token::MOD).address(), 729 Add(ExternalReference::double_fp_operation(Token::MOD).address(),
726 UNCLASSIFIED, 730 UNCLASSIFIED,
727 15, 731 16,
728 "mod_two_doubles"); 732 "mod_two_doubles");
729 Add(ExternalReference::compare_doubles().address(), 733 Add(ExternalReference::compare_doubles().address(),
730 UNCLASSIFIED, 734 UNCLASSIFIED,
731 16, 735 17,
732 "compare_doubles"); 736 "compare_doubles");
733 } 737 }
734 738
735 739
736 ExternalReferenceEncoder::ExternalReferenceEncoder() 740 ExternalReferenceEncoder::ExternalReferenceEncoder()
737 : encodings_(Match) { 741 : encodings_(Match) {
738 ExternalReferenceTable* external_references = 742 ExternalReferenceTable* external_references =
739 ExternalReferenceTable::instance(); 743 ExternalReferenceTable::instance();
740 for (int i = 0; i < external_references->size(); ++i) { 744 for (int i = 0; i < external_references->size(); ++i) {
741 Put(external_references->address(i), i); 745 Put(external_references->address(i), i);
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after
1653 ASSERT(index < large_objects_.length()); 1657 ASSERT(index < large_objects_.length());
1654 } 1658 }
1655 return large_objects_[index]; // s.page_offset() is ignored. 1659 return large_objects_[index]; // s.page_offset() is ignored.
1656 } 1660 }
1657 UNREACHABLE(); 1661 UNREACHABLE();
1658 return NULL; 1662 return NULL;
1659 } 1663 }
1660 1664
1661 1665
1662 } } // namespace v8::internal 1666 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.h ('k') | test/cctest/test-disasm-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698