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

Side by Side Diff: include/v8.h

Issue 70233010: API: Change AdjustAmountOfExternalAllocatedMemory calls to use int64_t instead of intptr_t (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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/api.cc » ('j') | no next file with comments »
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 4059 matching lines...) Expand 10 before | Expand all | Expand 10 after
4070 * by JavaScript objects. V8 uses this to decide when to perform global 4070 * by JavaScript objects. V8 uses this to decide when to perform global
4071 * garbage collections. Registering externally allocated memory will trigger 4071 * garbage collections. Registering externally allocated memory will trigger
4072 * global garbage collections more often than it would otherwise in an attempt 4072 * global garbage collections more often than it would otherwise in an attempt
4073 * to garbage collect the JavaScript objects that keep the externally 4073 * to garbage collect the JavaScript objects that keep the externally
4074 * allocated memory alive. 4074 * allocated memory alive.
4075 * 4075 *
4076 * \param change_in_bytes the change in externally allocated memory that is 4076 * \param change_in_bytes the change in externally allocated memory that is
4077 * kept alive by JavaScript objects. 4077 * kept alive by JavaScript objects.
4078 * \returns the adjusted value. 4078 * \returns the adjusted value.
4079 */ 4079 */
4080 intptr_t AdjustAmountOfExternalAllocatedMemory(intptr_t change_in_bytes); 4080 int64_t AdjustAmountOfExternalAllocatedMemory(int64_t change_in_bytes);
4081 4081
4082 /** 4082 /**
4083 * Returns heap profiler for this isolate. Will return NULL until the isolate 4083 * Returns heap profiler for this isolate. Will return NULL until the isolate
4084 * is initialized. 4084 * is initialized.
4085 */ 4085 */
4086 HeapProfiler* GetHeapProfiler(); 4086 HeapProfiler* GetHeapProfiler();
4087 4087
4088 /** 4088 /**
4089 * Returns CPU profiler for this isolate. Will return NULL unless the isolate 4089 * Returns CPU profiler for this isolate. Will return NULL unless the isolate
4090 * is initialized. It is the embedder's responsibility to stop all CPU 4090 * is initialized. It is the embedder's responsibility to stop all CPU
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
4653 * \note the set of events declared in JitCodeEvent::EventType is expected to 4653 * \note the set of events declared in JitCodeEvent::EventType is expected to
4654 * grow over time, and the JitCodeEvent structure is expected to accrue 4654 * grow over time, and the JitCodeEvent structure is expected to accrue
4655 * new members. The \p event_handler function must ignore event codes 4655 * new members. The \p event_handler function must ignore event codes
4656 * it does not recognize to maintain future compatibility. 4656 * it does not recognize to maintain future compatibility.
4657 */ 4657 */
4658 static void SetJitCodeEventHandler(JitCodeEventOptions options, 4658 static void SetJitCodeEventHandler(JitCodeEventOptions options,
4659 JitCodeEventHandler event_handler); 4659 JitCodeEventHandler event_handler);
4660 4660
4661 V8_DEPRECATED( 4661 V8_DEPRECATED(
4662 "Use Isolate::AdjustAmountOfExternalAllocatedMemory instead", 4662 "Use Isolate::AdjustAmountOfExternalAllocatedMemory instead",
4663 static intptr_t AdjustAmountOfExternalAllocatedMemory( 4663 static int64_t AdjustAmountOfExternalAllocatedMemory(
Sven Panne 2013/11/15 07:21:31 This will break 32bit embedders, so we either leav
4664 intptr_t change_in_bytes)); 4664 int64_t change_in_bytes));
4665 4665
4666 /** 4666 /**
4667 * Forcefully terminate the current thread of JavaScript execution 4667 * Forcefully terminate the current thread of JavaScript execution
4668 * in the given isolate. If no isolate is provided, the default 4668 * in the given isolate. If no isolate is provided, the default
4669 * isolate is used. 4669 * isolate is used.
4670 * 4670 *
4671 * This method can be used by any thread even if that thread has not 4671 * This method can be used by any thread even if that thread has not
4672 * acquired the V8 lock with a Locker object. 4672 * acquired the V8 lock with a Locker object.
4673 * 4673 *
4674 * \param isolate The isolate in which to terminate the current JS execution. 4674 * \param isolate The isolate in which to terminate the current JS execution.
(...skipping 1864 matching lines...) Expand 10 before | Expand all | Expand 10 after
6539 */ 6539 */
6540 6540
6541 6541
6542 } // namespace v8 6542 } // namespace v8
6543 6543
6544 6544
6545 #undef TYPE_CHECK 6545 #undef TYPE_CHECK
6546 6546
6547 6547
6548 #endif // V8_H_ 6548 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698