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

Side by Side Diff: include/v8.h

Issue 6964005: Add IsCallable method for Object in the API (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after
1600 V8EXPORT void SetIndexedPropertiesToExternalArrayData( 1600 V8EXPORT void SetIndexedPropertiesToExternalArrayData(
1601 void* data, 1601 void* data,
1602 ExternalArrayType array_type, 1602 ExternalArrayType array_type,
1603 int number_of_elements); 1603 int number_of_elements);
1604 V8EXPORT bool HasIndexedPropertiesInExternalArrayData(); 1604 V8EXPORT bool HasIndexedPropertiesInExternalArrayData();
1605 V8EXPORT void* GetIndexedPropertiesExternalArrayData(); 1605 V8EXPORT void* GetIndexedPropertiesExternalArrayData();
1606 V8EXPORT ExternalArrayType GetIndexedPropertiesExternalArrayDataType(); 1606 V8EXPORT ExternalArrayType GetIndexedPropertiesExternalArrayDataType();
1607 V8EXPORT int GetIndexedPropertiesExternalArrayDataLength(); 1607 V8EXPORT int GetIndexedPropertiesExternalArrayDataLength();
1608 1608
1609 /** 1609 /**
1610 * Checks whether a callback is set by the
1611 * ObjectTemplate::SetCallAsFunctionHandler method.
1612 * When an Object is callable this method returns true.
1613 */
1614 V8EXPORT bool IsCallable();
1615
1616 /**
1610 * Call an Object as a function if a callback is set by the 1617 * Call an Object as a function if a callback is set by the
1611 * ObjectTemplate::SetCallAsFunctionHandler method. 1618 * ObjectTemplate::SetCallAsFunctionHandler method.
1612 */ 1619 */
1613 V8EXPORT Local<Value> CallAsFunction(Handle<Object> recv, 1620 V8EXPORT Local<Value> CallAsFunction(Handle<Object> recv,
1614 int argc, 1621 int argc,
1615 Handle<Value> argv[]); 1622 Handle<Value> argv[]);
1616 1623
1617 /** 1624 /**
1618 * Call an Object as a consturctor if a callback is set by the 1625 * Call an Object as a consturctor if a callback is set by the
1619 * ObjectTemplate::SetCallAsFunctionHandler method. 1626 * ObjectTemplate::SetCallAsFunctionHandler method.
(...skipping 2462 matching lines...) Expand 10 before | Expand all | Expand 10 after
4082 4089
4083 4090
4084 } // namespace v8 4091 } // namespace v8
4085 4092
4086 4093
4087 #undef V8EXPORT 4094 #undef V8EXPORT
4088 #undef TYPE_CHECK 4095 #undef TYPE_CHECK
4089 4096
4090 4097
4091 #endif // V8_H_ 4098 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698