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

Side by Side Diff: src/assembler.h

Issue 19383002: Make deoptimization stress count global. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase. Created 7 years, 5 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 | « no previous file | src/assembler.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 (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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698