| OLD | NEW |
| 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 1961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1972 // Generates a call to the entry hook if it's enabled. | 1972 // Generates a call to the entry hook if it's enabled. |
| 1973 static void MaybeCallEntryHook(MacroAssembler* masm); | 1973 static void MaybeCallEntryHook(MacroAssembler* masm); |
| 1974 | 1974 |
| 1975 // Sets or unsets the entry hook function. Returns true on success, | 1975 // Sets or unsets the entry hook function. Returns true on success, |
| 1976 // false on an attempt to replace a non-NULL entry hook with another | 1976 // false on an attempt to replace a non-NULL entry hook with another |
| 1977 // non-NULL hook. | 1977 // non-NULL hook. |
| 1978 static bool SetFunctionEntryHook(FunctionEntryHook entry_hook); | 1978 static bool SetFunctionEntryHook(FunctionEntryHook entry_hook); |
| 1979 | 1979 |
| 1980 static bool HasEntryHook() { return entry_hook_ != NULL; } | 1980 static bool HasEntryHook() { return entry_hook_ != NULL; } |
| 1981 | 1981 |
| 1982 private: | 1982 // DO NOT SUBMIT |
| 1983 public: |
| 1983 static void EntryHookTrampoline(intptr_t function, | 1984 static void EntryHookTrampoline(intptr_t function, |
| 1984 intptr_t stack_pointer); | 1985 intptr_t stack_pointer); |
| 1985 | 1986 |
| 1986 Major MajorKey() { return ProfileEntryHook; } | 1987 Major MajorKey() { return ProfileEntryHook; } |
| 1987 int MinorKey() { return 0; } | 1988 int MinorKey() { return 0; } |
| 1988 | 1989 |
| 1989 void Generate(MacroAssembler* masm); | 1990 void Generate(MacroAssembler* masm); |
| 1990 | 1991 |
| 1991 // The current function entry hook. | 1992 // The current function entry hook. |
| 1992 static FunctionEntryHook entry_hook_; | 1993 static FunctionEntryHook entry_hook_; |
| 1993 | 1994 |
| 1994 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); | 1995 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); |
| 1995 }; | 1996 }; |
| 1996 | 1997 |
| 1997 } } // namespace v8::internal | 1998 } } // namespace v8::internal |
| 1998 | 1999 |
| 1999 #endif // V8_CODE_STUBS_H_ | 2000 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |