| 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 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 // Function NativeRegExpMacroAssembler::GrowStack() | 666 // Function NativeRegExpMacroAssembler::GrowStack() |
| 667 static ExternalReference re_grow_stack(Isolate* isolate); | 667 static ExternalReference re_grow_stack(Isolate* isolate); |
| 668 | 668 |
| 669 // byte NativeRegExpMacroAssembler::word_character_bitmap | 669 // byte NativeRegExpMacroAssembler::word_character_bitmap |
| 670 static ExternalReference re_word_character_map(); | 670 static ExternalReference re_word_character_map(); |
| 671 | 671 |
| 672 #endif | 672 #endif |
| 673 | 673 |
| 674 // This lets you register a function that rewrites all external references. | 674 // This lets you register a function that rewrites all external references. |
| 675 // Used by the ARM simulator to catch calls to external references. | 675 // Used by the ARM simulator to catch calls to external references. |
| 676 static void set_redirector(ExternalReferenceRedirector* redirector) { | 676 static void set_redirector(Isolate* isolate, |
| 677 ExternalReferenceRedirector* redirector) { |
| 677 // We can't stack them. | 678 // We can't stack them. |
| 678 ASSERT(Isolate::Current()->external_reference_redirector() == NULL); | 679 ASSERT(isolate->external_reference_redirector() == NULL); |
| 679 Isolate::Current()->set_external_reference_redirector( | 680 isolate->set_external_reference_redirector( |
| 680 reinterpret_cast<ExternalReferenceRedirectorPointer*>(redirector)); | 681 reinterpret_cast<ExternalReferenceRedirectorPointer*>(redirector)); |
| 681 } | 682 } |
| 682 | 683 |
| 683 private: | 684 private: |
| 684 explicit ExternalReference(void* address) | 685 explicit ExternalReference(void* address) |
| 685 : address_(address) {} | 686 : address_(address) {} |
| 686 | 687 |
| 687 static void* Redirect(Isolate* isolate, | 688 static void* Redirect(Isolate* isolate, |
| 688 void* address, | 689 void* address, |
| 689 Type type = ExternalReference::BUILTIN_CALL) { | 690 Type type = ExternalReference::BUILTIN_CALL) { |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 public: | 862 public: |
| 862 NullCallWrapper() { } | 863 NullCallWrapper() { } |
| 863 virtual ~NullCallWrapper() { } | 864 virtual ~NullCallWrapper() { } |
| 864 virtual void BeforeCall(int call_size) const { } | 865 virtual void BeforeCall(int call_size) const { } |
| 865 virtual void AfterCall() const { } | 866 virtual void AfterCall() const { } |
| 866 }; | 867 }; |
| 867 | 868 |
| 868 } } // namespace v8::internal | 869 } } // namespace v8::internal |
| 869 | 870 |
| 870 #endif // V8_ASSEMBLER_H_ | 871 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |