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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 } | 160 } |
161 | 161 |
162 | 162 |
163 bool Object::NonFailureIsHeapObject() { | 163 bool Object::NonFailureIsHeapObject() { |
164 ASSERT(!this->IsFailure()); | 164 ASSERT(!this->IsFailure()); |
165 return (reinterpret_cast<intptr_t>(this) & kSmiTagMask) != 0; | 165 return (reinterpret_cast<intptr_t>(this) & kSmiTagMask) != 0; |
166 } | 166 } |
167 | 167 |
168 | 168 |
169 TYPE_CHECKER(HeapNumber, HEAP_NUMBER_TYPE) | 169 TYPE_CHECKER(HeapNumber, HEAP_NUMBER_TYPE) |
| 170 TYPE_CHECKER(Float32x4, FLOAT32x4_TYPE) |
| 171 TYPE_CHECKER(Int32x4, INT32x4_TYPE) |
170 TYPE_CHECKER(Symbol, SYMBOL_TYPE) | 172 TYPE_CHECKER(Symbol, SYMBOL_TYPE) |
171 | 173 |
172 | 174 |
173 bool Object::IsString() { | 175 bool Object::IsString() { |
174 return Object::IsHeapObject() | 176 return Object::IsHeapObject() |
175 && HeapObject::cast(this)->map()->instance_type() < FIRST_NONSTRING_TYPE; | 177 && HeapObject::cast(this)->map()->instance_type() < FIRST_NONSTRING_TYPE; |
176 } | 178 } |
177 | 179 |
178 | 180 |
179 bool Object::IsName() { | 181 bool Object::IsName() { |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 } | 476 } |
475 | 477 |
476 | 478 |
477 TYPE_CHECKER(ExternalByteArray, EXTERNAL_BYTE_ARRAY_TYPE) | 479 TYPE_CHECKER(ExternalByteArray, EXTERNAL_BYTE_ARRAY_TYPE) |
478 TYPE_CHECKER(ExternalUnsignedByteArray, EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE) | 480 TYPE_CHECKER(ExternalUnsignedByteArray, EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE) |
479 TYPE_CHECKER(ExternalShortArray, EXTERNAL_SHORT_ARRAY_TYPE) | 481 TYPE_CHECKER(ExternalShortArray, EXTERNAL_SHORT_ARRAY_TYPE) |
480 TYPE_CHECKER(ExternalUnsignedShortArray, EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE) | 482 TYPE_CHECKER(ExternalUnsignedShortArray, EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE) |
481 TYPE_CHECKER(ExternalIntArray, EXTERNAL_INT_ARRAY_TYPE) | 483 TYPE_CHECKER(ExternalIntArray, EXTERNAL_INT_ARRAY_TYPE) |
482 TYPE_CHECKER(ExternalUnsignedIntArray, EXTERNAL_UNSIGNED_INT_ARRAY_TYPE) | 484 TYPE_CHECKER(ExternalUnsignedIntArray, EXTERNAL_UNSIGNED_INT_ARRAY_TYPE) |
483 TYPE_CHECKER(ExternalFloatArray, EXTERNAL_FLOAT_ARRAY_TYPE) | 485 TYPE_CHECKER(ExternalFloatArray, EXTERNAL_FLOAT_ARRAY_TYPE) |
| 486 TYPE_CHECKER(ExternalFloat32x4Array, EXTERNAL_FLOAT32x4_ARRAY_TYPE) |
| 487 TYPE_CHECKER(ExternalInt32x4Array, EXTERNAL_INT32x4_ARRAY_TYPE) |
484 TYPE_CHECKER(ExternalDoubleArray, EXTERNAL_DOUBLE_ARRAY_TYPE) | 488 TYPE_CHECKER(ExternalDoubleArray, EXTERNAL_DOUBLE_ARRAY_TYPE) |
485 | 489 |
486 | 490 |
487 bool MaybeObject::IsFailure() { | 491 bool MaybeObject::IsFailure() { |
488 return HAS_FAILURE_TAG(this); | 492 return HAS_FAILURE_TAG(this); |
489 } | 493 } |
490 | 494 |
491 | 495 |
492 bool MaybeObject::IsRetryAfterGC() { | 496 bool MaybeObject::IsRetryAfterGC() { |
493 return HAS_FAILURE_TAG(this) | 497 return HAS_FAILURE_TAG(this) |
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
983 uint32_t u[2]; | 987 uint32_t u[2]; |
984 } c; | 988 } c; |
985 c.d = value; | 989 c.d = value; |
986 (*reinterpret_cast<uint32_t*>(FIELD_ADDR(p, offset))) = c.u[0]; | 990 (*reinterpret_cast<uint32_t*>(FIELD_ADDR(p, offset))) = c.u[0]; |
987 (*reinterpret_cast<uint32_t*>(FIELD_ADDR(p, offset + 4))) = c.u[1]; | 991 (*reinterpret_cast<uint32_t*>(FIELD_ADDR(p, offset + 4))) = c.u[1]; |
988 } | 992 } |
989 #define WRITE_DOUBLE_FIELD(p, offset, value) \ | 993 #define WRITE_DOUBLE_FIELD(p, offset, value) \ |
990 write_double_field(p, offset, value) | 994 write_double_field(p, offset, value) |
991 #endif // V8_TARGET_ARCH_MIPS | 995 #endif // V8_TARGET_ARCH_MIPS |
992 | 996 |
| 997 #define READ_FLOAT32x4_FIELD(p, offset) \ |
| 998 (*reinterpret_cast<float32x4_value_t*>(FIELD_ADDR(p, offset))) |
| 999 |
| 1000 #define WRITE_FLOAT32x4_FIELD(p, offset, value) \ |
| 1001 (*reinterpret_cast<float32x4_value_t*>(FIELD_ADDR(p, offset)) = value) |
| 1002 |
| 1003 #define READ_INT32x4_FIELD(p, offset) \ |
| 1004 (*reinterpret_cast<int32x4_value_t*>(FIELD_ADDR(p, offset))) |
| 1005 |
| 1006 #define WRITE_INT32x4_FIELD(p, offset, value) \ |
| 1007 (*reinterpret_cast<int32x4_value_t*>(FIELD_ADDR(p, offset)) = value) |
| 1008 |
| 1009 #define READ_FLOAT_FIELD(p, offset) \ |
| 1010 (*reinterpret_cast<float*>(FIELD_ADDR(p, offset))) |
| 1011 |
| 1012 #define WRITE_FLOAT_FIELD(p, offset, value) \ |
| 1013 (*reinterpret_cast<float*>(FIELD_ADDR(p, offset)) = value) |
993 | 1014 |
994 #define READ_INT_FIELD(p, offset) \ | 1015 #define READ_INT_FIELD(p, offset) \ |
995 (*reinterpret_cast<int*>(FIELD_ADDR(p, offset))) | 1016 (*reinterpret_cast<int*>(FIELD_ADDR(p, offset))) |
996 | 1017 |
997 #define WRITE_INT_FIELD(p, offset, value) \ | 1018 #define WRITE_INT_FIELD(p, offset, value) \ |
998 (*reinterpret_cast<int*>(FIELD_ADDR(p, offset)) = value) | 1019 (*reinterpret_cast<int*>(FIELD_ADDR(p, offset)) = value) |
999 | 1020 |
1000 #define READ_INTPTR_FIELD(p, offset) \ | 1021 #define READ_INTPTR_FIELD(p, offset) \ |
1001 (*reinterpret_cast<intptr_t*>(FIELD_ADDR(p, offset))) | 1022 (*reinterpret_cast<intptr_t*>(FIELD_ADDR(p, offset))) |
1002 | 1023 |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1255 return ((READ_INT_FIELD(this, kExponentOffset) & kExponentMask) >> | 1276 return ((READ_INT_FIELD(this, kExponentOffset) & kExponentMask) >> |
1256 kExponentShift) - kExponentBias; | 1277 kExponentShift) - kExponentBias; |
1257 } | 1278 } |
1258 | 1279 |
1259 | 1280 |
1260 int HeapNumber::get_sign() { | 1281 int HeapNumber::get_sign() { |
1261 return READ_INT_FIELD(this, kExponentOffset) & kSignMask; | 1282 return READ_INT_FIELD(this, kExponentOffset) & kSignMask; |
1262 } | 1283 } |
1263 | 1284 |
1264 | 1285 |
| 1286 float32x4_value_t Float32x4::value() { |
| 1287 return READ_FLOAT32x4_FIELD(this, kValueOffset); |
| 1288 } |
| 1289 |
| 1290 |
| 1291 void Float32x4::set_value(float32x4_value_t value) { |
| 1292 WRITE_FLOAT32x4_FIELD(this, kValueOffset, value); |
| 1293 } |
| 1294 |
| 1295 |
| 1296 float Float32x4::x() { |
| 1297 return READ_FLOAT_FIELD(this, kValueOffset + 0 * kFloatSize); |
| 1298 } |
| 1299 |
| 1300 |
| 1301 float Float32x4::y() { |
| 1302 return READ_FLOAT_FIELD(this, kValueOffset + 1 * kFloatSize); |
| 1303 } |
| 1304 |
| 1305 |
| 1306 float Float32x4::z() { |
| 1307 return READ_FLOAT_FIELD(this, kValueOffset + 2 * kFloatSize); |
| 1308 } |
| 1309 |
| 1310 |
| 1311 float Float32x4::w() { |
| 1312 return READ_FLOAT_FIELD(this, kValueOffset + 3 * kFloatSize); |
| 1313 } |
| 1314 |
| 1315 |
| 1316 void Float32x4::set_x(float x) { |
| 1317 WRITE_FLOAT_FIELD(this, kValueOffset + 0 * kFloatSize, x); |
| 1318 } |
| 1319 |
| 1320 |
| 1321 void Float32x4::set_y(float y) { |
| 1322 WRITE_FLOAT_FIELD(this, kValueOffset + 1 * kFloatSize, y); |
| 1323 } |
| 1324 |
| 1325 |
| 1326 void Float32x4::set_z(float z) { |
| 1327 WRITE_FLOAT_FIELD(this, kValueOffset + 2 * kFloatSize, z); |
| 1328 } |
| 1329 |
| 1330 |
| 1331 void Float32x4::set_w(float w) { |
| 1332 WRITE_FLOAT_FIELD(this, kValueOffset + 3 * kFloatSize, w); |
| 1333 } |
| 1334 |
| 1335 |
| 1336 int32x4_value_t Int32x4::value() { |
| 1337 return READ_INT32x4_FIELD(this, kValueOffset); |
| 1338 } |
| 1339 |
| 1340 |
| 1341 void Int32x4::set_value(int32x4_value_t value) { |
| 1342 WRITE_INT32x4_FIELD(this, kValueOffset, value); |
| 1343 } |
| 1344 |
| 1345 |
| 1346 int32_t Int32x4::x() { |
| 1347 return READ_INT32_FIELD(this, kValueOffset + 0 * kInt32Size); |
| 1348 } |
| 1349 |
| 1350 |
| 1351 int32_t Int32x4::y() { |
| 1352 return READ_INT32_FIELD(this, kValueOffset + 1 * kInt32Size); |
| 1353 } |
| 1354 |
| 1355 |
| 1356 int32_t Int32x4::z() { |
| 1357 return READ_INT32_FIELD(this, kValueOffset + 2 * kInt32Size); |
| 1358 } |
| 1359 |
| 1360 |
| 1361 int32_t Int32x4::w() { |
| 1362 return READ_INT32_FIELD(this, kValueOffset + 3 * kInt32Size); |
| 1363 } |
| 1364 |
| 1365 |
| 1366 void Int32x4::set_x(int32_t x) { |
| 1367 WRITE_INT32_FIELD(this, kValueOffset + 0 * kInt32Size, x); |
| 1368 } |
| 1369 |
| 1370 |
| 1371 void Int32x4::set_y(int32_t y) { |
| 1372 WRITE_INT32_FIELD(this, kValueOffset + 1 * kInt32Size, y); |
| 1373 } |
| 1374 |
| 1375 |
| 1376 void Int32x4::set_z(int32_t z) { |
| 1377 WRITE_INT32_FIELD(this, kValueOffset + 2 * kInt32Size, z); |
| 1378 } |
| 1379 |
| 1380 |
| 1381 void Int32x4::set_w(int32_t w) { |
| 1382 WRITE_INT32_FIELD(this, kValueOffset + 3 * kInt32Size, w); |
| 1383 } |
| 1384 |
| 1385 |
1265 ACCESSORS(JSObject, properties, FixedArray, kPropertiesOffset) | 1386 ACCESSORS(JSObject, properties, FixedArray, kPropertiesOffset) |
1266 | 1387 |
1267 | 1388 |
1268 Object** FixedArray::GetFirstElementAddress() { | 1389 Object** FixedArray::GetFirstElementAddress() { |
1269 return reinterpret_cast<Object**>(FIELD_ADDR(this, OffsetOfElementAt(0))); | 1390 return reinterpret_cast<Object**>(FIELD_ADDR(this, OffsetOfElementAt(0))); |
1270 } | 1391 } |
1271 | 1392 |
1272 | 1393 |
1273 bool FixedArray::ContainsOnlySmisOrHoles() { | 1394 bool FixedArray::ContainsOnlySmisOrHoles() { |
1274 Object* the_hole = GetHeap()->the_hole_value(); | 1395 Object* the_hole = GetHeap()->the_hole_value(); |
(...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2603 CAST_ACCESSOR(ExternalString) | 2724 CAST_ACCESSOR(ExternalString) |
2604 CAST_ACCESSOR(ExternalAsciiString) | 2725 CAST_ACCESSOR(ExternalAsciiString) |
2605 CAST_ACCESSOR(ExternalTwoByteString) | 2726 CAST_ACCESSOR(ExternalTwoByteString) |
2606 CAST_ACCESSOR(Symbol) | 2727 CAST_ACCESSOR(Symbol) |
2607 CAST_ACCESSOR(Name) | 2728 CAST_ACCESSOR(Name) |
2608 CAST_ACCESSOR(JSReceiver) | 2729 CAST_ACCESSOR(JSReceiver) |
2609 CAST_ACCESSOR(JSObject) | 2730 CAST_ACCESSOR(JSObject) |
2610 CAST_ACCESSOR(Smi) | 2731 CAST_ACCESSOR(Smi) |
2611 CAST_ACCESSOR(HeapObject) | 2732 CAST_ACCESSOR(HeapObject) |
2612 CAST_ACCESSOR(HeapNumber) | 2733 CAST_ACCESSOR(HeapNumber) |
| 2734 CAST_ACCESSOR(Float32x4) |
| 2735 CAST_ACCESSOR(Int32x4) |
2613 CAST_ACCESSOR(Oddball) | 2736 CAST_ACCESSOR(Oddball) |
2614 CAST_ACCESSOR(Cell) | 2737 CAST_ACCESSOR(Cell) |
2615 CAST_ACCESSOR(PropertyCell) | 2738 CAST_ACCESSOR(PropertyCell) |
2616 CAST_ACCESSOR(SharedFunctionInfo) | 2739 CAST_ACCESSOR(SharedFunctionInfo) |
2617 CAST_ACCESSOR(Map) | 2740 CAST_ACCESSOR(Map) |
2618 CAST_ACCESSOR(JSFunction) | 2741 CAST_ACCESSOR(JSFunction) |
2619 CAST_ACCESSOR(GlobalObject) | 2742 CAST_ACCESSOR(GlobalObject) |
2620 CAST_ACCESSOR(JSGlobalProxy) | 2743 CAST_ACCESSOR(JSGlobalProxy) |
2621 CAST_ACCESSOR(JSGlobalObject) | 2744 CAST_ACCESSOR(JSGlobalObject) |
2622 CAST_ACCESSOR(JSBuiltinsObject) | 2745 CAST_ACCESSOR(JSBuiltinsObject) |
(...skipping 14 matching lines...) Expand all Loading... |
2637 CAST_ACCESSOR(ByteArray) | 2760 CAST_ACCESSOR(ByteArray) |
2638 CAST_ACCESSOR(FreeSpace) | 2761 CAST_ACCESSOR(FreeSpace) |
2639 CAST_ACCESSOR(ExternalArray) | 2762 CAST_ACCESSOR(ExternalArray) |
2640 CAST_ACCESSOR(ExternalByteArray) | 2763 CAST_ACCESSOR(ExternalByteArray) |
2641 CAST_ACCESSOR(ExternalUnsignedByteArray) | 2764 CAST_ACCESSOR(ExternalUnsignedByteArray) |
2642 CAST_ACCESSOR(ExternalShortArray) | 2765 CAST_ACCESSOR(ExternalShortArray) |
2643 CAST_ACCESSOR(ExternalUnsignedShortArray) | 2766 CAST_ACCESSOR(ExternalUnsignedShortArray) |
2644 CAST_ACCESSOR(ExternalIntArray) | 2767 CAST_ACCESSOR(ExternalIntArray) |
2645 CAST_ACCESSOR(ExternalUnsignedIntArray) | 2768 CAST_ACCESSOR(ExternalUnsignedIntArray) |
2646 CAST_ACCESSOR(ExternalFloatArray) | 2769 CAST_ACCESSOR(ExternalFloatArray) |
| 2770 CAST_ACCESSOR(ExternalFloat32x4Array) |
| 2771 CAST_ACCESSOR(ExternalInt32x4Array) |
2647 CAST_ACCESSOR(ExternalDoubleArray) | 2772 CAST_ACCESSOR(ExternalDoubleArray) |
2648 CAST_ACCESSOR(ExternalPixelArray) | 2773 CAST_ACCESSOR(ExternalPixelArray) |
2649 CAST_ACCESSOR(Struct) | 2774 CAST_ACCESSOR(Struct) |
2650 CAST_ACCESSOR(AccessorInfo) | 2775 CAST_ACCESSOR(AccessorInfo) |
2651 | 2776 |
2652 | 2777 |
2653 #define MAKE_STRUCT_CAST(NAME, Name, name) CAST_ACCESSOR(Name) | 2778 #define MAKE_STRUCT_CAST(NAME, Name, name) CAST_ACCESSOR(Name) |
2654 STRUCT_LIST(MAKE_STRUCT_CAST) | 2779 STRUCT_LIST(MAKE_STRUCT_CAST) |
2655 #undef MAKE_STRUCT_CAST | 2780 #undef MAKE_STRUCT_CAST |
2656 | 2781 |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3398 } | 3523 } |
3399 | 3524 |
3400 | 3525 |
3401 void ExternalFloatArray::set(int index, float value) { | 3526 void ExternalFloatArray::set(int index, float value) { |
3402 ASSERT((index >= 0) && (index < this->length())); | 3527 ASSERT((index >= 0) && (index < this->length())); |
3403 float* ptr = static_cast<float*>(external_pointer()); | 3528 float* ptr = static_cast<float*>(external_pointer()); |
3404 ptr[index] = value; | 3529 ptr[index] = value; |
3405 } | 3530 } |
3406 | 3531 |
3407 | 3532 |
| 3533 float32x4_value_t ExternalFloat32x4Array::get_scalar(int index) { |
| 3534 ASSERT((index >= 0) && (index < this->length())); |
| 3535 float* ptr = static_cast<float*>(external_pointer()); |
| 3536 float32x4_value_t value; |
| 3537 value.storage[0] = ptr[index * 4 + 0]; |
| 3538 value.storage[1] = ptr[index * 4 + 1]; |
| 3539 value.storage[2] = ptr[index * 4 + 2]; |
| 3540 value.storage[3] = ptr[index * 4 + 3]; |
| 3541 return value; |
| 3542 } |
| 3543 |
| 3544 |
| 3545 MaybeObject* ExternalFloat32x4Array::get(int index) { |
| 3546 float32x4_value_t value = get_scalar(index); |
| 3547 return GetHeap()->AllocateFloat32x4(value); |
| 3548 } |
| 3549 |
| 3550 |
| 3551 void ExternalFloat32x4Array::set(int index, const float32x4_value_t& value) { |
| 3552 ASSERT((index >= 0) && (index < this->length())); |
| 3553 float* ptr = static_cast<float*>(external_pointer()); |
| 3554 ptr[index * 4 + 0] = value.storage[0]; |
| 3555 ptr[index * 4 + 1] = value.storage[1]; |
| 3556 ptr[index * 4 + 2] = value.storage[2]; |
| 3557 ptr[index * 4 + 3] = value.storage[3]; |
| 3558 } |
| 3559 |
| 3560 |
| 3561 int32x4_value_t ExternalInt32x4Array::get_scalar(int index) { |
| 3562 ASSERT((index >= 0) && (index < this->length())); |
| 3563 int32_t* ptr = static_cast<int32_t*>(external_pointer()); |
| 3564 int32x4_value_t value; |
| 3565 value.storage[0] = ptr[index * 4 + 0]; |
| 3566 value.storage[1] = ptr[index * 4 + 1]; |
| 3567 value.storage[2] = ptr[index * 4 + 2]; |
| 3568 value.storage[3] = ptr[index * 4 + 3]; |
| 3569 return value; |
| 3570 } |
| 3571 |
| 3572 |
| 3573 MaybeObject* ExternalInt32x4Array::get(int index) { |
| 3574 int32x4_value_t value = get_scalar(index); |
| 3575 return GetHeap()->AllocateInt32x4(value); |
| 3576 } |
| 3577 |
| 3578 |
| 3579 void ExternalInt32x4Array::set(int index, const int32x4_value_t& value) { |
| 3580 ASSERT((index >= 0) && (index < this->length())); |
| 3581 int32_t* ptr = static_cast<int32_t*>(external_pointer()); |
| 3582 ptr[index * 4 + 0] = value.storage[0]; |
| 3583 ptr[index * 4 + 1] = value.storage[1]; |
| 3584 ptr[index * 4 + 2] = value.storage[2]; |
| 3585 ptr[index * 4 + 3] = value.storage[3]; |
| 3586 } |
| 3587 |
| 3588 |
3408 double ExternalDoubleArray::get_scalar(int index) { | 3589 double ExternalDoubleArray::get_scalar(int index) { |
3409 ASSERT((index >= 0) && (index < this->length())); | 3590 ASSERT((index >= 0) && (index < this->length())); |
3410 double* ptr = static_cast<double*>(external_pointer()); | 3591 double* ptr = static_cast<double*>(external_pointer()); |
3411 return ptr[index]; | 3592 return ptr[index]; |
3412 } | 3593 } |
3413 | 3594 |
3414 | 3595 |
3415 MaybeObject* ExternalDoubleArray::get(int index) { | 3596 MaybeObject* ExternalDoubleArray::get(int index) { |
3416 return GetHeap()->NumberFromDouble(get_scalar(index)); | 3597 return GetHeap()->NumberFromDouble(get_scalar(index)); |
3417 } | 3598 } |
(...skipping 2207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5625 EXTERNAL_ELEMENTS_CHECK(Byte, EXTERNAL_BYTE_ARRAY_TYPE) | 5806 EXTERNAL_ELEMENTS_CHECK(Byte, EXTERNAL_BYTE_ARRAY_TYPE) |
5626 EXTERNAL_ELEMENTS_CHECK(UnsignedByte, EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE) | 5807 EXTERNAL_ELEMENTS_CHECK(UnsignedByte, EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE) |
5627 EXTERNAL_ELEMENTS_CHECK(Short, EXTERNAL_SHORT_ARRAY_TYPE) | 5808 EXTERNAL_ELEMENTS_CHECK(Short, EXTERNAL_SHORT_ARRAY_TYPE) |
5628 EXTERNAL_ELEMENTS_CHECK(UnsignedShort, | 5809 EXTERNAL_ELEMENTS_CHECK(UnsignedShort, |
5629 EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE) | 5810 EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE) |
5630 EXTERNAL_ELEMENTS_CHECK(Int, EXTERNAL_INT_ARRAY_TYPE) | 5811 EXTERNAL_ELEMENTS_CHECK(Int, EXTERNAL_INT_ARRAY_TYPE) |
5631 EXTERNAL_ELEMENTS_CHECK(UnsignedInt, | 5812 EXTERNAL_ELEMENTS_CHECK(UnsignedInt, |
5632 EXTERNAL_UNSIGNED_INT_ARRAY_TYPE) | 5813 EXTERNAL_UNSIGNED_INT_ARRAY_TYPE) |
5633 EXTERNAL_ELEMENTS_CHECK(Float, | 5814 EXTERNAL_ELEMENTS_CHECK(Float, |
5634 EXTERNAL_FLOAT_ARRAY_TYPE) | 5815 EXTERNAL_FLOAT_ARRAY_TYPE) |
| 5816 EXTERNAL_ELEMENTS_CHECK(Float32x4, |
| 5817 EXTERNAL_FLOAT32x4_ARRAY_TYPE) |
| 5818 EXTERNAL_ELEMENTS_CHECK(Int32x4, |
| 5819 EXTERNAL_INT32x4_ARRAY_TYPE) |
5635 EXTERNAL_ELEMENTS_CHECK(Double, | 5820 EXTERNAL_ELEMENTS_CHECK(Double, |
5636 EXTERNAL_DOUBLE_ARRAY_TYPE) | 5821 EXTERNAL_DOUBLE_ARRAY_TYPE) |
5637 EXTERNAL_ELEMENTS_CHECK(Pixel, EXTERNAL_PIXEL_ARRAY_TYPE) | 5822 EXTERNAL_ELEMENTS_CHECK(Pixel, EXTERNAL_PIXEL_ARRAY_TYPE) |
5638 | 5823 |
5639 | 5824 |
5640 bool JSObject::HasNamedInterceptor() { | 5825 bool JSObject::HasNamedInterceptor() { |
5641 return map()->has_named_interceptor(); | 5826 return map()->has_named_interceptor(); |
5642 } | 5827 } |
5643 | 5828 |
5644 | 5829 |
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6424 #undef WRITE_UINT32_FIELD | 6609 #undef WRITE_UINT32_FIELD |
6425 #undef READ_SHORT_FIELD | 6610 #undef READ_SHORT_FIELD |
6426 #undef WRITE_SHORT_FIELD | 6611 #undef WRITE_SHORT_FIELD |
6427 #undef READ_BYTE_FIELD | 6612 #undef READ_BYTE_FIELD |
6428 #undef WRITE_BYTE_FIELD | 6613 #undef WRITE_BYTE_FIELD |
6429 | 6614 |
6430 | 6615 |
6431 } } // namespace v8::internal | 6616 } } // namespace v8::internal |
6432 | 6617 |
6433 #endif // V8_OBJECTS_INL_H_ | 6618 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |