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

Side by Side Diff: include/v8.h

Issue 449010: Merge revisions r3372 - r3374 to trunk... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 11 years 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/accessors.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 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
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
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 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
3206 3206
3207 } // namespace v8 3207 } // namespace v8
3208 3208
3209 3209
3210 #undef V8EXPORT 3210 #undef V8EXPORT
3211 #undef V8EXPORT_INLINE 3211 #undef V8EXPORT_INLINE
3212 #undef TYPE_CHECK 3212 #undef TYPE_CHECK
3213 3213
3214 3214
3215 #endif // V8_H_ 3215 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698