| 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 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1311 else if (IsNull()) | 1311 else if (IsNull()) |
| 1312 accumulator->Add("<null>"); | 1312 accumulator->Add("<null>"); |
| 1313 else if (IsTrue()) | 1313 else if (IsTrue()) |
| 1314 accumulator->Add("<true>"); | 1314 accumulator->Add("<true>"); |
| 1315 else if (IsFalse()) | 1315 else if (IsFalse()) |
| 1316 accumulator->Add("<false>"); | 1316 accumulator->Add("<false>"); |
| 1317 else | 1317 else |
| 1318 accumulator->Add("<Odd Oddball>"); | 1318 accumulator->Add("<Odd Oddball>"); |
| 1319 break; | 1319 break; |
| 1320 } | 1320 } |
| 1321 case SYMBOL_TYPE: |
| 1322 accumulator->Add("<Symbol: %d>", Symbol::cast(this)->Hash()); |
| 1323 break; |
| 1321 case HEAP_NUMBER_TYPE: | 1324 case HEAP_NUMBER_TYPE: |
| 1322 accumulator->Add("<Number: "); | 1325 accumulator->Add("<Number: "); |
| 1323 HeapNumber::cast(this)->HeapNumberPrint(accumulator); | 1326 HeapNumber::cast(this)->HeapNumberPrint(accumulator); |
| 1324 accumulator->Put('>'); | 1327 accumulator->Put('>'); |
| 1325 break; | 1328 break; |
| 1326 case JS_PROXY_TYPE: | 1329 case JS_PROXY_TYPE: |
| 1327 accumulator->Add("<JSProxy>"); | 1330 accumulator->Add("<JSProxy>"); |
| 1328 break; | 1331 break; |
| 1329 case JS_FUNCTION_PROXY_TYPE: | 1332 case JS_FUNCTION_PROXY_TYPE: |
| 1330 accumulator->Add("<JSFunctionProxy>"); | 1333 accumulator->Add("<JSFunctionProxy>"); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1419 break; | 1422 break; |
| 1420 case MAP_TYPE: | 1423 case MAP_TYPE: |
| 1421 Map::BodyDescriptor::IterateBody(this, v); | 1424 Map::BodyDescriptor::IterateBody(this, v); |
| 1422 break; | 1425 break; |
| 1423 case CODE_TYPE: | 1426 case CODE_TYPE: |
| 1424 reinterpret_cast<Code*>(this)->CodeIterateBody(v); | 1427 reinterpret_cast<Code*>(this)->CodeIterateBody(v); |
| 1425 break; | 1428 break; |
| 1426 case JS_GLOBAL_PROPERTY_CELL_TYPE: | 1429 case JS_GLOBAL_PROPERTY_CELL_TYPE: |
| 1427 JSGlobalPropertyCell::BodyDescriptor::IterateBody(this, v); | 1430 JSGlobalPropertyCell::BodyDescriptor::IterateBody(this, v); |
| 1428 break; | 1431 break; |
| 1432 case SYMBOL_TYPE: |
| 1429 case HEAP_NUMBER_TYPE: | 1433 case HEAP_NUMBER_TYPE: |
| 1430 case FILLER_TYPE: | 1434 case FILLER_TYPE: |
| 1431 case BYTE_ARRAY_TYPE: | 1435 case BYTE_ARRAY_TYPE: |
| 1432 case FREE_SPACE_TYPE: | 1436 case FREE_SPACE_TYPE: |
| 1433 case EXTERNAL_PIXEL_ARRAY_TYPE: | 1437 case EXTERNAL_PIXEL_ARRAY_TYPE: |
| 1434 case EXTERNAL_BYTE_ARRAY_TYPE: | 1438 case EXTERNAL_BYTE_ARRAY_TYPE: |
| 1435 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: | 1439 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: |
| 1436 case EXTERNAL_SHORT_ARRAY_TYPE: | 1440 case EXTERNAL_SHORT_ARRAY_TYPE: |
| 1437 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: | 1441 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: |
| 1438 case EXTERNAL_INT_ARRAY_TYPE: | 1442 case EXTERNAL_INT_ARRAY_TYPE: |
| (...skipping 12458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13897 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 13901 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
| 13898 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 13902 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
| 13899 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 13903 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
| 13900 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 13904 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
| 13901 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 13905 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
| 13902 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 13906 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
| 13903 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 13907 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
| 13904 } | 13908 } |
| 13905 | 13909 |
| 13906 } } // namespace v8::internal | 13910 } } // namespace v8::internal |
| OLD | NEW |