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

Side by Side Diff: include/v8.h

Issue 131443008: Introduce an API mirroring the gc extension (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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 | « 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 4166 matching lines...) Expand 10 before | Expand all | Expand 10 after
4177 * Registered |callback| must not reenter interrupted Isolate. 4177 * Registered |callback| must not reenter interrupted Isolate.
4178 */ 4178 */
4179 void RequestInterrupt(InterruptCallback callback, void* data); 4179 void RequestInterrupt(InterruptCallback callback, void* data);
4180 4180
4181 /** 4181 /**
4182 * Clear interrupt request created by |RequestInterrupt|. 4182 * Clear interrupt request created by |RequestInterrupt|.
4183 * Can be called from another thread without acquiring a |Locker|. 4183 * Can be called from another thread without acquiring a |Locker|.
4184 */ 4184 */
4185 void ClearInterrupt(); 4185 void ClearInterrupt();
4186 4186
4187 /**
4188 * Request garbage collection in this Isolate. If |minor| is true, a
4189 * minor garbage collection is performed.
4190 */
4191 void RequestGarbageCollection(bool minor);
Benedikt Meurer 2014/01/13 06:12:06 Please use an enum instead of bool here.
4192
4187 private: 4193 private:
4188 Isolate(); 4194 Isolate();
4189 Isolate(const Isolate&); 4195 Isolate(const Isolate&);
4190 ~Isolate(); 4196 ~Isolate();
4191 Isolate& operator=(const Isolate&); 4197 Isolate& operator=(const Isolate&);
4192 void* operator new(size_t size); 4198 void* operator new(size_t size);
4193 void operator delete(void*, size_t); 4199 void operator delete(void*, size_t);
4194 4200
4195 void SetObjectGroupId(internal::Object** object, UniqueId id); 4201 void SetObjectGroupId(internal::Object** object, UniqueId id);
4196 void SetReferenceFromGroup(UniqueId id, internal::Object** object); 4202 void SetReferenceFromGroup(UniqueId id, internal::Object** object);
(...skipping 2231 matching lines...) Expand 10 before | Expand all | Expand 10 after
6428 */ 6434 */
6429 6435
6430 6436
6431 } // namespace v8 6437 } // namespace v8
6432 6438
6433 6439
6434 #undef TYPE_CHECK 6440 #undef TYPE_CHECK
6435 6441
6436 6442
6437 #endif // V8_H_ 6443 #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