| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1378 Object* constructor_name = | 1378 Object* constructor_name = |
| 1379 JSFunction::cast(constructor)->shared()->name(); | 1379 JSFunction::cast(constructor)->shared()->name(); |
| 1380 if (constructor_name->IsString()) { | 1380 if (constructor_name->IsString()) { |
| 1381 String* str = String::cast(constructor_name); | 1381 String* str = String::cast(constructor_name); |
| 1382 if (str->length() > 0) { | 1382 if (str->length() > 0) { |
| 1383 bool vowel = AnWord(str); | 1383 bool vowel = AnWord(str); |
| 1384 accumulator->Add("<%sa%s ", | 1384 accumulator->Add("<%sa%s ", |
| 1385 global_object ? "Global Object: " : "", | 1385 global_object ? "Global Object: " : "", |
| 1386 vowel ? "n" : ""); | 1386 vowel ? "n" : ""); |
| 1387 accumulator->Put(str); | 1387 accumulator->Put(str); |
| 1388 accumulator->Add(" with %smap 0x%p", | 1388 accumulator->Add(" with %smap %p", |
| 1389 map_of_this->is_deprecated() ? "deprecated " : "", | 1389 map_of_this->is_deprecated() ? "deprecated " : "", |
| 1390 map_of_this); | 1390 map_of_this); |
| 1391 printed = true; | 1391 printed = true; |
| 1392 } | 1392 } |
| 1393 } | 1393 } |
| 1394 } | 1394 } |
| 1395 } | 1395 } |
| 1396 if (!printed) { | 1396 if (!printed) { |
| 1397 accumulator->Add("<JS %sObject", global_object ? "Global " : ""); | 1397 accumulator->Add("<JS %sObject", global_object ? "Global " : ""); |
| 1398 } | 1398 } |
| (...skipping 9132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10531 break; | 10531 break; |
| 10532 } | 10532 } |
| 10533 | 10533 |
| 10534 case Translation::LITERAL: { | 10534 case Translation::LITERAL: { |
| 10535 unsigned literal_index = iterator.Next(); | 10535 unsigned literal_index = iterator.Next(); |
| 10536 PrintF(out, "{literal_id=%u}", literal_index); | 10536 PrintF(out, "{literal_id=%u}", literal_index); |
| 10537 break; | 10537 break; |
| 10538 } | 10538 } |
| 10539 | 10539 |
| 10540 case Translation::ARGUMENTS_OBJECT: { | 10540 case Translation::ARGUMENTS_OBJECT: { |
| 10541 bool args_known = iterator.Next(); | |
| 10542 int args_index = iterator.Next(); | |
| 10543 int args_length = iterator.Next(); | 10541 int args_length = iterator.Next(); |
| 10544 PrintF(out, "{index=%d, length=%d, known=%d}", | 10542 PrintF(out, "{length=%d}", args_length); |
| 10545 args_index, args_length, args_known); | |
| 10546 break; | 10543 break; |
| 10547 } | 10544 } |
| 10548 } | 10545 } |
| 10549 PrintF(out, "\n"); | 10546 PrintF(out, "\n"); |
| 10550 } | 10547 } |
| 10551 } | 10548 } |
| 10552 } | 10549 } |
| 10553 | 10550 |
| 10554 | 10551 |
| 10555 void DeoptimizationOutputData::DeoptimizationOutputDataPrint(FILE* out) { | 10552 void DeoptimizationOutputData::DeoptimizationOutputDataPrint(FILE* out) { |
| (...skipping 5148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15704 | 15701 |
| 15705 | 15702 |
| 15706 void JSTypedArray::Neuter() { | 15703 void JSTypedArray::Neuter() { |
| 15707 set_byte_offset(Smi::FromInt(0)); | 15704 set_byte_offset(Smi::FromInt(0)); |
| 15708 set_byte_length(Smi::FromInt(0)); | 15705 set_byte_length(Smi::FromInt(0)); |
| 15709 set_length(Smi::FromInt(0)); | 15706 set_length(Smi::FromInt(0)); |
| 15710 set_elements(GetHeap()->EmptyExternalArrayForMap(map())); | 15707 set_elements(GetHeap()->EmptyExternalArrayForMap(map())); |
| 15711 } | 15708 } |
| 15712 | 15709 |
| 15713 } } // namespace v8::internal | 15710 } } // namespace v8::internal |
| OLD | NEW |