OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 3143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3154 case i::EXTERNAL_SHORT_ARRAY_TYPE: | 3154 case i::EXTERNAL_SHORT_ARRAY_TYPE: |
3155 return kExternalShortArray; | 3155 return kExternalShortArray; |
3156 case i::EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: | 3156 case i::EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: |
3157 return kExternalUnsignedShortArray; | 3157 return kExternalUnsignedShortArray; |
3158 case i::EXTERNAL_INT_ARRAY_TYPE: | 3158 case i::EXTERNAL_INT_ARRAY_TYPE: |
3159 return kExternalIntArray; | 3159 return kExternalIntArray; |
3160 case i::EXTERNAL_UNSIGNED_INT_ARRAY_TYPE: | 3160 case i::EXTERNAL_UNSIGNED_INT_ARRAY_TYPE: |
3161 return kExternalUnsignedIntArray; | 3161 return kExternalUnsignedIntArray; |
3162 case i::EXTERNAL_FLOAT_ARRAY_TYPE: | 3162 case i::EXTERNAL_FLOAT_ARRAY_TYPE: |
3163 return kExternalFloatArray; | 3163 return kExternalFloatArray; |
| 3164 case i::EXTERNAL_DOUBLE_ARRAY_TYPE: |
| 3165 return kExternalDoubleArray; |
3164 case i::EXTERNAL_PIXEL_ARRAY_TYPE: | 3166 case i::EXTERNAL_PIXEL_ARRAY_TYPE: |
3165 return kExternalPixelArray; | 3167 return kExternalPixelArray; |
3166 default: | 3168 default: |
3167 return static_cast<ExternalArrayType>(-1); | 3169 return static_cast<ExternalArrayType>(-1); |
3168 } | 3170 } |
3169 } | 3171 } |
3170 | 3172 |
3171 | 3173 |
3172 int v8::Object::GetIndexedPropertiesExternalArrayDataLength() { | 3174 int v8::Object::GetIndexedPropertiesExternalArrayDataLength() { |
3173 i::Handle<i::JSObject> self = Utils::OpenHandle(this); | 3175 i::Handle<i::JSObject> self = Utils::OpenHandle(this); |
(...skipping 2500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5674 | 5676 |
5675 | 5677 |
5676 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 5678 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
5677 HandleScopeImplementer* scope_implementer = | 5679 HandleScopeImplementer* scope_implementer = |
5678 reinterpret_cast<HandleScopeImplementer*>(storage); | 5680 reinterpret_cast<HandleScopeImplementer*>(storage); |
5679 scope_implementer->IterateThis(v); | 5681 scope_implementer->IterateThis(v); |
5680 return storage + ArchiveSpacePerThread(); | 5682 return storage + ArchiveSpacePerThread(); |
5681 } | 5683 } |
5682 | 5684 |
5683 } } // namespace v8::internal | 5685 } } // namespace v8::internal |
OLD | NEW |