| 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 4034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4045 | 4045 |
| 4046 /** Returns the last entered context. */ | 4046 /** Returns the last entered context. */ |
| 4047 Local<Context> GetEnteredContext(); | 4047 Local<Context> GetEnteredContext(); |
| 4048 | 4048 |
| 4049 /** | 4049 /** |
| 4050 * Schedules an exception to be thrown when returning to JavaScript. When an | 4050 * Schedules an exception to be thrown when returning to JavaScript. When an |
| 4051 * exception has been scheduled it is illegal to invoke any JavaScript | 4051 * exception has been scheduled it is illegal to invoke any JavaScript |
| 4052 * operation; the caller must return immediately and only after the exception | 4052 * operation; the caller must return immediately and only after the exception |
| 4053 * has been handled does it become legal to invoke JavaScript operations. | 4053 * has been handled does it become legal to invoke JavaScript operations. |
| 4054 */ | 4054 */ |
| 4055 Local<Value> V8_EXPORT ThrowException(Local<Value> exception); | 4055 Local<Value> ThrowException(Local<Value> exception); |
| 4056 | 4056 |
| 4057 /** | 4057 /** |
| 4058 * Allows the host application to group objects together. If one | 4058 * Allows the host application to group objects together. If one |
| 4059 * object in the group is alive, all objects in the group are alive. | 4059 * object in the group is alive, all objects in the group are alive. |
| 4060 * After each garbage collection, object groups are removed. It is | 4060 * After each garbage collection, object groups are removed. It is |
| 4061 * intended to be used in the before-garbage-collection callback | 4061 * intended to be used in the before-garbage-collection callback |
| 4062 * function, for instance to simulate DOM tree connections among JS | 4062 * function, for instance to simulate DOM tree connections among JS |
| 4063 * wrapper objects. Object groups for all dependent handles need to | 4063 * wrapper objects. Object groups for all dependent handles need to |
| 4064 * be provided for kGCTypeMarkSweepCompact collections, for all other | 4064 * be provided for kGCTypeMarkSweepCompact collections, for all other |
| 4065 * garbage collection types it is sufficient to provide object groups | 4065 * garbage collection types it is sufficient to provide object groups |
| (...skipping 2415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6481 */ | 6481 */ |
| 6482 | 6482 |
| 6483 | 6483 |
| 6484 } // namespace v8 | 6484 } // namespace v8 |
| 6485 | 6485 |
| 6486 | 6486 |
| 6487 #undef TYPE_CHECK | 6487 #undef TYPE_CHECK |
| 6488 | 6488 |
| 6489 | 6489 |
| 6490 #endif // V8_H_ | 6490 #endif // V8_H_ |
| OLD | NEW |