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 1714 matching lines...) Loading... | |
1725 public: | 1725 public: |
1726 V8EXPORT Local<Object> NewInstance() const; | 1726 V8EXPORT Local<Object> NewInstance() const; |
1727 V8EXPORT Local<Object> NewInstance(int argc, Handle<Value> argv[]) const; | 1727 V8EXPORT Local<Object> NewInstance(int argc, Handle<Value> argv[]) const; |
1728 V8EXPORT Local<Value> Call(Handle<Object> recv, | 1728 V8EXPORT Local<Value> Call(Handle<Object> recv, |
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 * Name inferred from variable or property assignment of this function. | |
1736 * Used to facilitate debugging and profiling of JavaScript code written | |
1737 * in OO style, where almost all functions are anonymous but are assigned | |
danno
2012/01/25 12:34:10
nit: s/in OO/in an OO/
nit: s/almost all/many
yurys
2012/01/25 12:43:58
Done.
| |
1738 * to object properties. | |
1739 */ | |
1740 V8EXPORT Handle<Value> GetInferredName() const; | |
1741 | |
1742 /** | |
1735 * Returns zero based line number of function body and | 1743 * Returns zero based line number of function body and |
1736 * kLineOffsetNotFound if no information available. | 1744 * kLineOffsetNotFound if no information available. |
1737 */ | 1745 */ |
1738 V8EXPORT int GetScriptLineNumber() const; | 1746 V8EXPORT int GetScriptLineNumber() const; |
1739 /** | 1747 /** |
1740 * Returns zero based column number of function body and | 1748 * Returns zero based column number of function body and |
1741 * kLineOffsetNotFound if no information available. | 1749 * kLineOffsetNotFound if no information available. |
1742 */ | 1750 */ |
1743 V8EXPORT int GetScriptColumnNumber() const; | 1751 V8EXPORT int GetScriptColumnNumber() const; |
1744 V8EXPORT Handle<Value> GetScriptId() const; | 1752 V8EXPORT Handle<Value> GetScriptId() const; |
(...skipping 2523 matching lines...) Loading... | |
4268 | 4276 |
4269 | 4277 |
4270 } // namespace v8 | 4278 } // namespace v8 |
4271 | 4279 |
4272 | 4280 |
4273 #undef V8EXPORT | 4281 #undef V8EXPORT |
4274 #undef TYPE_CHECK | 4282 #undef TYPE_CHECK |
4275 | 4283 |
4276 | 4284 |
4277 #endif // V8_H_ | 4285 #endif // V8_H_ |
OLD | NEW |