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

Side by Side Diff: include/v8.h

Issue 5256004: Expose an API method for getting JSObject constructor name (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/api.cc » ('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 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after
1532 V8EXPORT Local<Object> FindInstanceInPrototypeChain( 1532 V8EXPORT Local<Object> FindInstanceInPrototypeChain(
1533 Handle<FunctionTemplate> tmpl); 1533 Handle<FunctionTemplate> tmpl);
1534 1534
1535 /** 1535 /**
1536 * Call builtin Object.prototype.toString on this object. 1536 * Call builtin Object.prototype.toString on this object.
1537 * This is different from Value::ToString() that may call 1537 * This is different from Value::ToString() that may call
1538 * user-defined toString function. This one does not. 1538 * user-defined toString function. This one does not.
1539 */ 1539 */
1540 V8EXPORT Local<String> ObjectProtoToString(); 1540 V8EXPORT Local<String> ObjectProtoToString();
1541 1541
1542 /**
1543 * Returns the name of the function invoked as a constructor for this object.
1544 */
1545 V8EXPORT Local<String> GetConstructorName();
1546
1542 /** Gets the number of internal fields for this Object. */ 1547 /** Gets the number of internal fields for this Object. */
1543 V8EXPORT int InternalFieldCount(); 1548 V8EXPORT int InternalFieldCount();
1544 /** Gets the value in an internal field. */ 1549 /** Gets the value in an internal field. */
1545 inline Local<Value> GetInternalField(int index); 1550 inline Local<Value> GetInternalField(int index);
1546 /** Sets the value in an internal field. */ 1551 /** Sets the value in an internal field. */
1547 V8EXPORT void SetInternalField(int index, Handle<Value> value); 1552 V8EXPORT void SetInternalField(int index, Handle<Value> value);
1548 1553
1549 /** Gets a native pointer from an internal field. */ 1554 /** Gets a native pointer from an internal field. */
1550 inline void* GetPointerFromInternalField(int index); 1555 inline void* GetPointerFromInternalField(int index);
1551 1556
(...skipping 2187 matching lines...) Expand 10 before | Expand all | Expand 10 after
3739 3744
3740 3745
3741 } // namespace v8 3746 } // namespace v8
3742 3747
3743 3748
3744 #undef V8EXPORT 3749 #undef V8EXPORT
3745 #undef TYPE_CHECK 3750 #undef TYPE_CHECK
3746 3751
3747 3752
3748 #endif // V8_H_ 3753 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698