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

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: 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') | src/flag-definitions.h » ('J')
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 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 // This lets you register a function that rewrites all external references. 856 // This lets you register a function that rewrites all external references.
857 // Used by the ARM simulator to catch calls to external references. 857 // Used by the ARM simulator to catch calls to external references.
858 static void set_redirector(Isolate* isolate, 858 static void set_redirector(Isolate* isolate,
859 ExternalReferenceRedirector* redirector) { 859 ExternalReferenceRedirector* redirector) {
860 // We can't stack them. 860 // We can't stack them.
861 ASSERT(isolate->external_reference_redirector() == NULL); 861 ASSERT(isolate->external_reference_redirector() == NULL);
862 isolate->set_external_reference_redirector( 862 isolate->set_external_reference_redirector(
863 reinterpret_cast<ExternalReferenceRedirectorPointer*>(redirector)); 863 reinterpret_cast<ExternalReferenceRedirectorPointer*>(redirector));
864 } 864 }
865 865
866 static ExternalReference stress_deopt_count(Isolate* isolate);
867
866 private: 868 private:
867 explicit ExternalReference(void* address) 869 explicit ExternalReference(void* address)
868 : address_(address) {} 870 : address_(address) {}
869 871
870 static void* Redirect(Isolate* isolate, 872 static void* Redirect(Isolate* isolate,
871 void* address, 873 void* address,
872 Type type = ExternalReference::BUILTIN_CALL) { 874 Type type = ExternalReference::BUILTIN_CALL) {
873 ExternalReferenceRedirector* redirector = 875 ExternalReferenceRedirector* redirector =
874 reinterpret_cast<ExternalReferenceRedirector*>( 876 reinterpret_cast<ExternalReferenceRedirector*>(
875 isolate->external_reference_redirector()); 877 isolate->external_reference_redirector());
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 public: 1061 public:
1060 NullCallWrapper() { } 1062 NullCallWrapper() { }
1061 virtual ~NullCallWrapper() { } 1063 virtual ~NullCallWrapper() { }
1062 virtual void BeforeCall(int call_size) const { } 1064 virtual void BeforeCall(int call_size) const { }
1063 virtual void AfterCall() const { } 1065 virtual void AfterCall() const { }
1064 }; 1066 };
1065 1067
1066 } } // namespace v8::internal 1068 } } // namespace v8::internal
1067 1069
1068 #endif // V8_ASSEMBLER_H_ 1070 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | src/assembler.cc » ('j') | src/flag-definitions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698