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

Side by Side Diff: include/v8.h

Issue 141044: A helper function to speed up creation of V8 wrappers for DOM Nodes. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 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 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 }; 1169 };
1170 1170
1171 1171
1172 /** 1172 /**
1173 * An instance of the built-in array constructor (ECMA-262, 15.4.2). 1173 * An instance of the built-in array constructor (ECMA-262, 15.4.2).
1174 */ 1174 */
1175 class V8EXPORT Array : public Object { 1175 class V8EXPORT Array : public Object {
1176 public: 1176 public:
1177 uint32_t Length() const; 1177 uint32_t Length() const;
1178 1178
1179 /**
1180 * Clones an element at index |index|. Returns an empty
1181 * handle if cloning fails (for any reason).
1182 */
1183 Local<Object> CloneElementAt(uint32_t index);
1184
1179 static Local<Array> New(int length = 0); 1185 static Local<Array> New(int length = 0);
1180 static Array* Cast(Value* obj); 1186 static Array* Cast(Value* obj);
1181 private: 1187 private:
1182 Array(); 1188 Array();
1183 }; 1189 };
1184 1190
1185 1191
1186 /** 1192 /**
1187 * A JavaScript function object (ECMA-262, 15.3). 1193 * A JavaScript function object (ECMA-262, 15.3).
1188 */ 1194 */
(...skipping 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after
2605 2611
2606 } // namespace v8 2612 } // namespace v8
2607 2613
2608 2614
2609 #undef V8EXPORT 2615 #undef V8EXPORT
2610 #undef V8EXPORT_INLINE 2616 #undef V8EXPORT_INLINE
2611 #undef TYPE_CHECK 2617 #undef TYPE_CHECK
2612 2618
2613 2619
2614 #endif // V8_H_ 2620 #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