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

Side by Side Diff: src/code-stubs.h

Issue 10837037: Age code to allow reclaiming old unexecuted functions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Cleanup code Created 8 years, 3 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 | « src/builtins.h ('k') | src/compiler.cc » ('j') | src/compiler.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 virtual bool SometimesSetsUpAFrame() { return false; } 1152 virtual bool SometimesSetsUpAFrame() { return false; }
1153 1153
1154 // Generates a call to the entry hook if it's enabled. 1154 // Generates a call to the entry hook if it's enabled.
1155 static void MaybeCallEntryHook(MacroAssembler* masm); 1155 static void MaybeCallEntryHook(MacroAssembler* masm);
1156 1156
1157 // Sets or unsets the entry hook function. Returns true on success, 1157 // Sets or unsets the entry hook function. Returns true on success,
1158 // false on an attempt to replace a non-NULL entry hook with another 1158 // false on an attempt to replace a non-NULL entry hook with another
1159 // non-NULL hook. 1159 // non-NULL hook.
1160 static bool SetFunctionEntryHook(FunctionEntryHook entry_hook); 1160 static bool SetFunctionEntryHook(FunctionEntryHook entry_hook);
1161 1161
1162 static bool HasEntryHook() { return entry_hook_ != NULL; }
1163
1162 private: 1164 private:
1163 static void EntryHookTrampoline(intptr_t function, 1165 static void EntryHookTrampoline(intptr_t function,
1164 intptr_t stack_pointer); 1166 intptr_t stack_pointer);
1165 1167
1166 Major MajorKey() { return ProfileEntryHook; } 1168 Major MajorKey() { return ProfileEntryHook; }
1167 int MinorKey() { return 0; } 1169 int MinorKey() { return 0; }
1168 1170
1169 void Generate(MacroAssembler* masm); 1171 void Generate(MacroAssembler* masm);
1170 1172
1171 // The current function entry hook. 1173 // The current function entry hook.
1172 static FunctionEntryHook entry_hook_; 1174 static FunctionEntryHook entry_hook_;
1173 1175
1174 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); 1176 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub);
1175 }; 1177 };
1176 1178
1177 } } // namespace v8::internal 1179 } } // namespace v8::internal
1178 1180
1179 #endif // V8_CODE_STUBS_H_ 1181 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/builtins.h ('k') | src/compiler.cc » ('j') | src/compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698