OLD | NEW |
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 * Compiles the specified script using the specified file name | 517 * Compiles the specified script using the specified file name |
518 * object (typically a string) as the script's origin. | 518 * object (typically a string) as the script's origin. |
519 */ | 519 */ |
520 static Local<Script> Compile(Handle<String> source, | 520 static Local<Script> Compile(Handle<String> source, |
521 Handle<Value> file_name); | 521 Handle<Value> file_name); |
522 | 522 |
523 /** | 523 /** |
524 * Runs the script returning the resulting value. | 524 * Runs the script returning the resulting value. |
525 */ | 525 */ |
526 Local<Value> Run(); | 526 Local<Value> Run(); |
| 527 |
| 528 /** |
| 529 * Returns the script id value. |
| 530 */ |
| 531 Local<Value> Id(); |
527 }; | 532 }; |
528 | 533 |
529 | 534 |
530 /** | 535 /** |
531 * An error message. | 536 * An error message. |
532 */ | 537 */ |
533 class EXPORT Message { | 538 class EXPORT Message { |
534 public: | 539 public: |
535 Local<String> Get() const; | 540 Local<String> Get() const; |
536 Local<String> GetSourceLine() const; | 541 Local<String> GetSourceLine() const; |
(...skipping 1915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2452 | 2457 |
2453 } // namespace v8 | 2458 } // namespace v8 |
2454 | 2459 |
2455 | 2460 |
2456 #undef EXPORT | 2461 #undef EXPORT |
2457 #undef EXPORT_INLINE | 2462 #undef EXPORT_INLINE |
2458 #undef TYPE_CHECK | 2463 #undef TYPE_CHECK |
2459 | 2464 |
2460 | 2465 |
2461 #endif // V8_H_ | 2466 #endif // V8_H_ |
OLD | NEW |