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

Side by Side Diff: include/v8.h

Issue 661275: Added implementation if Uint32::Value. (Closed)
Patch Set: Added IsUint32 Created 10 years, 9 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
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/conversions-inl.h » ('J')
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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 /** 531 /**
532 * A compiled JavaScript script. 532 * A compiled JavaScript script.
533 */ 533 */
534 class V8EXPORT Script { 534 class V8EXPORT Script {
535 public: 535 public:
536 536
537 /** 537 /**
538 * Compiles the specified script (context-independent). 538 * Compiles the specified script (context-independent).
539 * 539 *
540 * \param source Script source code. 540 * \param source Script source code.
541 * \param origin Script origin, owned by caller, no references are kept 541 * \param origin Script origin, owned by caller, no references are kept
542 * when New() returns 542 * when New() returns
543 * \param pre_data Pre-parsing data, as obtained by ScriptData::PreCompile() 543 * \param pre_data Pre-parsing data, as obtained by ScriptData::PreCompile()
544 * using pre_data speeds compilation if it's done multiple times. 544 * using pre_data speeds compilation if it's done multiple times.
545 * Owned by caller, no references are kept when New() returns. 545 * Owned by caller, no references are kept when New() returns.
546 * \param script_data Arbitrary data associated with script. Using 546 * \param script_data Arbitrary data associated with script. Using
547 * this has same effect as calling SetData(), but allows data to be 547 * this has same effect as calling SetData(), but allows data to be
548 * available to compile event handlers. 548 * available to compile event handlers.
549 * \return Compiled script object (context independent; when run it 549 * \return Compiled script object (context independent; when run it
550 * will use the currently entered context). 550 * will use the currently entered context).
551 */ 551 */
552 static Local<Script> New(Handle<String> source, 552 static Local<Script> New(Handle<String> source,
553 ScriptOrigin* origin = NULL, 553 ScriptOrigin* origin = NULL,
554 ScriptData* pre_data = NULL, 554 ScriptData* pre_data = NULL,
555 Handle<String> script_data = Handle<String>()); 555 Handle<String> script_data = Handle<String>());
556 556
557 /** 557 /**
558 * Compiles the specified script using the specified file name 558 * Compiles the specified script using the specified file name
559 * object (typically a string) as the script's origin. 559 * object (typically a string) as the script's origin.
560 * 560 *
561 * \param source Script source code. 561 * \param source Script source code.
562 * \patam file_name file name object (typically a string) to be used 562 * \param file_name file name object (typically a string) to be used
563 * as the script's origin. 563 * as the script's origin.
564 * \return Compiled script object (context independent; when run it 564 * \return Compiled script object (context independent; when run it
565 * will use the currently entered context). 565 * will use the currently entered context).
566 */ 566 */
567 static Local<Script> New(Handle<String> source, 567 static Local<Script> New(Handle<String> source,
568 Handle<Value> file_name); 568 Handle<Value> file_name);
569 569
570 /** 570 /**
571 * Compiles the specified script (bound to current context). 571 * Compiles the specified script (bound to current context).
572 * 572 *
573 * \param source Script source code. 573 * \param source Script source code.
574 * \param origin Script origin, owned by caller, no references are kept 574 * \param origin Script origin, owned by caller, no references are kept
575 * when Compile() returns 575 * when Compile() returns
576 * \param pre_data Pre-parsing data, as obtained by ScriptData::PreCompile() 576 * \param pre_data Pre-parsing data, as obtained by ScriptData::PreCompile()
577 * using pre_data speeds compilation if it's done multiple times. 577 * using pre_data speeds compilation if it's done multiple times.
578 * Owned by caller, no references are kept when Compile() returns. 578 * Owned by caller, no references are kept when Compile() returns.
579 * \param script_data Arbitrary data associated with script. Using 579 * \param script_data Arbitrary data associated with script. Using
580 * this has same effect as calling SetData(), but makes data available 580 * this has same effect as calling SetData(), but makes data available
581 * earlier (i.e. to compile event handlers). 581 * earlier (i.e. to compile event handlers).
582 * \return Compiled script object, bound to the context that was active 582 * \return Compiled script object, bound to the context that was active
583 * when this function was called. When run it will always use this 583 * when this function was called. When run it will always use this
584 * context. 584 * context.
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 * Returns true if this value is external. 748 * Returns true if this value is external.
749 */ 749 */
750 bool IsExternal() const; 750 bool IsExternal() const;
751 751
752 /** 752 /**
753 * Returns true if this value is a 32-bit signed integer. 753 * Returns true if this value is a 32-bit signed integer.
754 */ 754 */
755 bool IsInt32() const; 755 bool IsInt32() const;
756 756
757 /** 757 /**
758 * Returns true if this value is a 32-bit signed integer.
759 */
760 bool IsUint32() const;
761
762 /**
758 * Returns true if this value is a Date. 763 * Returns true if this value is a Date.
759 */ 764 */
760 bool IsDate() const; 765 bool IsDate() const;
761 766
762 Local<Boolean> ToBoolean() const; 767 Local<Boolean> ToBoolean() const;
763 Local<Number> ToNumber() const; 768 Local<Number> ToNumber() const;
764 Local<String> ToString() const; 769 Local<String> ToString() const;
765 Local<String> ToDetailString() const; 770 Local<String> ToDetailString() const;
766 Local<Object> ToObject() const; 771 Local<Object> ToObject() const;
767 Local<Integer> ToInteger() const; 772 Local<Integer> ToInteger() const;
(...skipping 2513 matching lines...) Expand 10 before | Expand all | Expand 10 after
3281 3286
3282 } // namespace v8 3287 } // namespace v8
3283 3288
3284 3289
3285 #undef V8EXPORT 3290 #undef V8EXPORT
3286 #undef V8EXPORT_INLINE 3291 #undef V8EXPORT_INLINE
3287 #undef TYPE_CHECK 3292 #undef TYPE_CHECK
3288 3293
3289 3294
3290 #endif // V8_H_ 3295 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/conversions-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698