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 3685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3696 bool HasOutOfMemoryException(); | 3696 bool HasOutOfMemoryException(); |
3697 | 3697 |
3698 /** Returns true if V8 has a current context. */ | 3698 /** Returns true if V8 has a current context. */ |
3699 static bool InContext(); | 3699 static bool InContext(); |
3700 | 3700 |
3701 /** | 3701 /** |
3702 * Associate an additional data object with the context. This is mainly used | 3702 * Associate an additional data object with the context. This is mainly used |
3703 * with the debugger to provide additional information on the context through | 3703 * with the debugger to provide additional information on the context through |
3704 * the debugger API. | 3704 * the debugger API. |
3705 */ | 3705 */ |
3706 void SetData(Handle<String> data); | 3706 void SetData(Handle<Value> data); |
Sven Panne
2012/09/13 07:39:28
I think that this change should be OK and not caus
| |
3707 Local<Value> GetData(); | 3707 Local<Value> GetData(); |
3708 | 3708 |
3709 /** | 3709 /** |
3710 * Control whether code generation from strings is allowed. Calling | 3710 * Control whether code generation from strings is allowed. Calling |
3711 * this method with false will disable 'eval' and the 'Function' | 3711 * this method with false will disable 'eval' and the 'Function' |
3712 * constructor for code running in this context. If 'eval' or the | 3712 * constructor for code running in this context. If 'eval' or the |
3713 * 'Function' constructor are used an exception will be thrown. | 3713 * 'Function' constructor are used an exception will be thrown. |
3714 * | 3714 * |
3715 * If code generation from strings is not allowed the | 3715 * If code generation from strings is not allowed the |
3716 * V8::AllowCodeGenerationFromStrings callback will be invoked if | 3716 * V8::AllowCodeGenerationFromStrings callback will be invoked if |
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4610 | 4610 |
4611 | 4611 |
4612 } // namespace v8 | 4612 } // namespace v8 |
4613 | 4613 |
4614 | 4614 |
4615 #undef V8EXPORT | 4615 #undef V8EXPORT |
4616 #undef TYPE_CHECK | 4616 #undef TYPE_CHECK |
4617 | 4617 |
4618 | 4618 |
4619 #endif // V8_H_ | 4619 #endif // V8_H_ |
OLD | NEW |