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

Side by Side Diff: include/v8.h

Issue 6066010: Merge 6095:6198 from bleeding_edge to experimental/gc. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 11 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 | « MERGE ('k') | src/SConscript » ('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 1633 matching lines...) Expand 10 before | Expand all | Expand 10 after
1644 V8EXPORT Local<Object> Clone(); 1644 V8EXPORT Local<Object> Clone();
1645 1645
1646 /** 1646 /**
1647 * Set the backing store of the indexed properties to be managed by the 1647 * Set the backing store of the indexed properties to be managed by the
1648 * embedding layer. Access to the indexed properties will follow the rules 1648 * embedding layer. Access to the indexed properties will follow the rules
1649 * spelled out in CanvasPixelArray. 1649 * spelled out in CanvasPixelArray.
1650 * Note: The embedding program still owns the data and needs to ensure that 1650 * Note: The embedding program still owns the data and needs to ensure that
1651 * the backing store is preserved while V8 has a reference. 1651 * the backing store is preserved while V8 has a reference.
1652 */ 1652 */
1653 V8EXPORT void SetIndexedPropertiesToPixelData(uint8_t* data, int length); 1653 V8EXPORT void SetIndexedPropertiesToPixelData(uint8_t* data, int length);
1654 bool HasIndexedPropertiesInPixelData(); 1654 V8EXPORT bool HasIndexedPropertiesInPixelData();
1655 uint8_t* GetIndexedPropertiesPixelData(); 1655 V8EXPORT uint8_t* GetIndexedPropertiesPixelData();
1656 int GetIndexedPropertiesPixelDataLength(); 1656 V8EXPORT int GetIndexedPropertiesPixelDataLength();
1657 1657
1658 /** 1658 /**
1659 * Set the backing store of the indexed properties to be managed by the 1659 * Set the backing store of the indexed properties to be managed by the
1660 * embedding layer. Access to the indexed properties will follow the rules 1660 * embedding layer. Access to the indexed properties will follow the rules
1661 * spelled out for the CanvasArray subtypes in the WebGL specification. 1661 * spelled out for the CanvasArray subtypes in the WebGL specification.
1662 * Note: The embedding program still owns the data and needs to ensure that 1662 * Note: The embedding program still owns the data and needs to ensure that
1663 * the backing store is preserved while V8 has a reference. 1663 * the backing store is preserved while V8 has a reference.
1664 */ 1664 */
1665 V8EXPORT void SetIndexedPropertiesToExternalArrayData( 1665 V8EXPORT void SetIndexedPropertiesToExternalArrayData(
1666 void* data, 1666 void* data,
1667 ExternalArrayType array_type, 1667 ExternalArrayType array_type,
1668 int number_of_elements); 1668 int number_of_elements);
1669 bool HasIndexedPropertiesInExternalArrayData(); 1669 V8EXPORT bool HasIndexedPropertiesInExternalArrayData();
1670 void* GetIndexedPropertiesExternalArrayData(); 1670 V8EXPORT void* GetIndexedPropertiesExternalArrayData();
1671 ExternalArrayType GetIndexedPropertiesExternalArrayDataType(); 1671 V8EXPORT ExternalArrayType GetIndexedPropertiesExternalArrayDataType();
1672 int GetIndexedPropertiesExternalArrayDataLength(); 1672 V8EXPORT int GetIndexedPropertiesExternalArrayDataLength();
1673 1673
1674 V8EXPORT static Local<Object> New(); 1674 V8EXPORT static Local<Object> New();
1675 static inline Object* Cast(Value* obj); 1675 static inline Object* Cast(Value* obj);
1676 private: 1676 private:
1677 V8EXPORT Object(); 1677 V8EXPORT Object();
1678 V8EXPORT static void CheckCast(Value* obj); 1678 V8EXPORT static void CheckCast(Value* obj);
1679 V8EXPORT Local<Value> CheckedGetInternalField(int index); 1679 V8EXPORT Local<Value> CheckedGetInternalField(int index);
1680 V8EXPORT void* SlowGetPointerFromInternalField(int index); 1680 V8EXPORT void* SlowGetPointerFromInternalField(int index);
1681 1681
1682 /** 1682 /**
(...skipping 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after
3069 * object that was associated with this context before a call to 3069 * object that was associated with this context before a call to
3070 * DetachGlobal. 3070 * DetachGlobal.
3071 */ 3071 */
3072 void ReattachGlobal(Handle<Object> global_object); 3072 void ReattachGlobal(Handle<Object> global_object);
3073 3073
3074 /** Creates a new context. 3074 /** Creates a new context.
3075 * 3075 *
3076 * Returns a persistent handle to the newly allocated context. This 3076 * Returns a persistent handle to the newly allocated context. This
3077 * persistent handle has to be disposed when the context is no 3077 * persistent handle has to be disposed when the context is no
3078 * longer used so the context can be garbage collected. 3078 * longer used so the context can be garbage collected.
3079 *
3080 * \param extensions An optional extension configuration containing
3081 * the extensions to be installed in the newly created context.
3082 *
3083 * \param global_template An optional object template from which the
3084 * global object for the newly created context will be created.
3085 *
3086 * \param global_object An optional global object to be reused for
3087 * the newly created context. This global object must have been
3088 * created by a previous call to Context::New with the same global
3089 * template. The state of the global object will be completely reset
3090 * and only object identify will remain.
3079 */ 3091 */
3080 static Persistent<Context> New( 3092 static Persistent<Context> New(
3081 ExtensionConfiguration* extensions = NULL, 3093 ExtensionConfiguration* extensions = NULL,
3082 Handle<ObjectTemplate> global_template = Handle<ObjectTemplate>(), 3094 Handle<ObjectTemplate> global_template = Handle<ObjectTemplate>(),
3083 Handle<Value> global_object = Handle<Value>()); 3095 Handle<Value> global_object = Handle<Value>());
3084 3096
3085 /** Returns the last entered context. */ 3097 /** Returns the last entered context. */
3086 static Local<Context> GetEntered(); 3098 static Local<Context> GetEntered();
3087 3099
3088 /** Returns the context that is on the top of the stack. */ 3100 /** Returns the context that is on the top of the stack. */
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
3782 3794
3783 3795
3784 } // namespace v8 3796 } // namespace v8
3785 3797
3786 3798
3787 #undef V8EXPORT 3799 #undef V8EXPORT
3788 #undef TYPE_CHECK 3800 #undef TYPE_CHECK
3789 3801
3790 3802
3791 #endif // V8_H_ 3803 #endif // V8_H_
OLDNEW
« no previous file with comments | « MERGE ('k') | src/SConscript » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698