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

Side by Side Diff: include/v8.h

Issue 6883045: Add CallAsFunction method to the Object class in the API (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix failure in debug mode 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') | no next file with comments »
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 1669 matching lines...) Expand 10 before | Expand all | Expand 10 after
1680 */ 1680 */
1681 V8EXPORT void SetIndexedPropertiesToExternalArrayData( 1681 V8EXPORT void SetIndexedPropertiesToExternalArrayData(
1682 void* data, 1682 void* data,
1683 ExternalArrayType array_type, 1683 ExternalArrayType array_type,
1684 int number_of_elements); 1684 int number_of_elements);
1685 V8EXPORT bool HasIndexedPropertiesInExternalArrayData(); 1685 V8EXPORT bool HasIndexedPropertiesInExternalArrayData();
1686 V8EXPORT void* GetIndexedPropertiesExternalArrayData(); 1686 V8EXPORT void* GetIndexedPropertiesExternalArrayData();
1687 V8EXPORT ExternalArrayType GetIndexedPropertiesExternalArrayDataType(); 1687 V8EXPORT ExternalArrayType GetIndexedPropertiesExternalArrayDataType();
1688 V8EXPORT int GetIndexedPropertiesExternalArrayDataLength(); 1688 V8EXPORT int GetIndexedPropertiesExternalArrayDataLength();
1689 1689
1690 /**
1691 * Call an Object as a function if a callback is set by the
1692 * ObjectTemplate::SetCallAsFunctionHandler method.
1693 */
1694 V8EXPORT Local<Value> CallAsFunction(Handle<Object> recv,
1695 int argc,
1696 Handle<Value> argv[]);
1697
1690 V8EXPORT static Local<Object> New(); 1698 V8EXPORT static Local<Object> New();
1691 static inline Object* Cast(Value* obj); 1699 static inline Object* Cast(Value* obj);
1692 private: 1700 private:
1693 V8EXPORT Object(); 1701 V8EXPORT Object();
1694 V8EXPORT static void CheckCast(Value* obj); 1702 V8EXPORT static void CheckCast(Value* obj);
1695 V8EXPORT Local<Value> CheckedGetInternalField(int index); 1703 V8EXPORT Local<Value> CheckedGetInternalField(int index);
1696 V8EXPORT void* SlowGetPointerFromInternalField(int index); 1704 V8EXPORT void* SlowGetPointerFromInternalField(int index);
1697 1705
1698 /** 1706 /**
1699 * If quick access to the internal field is possible this method 1707 * If quick access to the internal field is possible this method
(...skipping 2355 matching lines...) Expand 10 before | Expand all | Expand 10 after
4055 4063
4056 4064
4057 } // namespace v8 4065 } // namespace v8
4058 4066
4059 4067
4060 #undef V8EXPORT 4068 #undef V8EXPORT
4061 #undef TYPE_CHECK 4069 #undef TYPE_CHECK
4062 4070
4063 4071
4064 #endif // V8_H_ 4072 #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