OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 /** | 607 /** |
608 * Returns true if the source code could not be parsed. | 608 * Returns true if the source code could not be parsed. |
609 */ | 609 */ |
610 virtual bool HasError() = 0; | 610 virtual bool HasError() = 0; |
611 }; | 611 }; |
612 | 612 |
613 | 613 |
614 /** | 614 /** |
615 * The origin, within a file, of a script. | 615 * The origin, within a file, of a script. |
616 */ | 616 */ |
617 class V8EXPORT ScriptOrigin { | 617 class ScriptOrigin { |
618 public: | 618 public: |
619 V8_INLINE(ScriptOrigin( | 619 V8_INLINE(ScriptOrigin( |
620 Handle<Value> resource_name, | 620 Handle<Value> resource_name, |
621 Handle<Integer> resource_line_offset = Handle<Integer>(), | 621 Handle<Integer> resource_line_offset = Handle<Integer>(), |
622 Handle<Integer> resource_column_offset = Handle<Integer>())) | 622 Handle<Integer> resource_column_offset = Handle<Integer>())) |
623 : resource_name_(resource_name), | 623 : resource_name_(resource_name), |
624 resource_line_offset_(resource_line_offset), | 624 resource_line_offset_(resource_line_offset), |
625 resource_column_offset_(resource_column_offset) { } | 625 resource_column_offset_(resource_column_offset) { } |
626 V8_INLINE(Handle<Value> ResourceName() const); | 626 V8_INLINE(Handle<Value> ResourceName() const); |
627 V8_INLINE(Handle<Integer> ResourceLineOffset() const); | 627 V8_INLINE(Handle<Integer> ResourceLineOffset() const); |
(...skipping 4221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4849 | 4849 |
4850 | 4850 |
4851 } // namespace v8 | 4851 } // namespace v8 |
4852 | 4852 |
4853 | 4853 |
4854 #undef V8EXPORT | 4854 #undef V8EXPORT |
4855 #undef TYPE_CHECK | 4855 #undef TYPE_CHECK |
4856 | 4856 |
4857 | 4857 |
4858 #endif // V8_H_ | 4858 #endif // V8_H_ |
OLD | NEW |