Chromium Code Reviews| 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 3161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3172 static void SetEntropySource(EntropySource source); | 3172 static void SetEntropySource(EntropySource source); |
| 3173 | 3173 |
| 3174 /** | 3174 /** |
| 3175 * Allows the host application to provide a callback that allows v8 to | 3175 * Allows the host application to provide a callback that allows v8 to |
| 3176 * cooperate with a profiler that rewrites return addresses on stack. | 3176 * cooperate with a profiler that rewrites return addresses on stack. |
| 3177 */ | 3177 */ |
| 3178 static void SetReturnAddressLocationResolver( | 3178 static void SetReturnAddressLocationResolver( |
| 3179 ReturnAddressLocationResolver return_address_resolver); | 3179 ReturnAddressLocationResolver return_address_resolver); |
| 3180 | 3180 |
| 3181 /** | 3181 /** |
| 3182 * Allows the host application to provide the address of a function that's | |
| 3183 * invoked on entry to every V8-generated function. | |
| 3184 * Note that the entry_hook function is invoked at the very start of | |
| 3185 * each generated function, before a stack frame is constructed, volatile | |
| 3186 * registers saved etc. This function therefore must preserve all registers, | |
| 3187 * and will likely need to be written in assembly. | |
| 3188 */ | |
| 3189 static void SetFunctionEntryHook(uintptr_t entry_hook); | |
|
danno
2012/06/27 23:01:54
I am not sure exactly what the right thing to do i
Sigurður Ásgeirsson
2012/06/28 09:41:41
Good point. Another thing that occurred to me is t
| |
| 3190 | |
| 3191 /** | |
| 3182 * Adjusts the amount of registered external memory. Used to give | 3192 * Adjusts the amount of registered external memory. Used to give |
| 3183 * V8 an indication of the amount of externally allocated memory | 3193 * V8 an indication of the amount of externally allocated memory |
| 3184 * that is kept alive by JavaScript objects. V8 uses this to decide | 3194 * that is kept alive by JavaScript objects. V8 uses this to decide |
| 3185 * when to perform global garbage collections. Registering | 3195 * when to perform global garbage collections. Registering |
| 3186 * externally allocated memory will trigger global garbage | 3196 * externally allocated memory will trigger global garbage |
| 3187 * collections more often than otherwise in an attempt to garbage | 3197 * collections more often than otherwise in an attempt to garbage |
| 3188 * collect the JavaScript objects keeping the externally allocated | 3198 * collect the JavaScript objects keeping the externally allocated |
| 3189 * memory alive. | 3199 * memory alive. |
| 3190 * | 3200 * |
| 3191 * \param change_in_bytes the change in externally allocated memory | 3201 * \param change_in_bytes the change in externally allocated memory |
| (...skipping 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4496 | 4506 |
| 4497 | 4507 |
| 4498 } // namespace v8 | 4508 } // namespace v8 |
| 4499 | 4509 |
| 4500 | 4510 |
| 4501 #undef V8EXPORT | 4511 #undef V8EXPORT |
| 4502 #undef TYPE_CHECK | 4512 #undef TYPE_CHECK |
| 4503 | 4513 |
| 4504 | 4514 |
| 4505 #endif // V8_H_ | 4515 #endif // V8_H_ |
| OLD | NEW |