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

Side by Side Diff: src/v8.h

Issue 10706002: Implements a new API to set a function entry hook for profiling. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // Report process out of memory. Implementation found in api.cc. 92 // Report process out of memory. Implementation found in api.cc.
93 static void FatalProcessOutOfMemory(const char* location, 93 static void FatalProcessOutOfMemory(const char* location,
94 bool take_snapshot = false); 94 bool take_snapshot = false);
95 95
96 // Allows an entropy source to be provided for use in random number 96 // Allows an entropy source to be provided for use in random number
97 // generation. 97 // generation.
98 static void SetEntropySource(EntropySource source); 98 static void SetEntropySource(EntropySource source);
99 // Support for return-address rewriting profilers. 99 // Support for return-address rewriting profilers.
100 static void SetReturnAddressLocationResolver( 100 static void SetReturnAddressLocationResolver(
101 ReturnAddressLocationResolver resolver); 101 ReturnAddressLocationResolver resolver);
102 // Support for a function entry profiling hook.
103 static void SetFunctionEntryHook(uintptr_t entry_hook);
104 // Returns the current function entry profiling hook if any.
105 static uintptr_t GetFunctionEntryHook();
102 // Random number generation support. Not cryptographically safe. 106 // Random number generation support. Not cryptographically safe.
103 static uint32_t Random(Context* context); 107 static uint32_t Random(Context* context);
104 // We use random numbers internally in memory allocation and in the 108 // We use random numbers internally in memory allocation and in the
105 // compilers for security. In order to prevent information leaks we 109 // compilers for security. In order to prevent information leaks we
106 // use a separate random state for internal random number 110 // use a separate random state for internal random number
107 // generation. 111 // generation.
108 static uint32_t RandomPrivate(Isolate* isolate); 112 static uint32_t RandomPrivate(Isolate* isolate);
109 static Object* FillHeapNumberWithRandom(Object* heap_number, 113 static Object* FillHeapNumberWithRandom(Object* heap_number,
110 Context* context); 114 Context* context);
111 115
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 147
144 // JavaScript defines two kinds of equality. 148 // JavaScript defines two kinds of equality.
145 enum EqualityKind { kStrictEquality, kNonStrictEquality }; 149 enum EqualityKind { kStrictEquality, kNonStrictEquality };
146 150
147 151
148 } } // namespace v8::internal 152 } } // namespace v8::internal
149 153
150 namespace i = v8::internal; 154 namespace i = v8::internal;
151 155
152 #endif // V8_V8_H_ 156 #endif // V8_V8_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698