OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1729 int argc, | 1729 int argc, |
1730 Handle<Value> argv[]); | 1730 Handle<Value> argv[]); |
1731 V8EXPORT void SetName(Handle<String> name); | 1731 V8EXPORT void SetName(Handle<String> name); |
1732 V8EXPORT Handle<Value> GetName() const; | 1732 V8EXPORT Handle<Value> GetName() const; |
1733 | 1733 |
1734 /** | 1734 /** |
1735 * Returns zero based line number of function body and | 1735 * Returns zero based line number of function body and |
1736 * kLineOffsetNotFound if no information available. | 1736 * kLineOffsetNotFound if no information available. |
1737 */ | 1737 */ |
1738 V8EXPORT int GetScriptLineNumber() const; | 1738 V8EXPORT int GetScriptLineNumber() const; |
| 1739 /** |
| 1740 * Returns zero based column number of function body and |
| 1741 * kLineOffsetNotFound if no information available. |
| 1742 */ |
| 1743 V8EXPORT int GetScriptColumnNumber() const; |
| 1744 V8EXPORT Handle<Value> GetScriptId() const; |
1739 V8EXPORT ScriptOrigin GetScriptOrigin() const; | 1745 V8EXPORT ScriptOrigin GetScriptOrigin() const; |
1740 static inline Function* Cast(Value* obj); | 1746 static inline Function* Cast(Value* obj); |
1741 V8EXPORT static const int kLineOffsetNotFound; | 1747 V8EXPORT static const int kLineOffsetNotFound; |
1742 private: | 1748 private: |
1743 V8EXPORT Function(); | 1749 V8EXPORT Function(); |
1744 V8EXPORT static void CheckCast(Value* obj); | 1750 V8EXPORT static void CheckCast(Value* obj); |
1745 }; | 1751 }; |
1746 | 1752 |
1747 | 1753 |
1748 /** | 1754 /** |
(...skipping 2472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4221 | 4227 |
4222 | 4228 |
4223 } // namespace v8 | 4229 } // namespace v8 |
4224 | 4230 |
4225 | 4231 |
4226 #undef V8EXPORT | 4232 #undef V8EXPORT |
4227 #undef TYPE_CHECK | 4233 #undef TYPE_CHECK |
4228 | 4234 |
4229 | 4235 |
4230 #endif // V8_H_ | 4236 #endif // V8_H_ |
OLD | NEW |