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

Side by Side Diff: include/v8.h

Issue 42466: Light-weight External objects (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 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.h » ('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 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 * A JavaScript value that wraps a c++ void*. This type of value is 1144 * A JavaScript value that wraps a c++ void*. This type of value is
1145 * mainly used to associate c++ data structures with JavaScript 1145 * mainly used to associate c++ data structures with JavaScript
1146 * objects. 1146 * objects.
1147 */ 1147 */
1148 class V8EXPORT External : public Value { 1148 class V8EXPORT External : public Value {
1149 public: 1149 public:
1150 static Local<External> New(void* value); 1150 static Local<External> New(void* value);
1151 static External* Cast(Value* obj); 1151 static External* Cast(Value* obj);
1152 void* Value() const; 1152 void* Value() const;
1153 private: 1153 private:
1154 enum {
1155 kAlignedPointerMask = 3,
1156 kAlignedPointerShift = 2
1157 };
1154 External(); 1158 External();
1155 }; 1159 };
1156 1160
1157 1161
1158 // --- T e m p l a t e s --- 1162 // --- T e m p l a t e s ---
1159 1163
1160 1164
1161 /** 1165 /**
1162 * The superclass of object and function templates. 1166 * The superclass of object and function templates.
1163 */ 1167 */
(...skipping 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after
2500 2504
2501 } // namespace v8 2505 } // namespace v8
2502 2506
2503 2507
2504 #undef V8EXPORT 2508 #undef V8EXPORT
2505 #undef V8EXPORT_INLINE 2509 #undef V8EXPORT_INLINE
2506 #undef TYPE_CHECK 2510 #undef TYPE_CHECK
2507 2511
2508 2512
2509 #endif // V8_H_ 2513 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698