OLD | NEW |
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...) Loading... |
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...) Loading... |
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_ |
OLD | NEW |