| OLD | NEW |
| 1 // Copyright 2007-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2009 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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 /** | 591 /** |
| 592 * Returns the script id value. | 592 * Returns the script id value. |
| 593 */ | 593 */ |
| 594 Local<Value> Id(); | 594 Local<Value> Id(); |
| 595 | 595 |
| 596 /** | 596 /** |
| 597 * Associate an additional data object with the script. This is mainly used | 597 * Associate an additional data object with the script. This is mainly used |
| 598 * with the debugger as this data object is only available through the | 598 * with the debugger as this data object is only available through the |
| 599 * debugger API. | 599 * debugger API. |
| 600 */ | 600 */ |
| 601 void SetData(Handle<Value> data); | 601 void SetData(Handle<String> data); |
| 602 }; | 602 }; |
| 603 | 603 |
| 604 | 604 |
| 605 /** | 605 /** |
| 606 * An error message. | 606 * An error message. |
| 607 */ | 607 */ |
| 608 class V8EXPORT Message { | 608 class V8EXPORT Message { |
| 609 public: | 609 public: |
| 610 Local<String> Get() const; | 610 Local<String> Get() const; |
| 611 Local<String> GetSourceLine() const; | 611 Local<String> GetSourceLine() const; |
| (...skipping 2015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2627 bool HasOutOfMemoryException(); | 2627 bool HasOutOfMemoryException(); |
| 2628 | 2628 |
| 2629 /** Returns true if V8 has a current context. */ | 2629 /** Returns true if V8 has a current context. */ |
| 2630 static bool InContext(); | 2630 static bool InContext(); |
| 2631 | 2631 |
| 2632 /** | 2632 /** |
| 2633 * Associate an additional data object with the context. This is mainly used | 2633 * Associate an additional data object with the context. This is mainly used |
| 2634 * with the debugger to provide additional information on the context through | 2634 * with the debugger to provide additional information on the context through |
| 2635 * the debugger API. | 2635 * the debugger API. |
| 2636 */ | 2636 */ |
| 2637 void SetData(Handle<Value> data); | 2637 void SetData(Handle<String> data); |
| 2638 Local<Value> GetData(); | 2638 Local<Value> GetData(); |
| 2639 | 2639 |
| 2640 /** | 2640 /** |
| 2641 * Stack-allocated class which sets the execution context for all | 2641 * Stack-allocated class which sets the execution context for all |
| 2642 * operations executed within a local scope. | 2642 * operations executed within a local scope. |
| 2643 */ | 2643 */ |
| 2644 class V8EXPORT Scope { | 2644 class V8EXPORT Scope { |
| 2645 public: | 2645 public: |
| 2646 inline Scope(Handle<Context> context) : context_(context) { | 2646 inline Scope(Handle<Context> context) : context_(context) { |
| 2647 context_->Enter(); | 2647 context_->Enter(); |
| (...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3220 | 3220 |
| 3221 } // namespace v8 | 3221 } // namespace v8 |
| 3222 | 3222 |
| 3223 | 3223 |
| 3224 #undef V8EXPORT | 3224 #undef V8EXPORT |
| 3225 #undef V8EXPORT_INLINE | 3225 #undef V8EXPORT_INLINE |
| 3226 #undef TYPE_CHECK | 3226 #undef TYPE_CHECK |
| 3227 | 3227 |
| 3228 | 3228 |
| 3229 #endif // V8_H_ | 3229 #endif // V8_H_ |
| OLD | NEW |