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

Side by Side Diff: include/v8.h

Issue 15562008: Recording array buffer views. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: CR feedback Created 7 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 6129 matching lines...) Expand 10 before | Expand all | Expand 10 after
6140 6140
6141 6141
6142 Float64Array* Float64Array::Cast(v8::Value* value) { 6142 Float64Array* Float64Array::Cast(v8::Value* value) {
6143 #ifdef V8_ENABLE_CHECKS 6143 #ifdef V8_ENABLE_CHECKS
6144 CheckCast(value); 6144 CheckCast(value);
6145 #endif 6145 #endif
6146 return static_cast<Float64Array*>(value); 6146 return static_cast<Float64Array*>(value);
6147 } 6147 }
6148 6148
6149 6149
6150 Uint8ClampedArray* Uint8ClampedArray::Cast(v8::Value* value) {
6151 #ifdef V8_ENABLE_CHECKS
6152 CheckCast(value);
6153 #endif
6154 return static_cast<Uint8ClampedArray*>(value);
6155 }
6156
6157
6150 Function* Function::Cast(v8::Value* value) { 6158 Function* Function::Cast(v8::Value* value) {
6151 #ifdef V8_ENABLE_CHECKS 6159 #ifdef V8_ENABLE_CHECKS
6152 CheckCast(value); 6160 CheckCast(value);
6153 #endif 6161 #endif
6154 return static_cast<Function*>(value); 6162 return static_cast<Function*>(value);
6155 } 6163 }
6156 6164
6157 6165
6158 External* External::Cast(v8::Value* value) { 6166 External* External::Cast(v8::Value* value) {
6159 #ifdef V8_ENABLE_CHECKS 6167 #ifdef V8_ENABLE_CHECKS
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
6276 6284
6277 6285
6278 } // namespace v8 6286 } // namespace v8
6279 6287
6280 6288
6281 #undef V8EXPORT 6289 #undef V8EXPORT
6282 #undef TYPE_CHECK 6290 #undef TYPE_CHECK
6283 6291
6284 6292
6285 #endif // V8_H_ 6293 #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