OLD | NEW |
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 3277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3288 | 3288 |
3289 External* External::Cast(v8::Value* value) { | 3289 External* External::Cast(v8::Value* value) { |
3290 #ifdef V8_ENABLE_CHECKS | 3290 #ifdef V8_ENABLE_CHECKS |
3291 CheckCast(value); | 3291 CheckCast(value); |
3292 #endif | 3292 #endif |
3293 return static_cast<External*>(value); | 3293 return static_cast<External*>(value); |
3294 } | 3294 } |
3295 | 3295 |
3296 | 3296 |
3297 Local<Value> AccessorInfo::Data() const { | 3297 Local<Value> AccessorInfo::Data() const { |
3298 return Local<Value>(reinterpret_cast<Value*>(&args_[-3])); | 3298 return Local<Value>(reinterpret_cast<Value*>(&args_[-2])); |
3299 } | 3299 } |
3300 | 3300 |
3301 | 3301 |
3302 Local<Object> AccessorInfo::This() const { | 3302 Local<Object> AccessorInfo::This() const { |
3303 return Local<Object>(reinterpret_cast<Object*>(&args_[0])); | 3303 return Local<Object>(reinterpret_cast<Object*>(&args_[0])); |
3304 } | 3304 } |
3305 | 3305 |
3306 | 3306 |
3307 Local<Object> AccessorInfo::Holder() const { | 3307 Local<Object> AccessorInfo::Holder() const { |
3308 return Local<Object>(reinterpret_cast<Object*>(&args_[-1])); | 3308 return Local<Object>(reinterpret_cast<Object*>(&args_[-1])); |
(...skipping 14 matching lines...) Expand all Loading... |
3323 | 3323 |
3324 } // namespace v8 | 3324 } // namespace v8 |
3325 | 3325 |
3326 | 3326 |
3327 #undef V8EXPORT | 3327 #undef V8EXPORT |
3328 #undef V8EXPORT_INLINE | 3328 #undef V8EXPORT_INLINE |
3329 #undef TYPE_CHECK | 3329 #undef TYPE_CHECK |
3330 | 3330 |
3331 | 3331 |
3332 #endif // V8_H_ | 3332 #endif // V8_H_ |
OLD | NEW |