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

Side by Side Diff: include/v8.h

Issue 542010: Added ScriptData::HasError. (Closed)
Patch Set: Created 10 years, 11 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/parser.h » ('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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 * data is given to the compile method compilation will be faster. 496 * data is given to the compile method compilation will be faster.
497 */ 497 */
498 class V8EXPORT ScriptData { // NOLINT 498 class V8EXPORT ScriptData { // NOLINT
499 public: 499 public:
500 virtual ~ScriptData() { } 500 virtual ~ScriptData() { }
501 static ScriptData* PreCompile(const char* input, int length); 501 static ScriptData* PreCompile(const char* input, int length);
502 static ScriptData* New(unsigned* data, int length); 502 static ScriptData* New(unsigned* data, int length);
503 503
504 virtual int Length() = 0; 504 virtual int Length() = 0;
505 virtual unsigned* Data() = 0; 505 virtual unsigned* Data() = 0;
506 virtual bool HasError() = 0;
506 }; 507 };
507 508
508 509
509 /** 510 /**
510 * The origin, within a file, of a script. 511 * The origin, within a file, of a script.
511 */ 512 */
512 class V8EXPORT ScriptOrigin { 513 class V8EXPORT ScriptOrigin {
513 public: 514 public:
514 ScriptOrigin(Handle<Value> resource_name, 515 ScriptOrigin(Handle<Value> resource_name,
515 Handle<Integer> resource_line_offset = Handle<Integer>(), 516 Handle<Integer> resource_line_offset = Handle<Integer>(),
(...skipping 2710 matching lines...) Expand 10 before | Expand all | Expand 10 after
3226 3227
3227 } // namespace v8 3228 } // namespace v8
3228 3229
3229 3230
3230 #undef V8EXPORT 3231 #undef V8EXPORT
3231 #undef V8EXPORT_INLINE 3232 #undef V8EXPORT_INLINE
3232 #undef TYPE_CHECK 3233 #undef TYPE_CHECK
3233 3234
3234 3235
3235 #endif // V8_H_ 3236 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698