| 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 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 859 // This lets you register a function that rewrites all external references. | 859 // This lets you register a function that rewrites all external references. |
| 860 // Used by the ARM simulator to catch calls to external references. | 860 // Used by the ARM simulator to catch calls to external references. |
| 861 static void set_redirector(Isolate* isolate, | 861 static void set_redirector(Isolate* isolate, |
| 862 ExternalReferenceRedirector* redirector) { | 862 ExternalReferenceRedirector* redirector) { |
| 863 // We can't stack them. | 863 // We can't stack them. |
| 864 ASSERT(isolate->external_reference_redirector() == NULL); | 864 ASSERT(isolate->external_reference_redirector() == NULL); |
| 865 isolate->set_external_reference_redirector( | 865 isolate->set_external_reference_redirector( |
| 866 reinterpret_cast<ExternalReferenceRedirectorPointer*>(redirector)); | 866 reinterpret_cast<ExternalReferenceRedirectorPointer*>(redirector)); |
| 867 } | 867 } |
| 868 | 868 |
| 869 static ExternalReference stress_deopt_count(Isolate* isolate); |
| 870 |
| 869 private: | 871 private: |
| 870 explicit ExternalReference(void* address) | 872 explicit ExternalReference(void* address) |
| 871 : address_(address) {} | 873 : address_(address) {} |
| 872 | 874 |
| 873 static void* Redirect(Isolate* isolate, | 875 static void* Redirect(Isolate* isolate, |
| 874 void* address, | 876 void* address, |
| 875 Type type = ExternalReference::BUILTIN_CALL) { | 877 Type type = ExternalReference::BUILTIN_CALL) { |
| 876 ExternalReferenceRedirector* redirector = | 878 ExternalReferenceRedirector* redirector = |
| 877 reinterpret_cast<ExternalReferenceRedirector*>( | 879 reinterpret_cast<ExternalReferenceRedirector*>( |
| 878 isolate->external_reference_redirector()); | 880 isolate->external_reference_redirector()); |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1062 public: | 1064 public: |
| 1063 NullCallWrapper() { } | 1065 NullCallWrapper() { } |
| 1064 virtual ~NullCallWrapper() { } | 1066 virtual ~NullCallWrapper() { } |
| 1065 virtual void BeforeCall(int call_size) const { } | 1067 virtual void BeforeCall(int call_size) const { } |
| 1066 virtual void AfterCall() const { } | 1068 virtual void AfterCall() const { } |
| 1067 }; | 1069 }; |
| 1068 | 1070 |
| 1069 } } // namespace v8::internal | 1071 } } // namespace v8::internal |
| 1070 | 1072 |
| 1071 #endif // V8_ASSEMBLER_H_ | 1073 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |