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

Side by Side Diff: include/v8.h

Issue 2818003: API: Added functions to retreive information on indexed properties managed by... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 6 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 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 1552 matching lines...) Expand 10 before | Expand all | Expand 10 after
1563 Local<Object> Clone(); 1563 Local<Object> Clone();
1564 1564
1565 /** 1565 /**
1566 * Set the backing store of the indexed properties to be managed by the 1566 * Set the backing store of the indexed properties to be managed by the
1567 * embedding layer. Access to the indexed properties will follow the rules 1567 * embedding layer. Access to the indexed properties will follow the rules
1568 * spelled out in CanvasPixelArray. 1568 * spelled out in CanvasPixelArray.
1569 * Note: The embedding program still owns the data and needs to ensure that 1569 * Note: The embedding program still owns the data and needs to ensure that
1570 * the backing store is preserved while V8 has a reference. 1570 * the backing store is preserved while V8 has a reference.
1571 */ 1571 */
1572 void SetIndexedPropertiesToPixelData(uint8_t* data, int length); 1572 void SetIndexedPropertiesToPixelData(uint8_t* data, int length);
1573 bool HasIndexedPropertiesInPixelData();
1574 uint8_t* GetIndexedPropertiesPixelData();
1575 int GetIndexedPropertiesPixelDataLength();
1573 1576
1574 /** 1577 /**
1575 * Set the backing store of the indexed properties to be managed by the 1578 * Set the backing store of the indexed properties to be managed by the
1576 * embedding layer. Access to the indexed properties will follow the rules 1579 * embedding layer. Access to the indexed properties will follow the rules
1577 * spelled out for the CanvasArray subtypes in the WebGL specification. 1580 * spelled out for the CanvasArray subtypes in the WebGL specification.
1578 * Note: The embedding program still owns the data and needs to ensure that 1581 * Note: The embedding program still owns the data and needs to ensure that
1579 * the backing store is preserved while V8 has a reference. 1582 * the backing store is preserved while V8 has a reference.
1580 */ 1583 */
1581 void SetIndexedPropertiesToExternalArrayData(void* data, 1584 void SetIndexedPropertiesToExternalArrayData(void* data,
1582 ExternalArrayType array_type, 1585 ExternalArrayType array_type,
1583 int number_of_elements); 1586 int number_of_elements);
1587 bool HasIndexedPropertiesInExternalArrayData();
1588 void* GetIndexedPropertiesExternalArrayData();
1589 ExternalArrayType GetIndexedPropertiesExternalArrayDataType();
1590 int GetIndexedPropertiesExternalArrayDataLength();
1584 1591
1585 static Local<Object> New(); 1592 static Local<Object> New();
1586 static inline Object* Cast(Value* obj); 1593 static inline Object* Cast(Value* obj);
1587 private: 1594 private:
1588 Object(); 1595 Object();
1589 static void CheckCast(Value* obj); 1596 static void CheckCast(Value* obj);
1590 Local<Value> CheckedGetInternalField(int index); 1597 Local<Value> CheckedGetInternalField(int index);
1591 void* SlowGetPointerFromInternalField(int index); 1598 void* SlowGetPointerFromInternalField(int index);
1592 1599
1593 /** 1600 /**
(...skipping 2022 matching lines...) Expand 10 before | Expand all | Expand 10 after
3616 3623
3617 } // namespace v8 3624 } // namespace v8
3618 3625
3619 3626
3620 #undef V8EXPORT 3627 #undef V8EXPORT
3621 #undef V8EXPORT_INLINE 3628 #undef V8EXPORT_INLINE
3622 #undef TYPE_CHECK 3629 #undef TYPE_CHECK
3623 3630
3624 3631
3625 #endif // V8_H_ 3632 #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