OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 | 557 |
558 #ifdef ENABLE_DEBUGGER_SUPPORT | 558 #ifdef ENABLE_DEBUGGER_SUPPORT |
559 ExternalReference::ExternalReference(const Debug_Address& debug_address) | 559 ExternalReference::ExternalReference(const Debug_Address& debug_address) |
560 : address_(debug_address.address()) {} | 560 : address_(debug_address.address()) {} |
561 #endif | 561 #endif |
562 | 562 |
563 ExternalReference::ExternalReference(StatsCounter* counter) | 563 ExternalReference::ExternalReference(StatsCounter* counter) |
564 : address_(reinterpret_cast<Address>(counter->GetInternalPointer())) {} | 564 : address_(reinterpret_cast<Address>(counter->GetInternalPointer())) {} |
565 | 565 |
566 | 566 |
567 ExternalReference::ExternalReference(Top::AddressId id) | 567 ExternalReference::ExternalReference(Isolate::AddressId id) |
568 : address_(Top::get_address_from_id(id)) {} | 568 : address_(Isolate::Current()->get_address_from_id(id)) {} |
569 | 569 |
570 | 570 |
571 ExternalReference::ExternalReference(const SCTableReference& table_ref) | 571 ExternalReference::ExternalReference(const SCTableReference& table_ref) |
572 : address_(table_ref.address()) {} | 572 : address_(table_ref.address()) {} |
573 | 573 |
574 | 574 |
575 ExternalReference ExternalReference::perform_gc_function() { | 575 ExternalReference ExternalReference::perform_gc_function() { |
576 return ExternalReference(Redirect(FUNCTION_ADDR(Runtime::PerformGC))); | 576 return ExternalReference(Redirect(FUNCTION_ADDR(Runtime::PerformGC))); |
577 } | 577 } |
578 | 578 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 return ExternalReference(HandleScope::current_next_address()); | 667 return ExternalReference(HandleScope::current_next_address()); |
668 } | 668 } |
669 | 669 |
670 | 670 |
671 ExternalReference ExternalReference::handle_scope_limit_address() { | 671 ExternalReference ExternalReference::handle_scope_limit_address() { |
672 return ExternalReference(HandleScope::current_limit_address()); | 672 return ExternalReference(HandleScope::current_limit_address()); |
673 } | 673 } |
674 | 674 |
675 | 675 |
676 ExternalReference ExternalReference::scheduled_exception_address() { | 676 ExternalReference ExternalReference::scheduled_exception_address() { |
677 return ExternalReference(Top::scheduled_exception_address()); | 677 return ExternalReference(Isolate::Current()->scheduled_exception_address()); |
678 } | 678 } |
679 | 679 |
680 | 680 |
681 #ifndef V8_INTERPRETED_REGEXP | 681 #ifndef V8_INTERPRETED_REGEXP |
682 | 682 |
683 ExternalReference ExternalReference::re_check_stack_guard_state() { | 683 ExternalReference ExternalReference::re_check_stack_guard_state() { |
684 Address function; | 684 Address function; |
685 #ifdef V8_TARGET_ARCH_X64 | 685 #ifdef V8_TARGET_ARCH_X64 |
686 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); | 686 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); |
687 #elif V8_TARGET_ARCH_IA32 | 687 #elif V8_TARGET_ARCH_IA32 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 return ExternalReference(Redirect(FUNCTION_ADDR(Debug::Break))); | 797 return ExternalReference(Redirect(FUNCTION_ADDR(Debug::Break))); |
798 } | 798 } |
799 | 799 |
800 | 800 |
801 ExternalReference ExternalReference::debug_step_in_fp_address() { | 801 ExternalReference ExternalReference::debug_step_in_fp_address() { |
802 return ExternalReference(Debug::step_in_fp_addr()); | 802 return ExternalReference(Debug::step_in_fp_addr()); |
803 } | 803 } |
804 #endif | 804 #endif |
805 | 805 |
806 } } // namespace v8::internal | 806 } } // namespace v8::internal |
OLD | NEW |