| 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 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(), | 675 Add(ExternalReference::address_of_stack_guard_limit().address(), |
| 676 UNCLASSIFIED, | 676 UNCLASSIFIED, |
| 677 3, | 677 3, |
| 678 "Heap::roots_address()"); | |
| 679 Add(ExternalReference::address_of_stack_guard_limit().address(), | |
| 680 UNCLASSIFIED, | |
| 681 4, | |
| 682 "StackGuard::address_of_jslimit()"); | 678 "StackGuard::address_of_jslimit()"); |
| 683 Add(ExternalReference::address_of_regexp_stack_limit().address(), | 679 Add(ExternalReference::address_of_regexp_stack_limit().address(), |
| 684 UNCLASSIFIED, | 680 UNCLASSIFIED, |
| 685 5, | 681 4, |
| 686 "RegExpStack::limit_address()"); | 682 "RegExpStack::limit_address()"); |
| 687 Add(ExternalReference::new_space_start().address(), | 683 Add(ExternalReference::new_space_start().address(), |
| 688 UNCLASSIFIED, | 684 UNCLASSIFIED, |
| 689 6, | 685 6, |
| 690 "Heap::NewSpaceStart()"); | 686 "Heap::NewSpaceStart()"); |
| 691 Add(ExternalReference::heap_always_allocate_scope_depth().address(), | 687 Add(ExternalReference::heap_always_allocate_scope_depth().address(), |
| 692 UNCLASSIFIED, | 688 UNCLASSIFIED, |
| 693 7, | 689 7, |
| 694 "Heap::always_allocate_scope_depth()"); | 690 "Heap::always_allocate_scope_depth()"); |
| 695 Add(ExternalReference::new_space_allocation_limit_address().address(), | 691 Add(ExternalReference::new_space_allocation_limit_address().address(), |
| 696 UNCLASSIFIED, | 692 UNCLASSIFIED, |
| 697 8, | 693 8, |
| 698 "Heap::NewSpaceAllocationLimitAddress()"); | 694 "Heap::NewSpaceAllocationLimitAddress()"); |
| 699 Add(ExternalReference::new_space_allocation_top_address().address(), | 695 Add(ExternalReference::new_space_allocation_top_address().address(), |
| 700 UNCLASSIFIED, | 696 UNCLASSIFIED, |
| 701 9, | 697 9, |
| 702 "Heap::NewSpaceAllocationTopAddress()"); | 698 "Heap::NewSpaceAllocationTopAddress()"); |
| 703 #ifdef ENABLE_DEBUGGER_SUPPORT | 699 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 704 Add(ExternalReference::debug_break().address(), | 700 Add(ExternalReference::debug_break().address(), |
| 705 UNCLASSIFIED, | 701 UNCLASSIFIED, |
| 706 10, | 702 5, |
| 707 "Debug::Break()"); | 703 "Debug::Break()"); |
| 708 Add(ExternalReference::debug_step_in_fp_address().address(), | 704 Add(ExternalReference::debug_step_in_fp_address().address(), |
| 709 UNCLASSIFIED, | 705 UNCLASSIFIED, |
| 710 11, | 706 10, |
| 711 "Debug::step_in_fp_addr()"); | 707 "Debug::step_in_fp_addr()"); |
| 712 #endif | 708 #endif |
| 713 Add(ExternalReference::double_fp_operation(Token::ADD).address(), | 709 Add(ExternalReference::double_fp_operation(Token::ADD).address(), |
| 714 UNCLASSIFIED, | 710 UNCLASSIFIED, |
| 715 12, | 711 11, |
| 716 "add_two_doubles"); | 712 "add_two_doubles"); |
| 717 Add(ExternalReference::double_fp_operation(Token::SUB).address(), | 713 Add(ExternalReference::double_fp_operation(Token::SUB).address(), |
| 718 UNCLASSIFIED, | 714 UNCLASSIFIED, |
| 719 13, | 715 12, |
| 720 "sub_two_doubles"); | 716 "sub_two_doubles"); |
| 721 Add(ExternalReference::double_fp_operation(Token::MUL).address(), | 717 Add(ExternalReference::double_fp_operation(Token::MUL).address(), |
| 722 UNCLASSIFIED, | 718 UNCLASSIFIED, |
| 723 14, | 719 13, |
| 724 "mul_two_doubles"); | 720 "mul_two_doubles"); |
| 725 Add(ExternalReference::double_fp_operation(Token::DIV).address(), | 721 Add(ExternalReference::double_fp_operation(Token::DIV).address(), |
| 726 UNCLASSIFIED, | 722 UNCLASSIFIED, |
| 727 15, | 723 14, |
| 728 "div_two_doubles"); | 724 "div_two_doubles"); |
| 729 Add(ExternalReference::double_fp_operation(Token::MOD).address(), | 725 Add(ExternalReference::double_fp_operation(Token::MOD).address(), |
| 730 UNCLASSIFIED, | 726 UNCLASSIFIED, |
| 731 16, | 727 15, |
| 732 "mod_two_doubles"); | 728 "mod_two_doubles"); |
| 733 Add(ExternalReference::compare_doubles().address(), | 729 Add(ExternalReference::compare_doubles().address(), |
| 734 UNCLASSIFIED, | 730 UNCLASSIFIED, |
| 735 17, | 731 16, |
| 736 "compare_doubles"); | 732 "compare_doubles"); |
| 737 } | 733 } |
| 738 | 734 |
| 739 | 735 |
| 740 ExternalReferenceEncoder::ExternalReferenceEncoder() | 736 ExternalReferenceEncoder::ExternalReferenceEncoder() |
| 741 : encodings_(Match) { | 737 : encodings_(Match) { |
| 742 ExternalReferenceTable* external_references = | 738 ExternalReferenceTable* external_references = |
| 743 ExternalReferenceTable::instance(); | 739 ExternalReferenceTable::instance(); |
| 744 for (int i = 0; i < external_references->size(); ++i) { | 740 for (int i = 0; i < external_references->size(); ++i) { |
| 745 Put(external_references->address(i), i); | 741 Put(external_references->address(i), i); |
| (...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1657 ASSERT(index < large_objects_.length()); | 1653 ASSERT(index < large_objects_.length()); |
| 1658 } | 1654 } |
| 1659 return large_objects_[index]; // s.page_offset() is ignored. | 1655 return large_objects_[index]; // s.page_offset() is ignored. |
| 1660 } | 1656 } |
| 1661 UNREACHABLE(); | 1657 UNREACHABLE(); |
| 1662 return NULL; | 1658 return NULL; |
| 1663 } | 1659 } |
| 1664 | 1660 |
| 1665 | 1661 |
| 1666 } } // namespace v8::internal | 1662 } } // namespace v8::internal |
| OLD | NEW |