OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 GenerateObjectDesc(obj, buffer, sizeof(buffer)); | 585 GenerateObjectDesc(obj, buffer, sizeof(buffer)); |
586 desc_str = buffer; | 586 desc_str = buffer; |
587 size = obj->Size(); | 587 size = obj->Size(); |
588 } | 588 } |
589 desc = Factory::NewStringFromAscii(CStrVector(desc_str)); | 589 desc = Factory::NewStringFromAscii(CStrVector(desc_str)); |
590 if (desc->IsFailure()) { | 590 if (desc->IsFailure()) { |
591 error = desc; | 591 error = desc; |
592 return false; | 592 return false; |
593 } | 593 } |
594 | 594 |
595 { MaybeObject* maybe_result = | 595 { MaybeObject* maybe_result = detail->SetProperty(*id_sym, |
596 detail->SetProperty(*id_sym, Smi::FromInt(obj_id), NONE); | 596 Smi::FromInt(obj_id), |
| 597 NONE, |
| 598 kNonStrictMode); |
597 if (maybe_result->IsFailure()) return false; | 599 if (maybe_result->IsFailure()) return false; |
598 } | 600 } |
599 { MaybeObject* maybe_result = | 601 { MaybeObject* maybe_result = detail->SetProperty(*desc_sym, |
600 detail->SetProperty(*desc_sym, *desc, NONE); | 602 *desc, |
| 603 NONE, |
| 604 kNonStrictMode); |
601 if (maybe_result->IsFailure()) return false; | 605 if (maybe_result->IsFailure()) return false; |
602 } | 606 } |
603 { MaybeObject* maybe_result = | 607 { MaybeObject* maybe_result = detail->SetProperty(*size_sym, |
604 detail->SetProperty(*size_sym, Smi::FromInt(size), NONE); | 608 Smi::FromInt(size), |
| 609 NONE, |
| 610 kNonStrictMode); |
605 if (maybe_result->IsFailure()) return false; | 611 if (maybe_result->IsFailure()) return false; |
606 } | 612 } |
607 | 613 |
608 arr->set(index, *detail); | 614 arr->set(index, *detail); |
609 return true; | 615 return true; |
610 } | 616 } |
611 | 617 |
612 | 618 |
613 class DumpWriter { | 619 class DumpWriter { |
614 public: | 620 public: |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1133 #endif | 1139 #endif |
1134 } | 1140 } |
1135 | 1141 |
1136 Handle<String> id_sym = Factory::LookupAsciiSymbol("id"); | 1142 Handle<String> id_sym = Factory::LookupAsciiSymbol("id"); |
1137 Handle<String> count_sym = Factory::LookupAsciiSymbol("count"); | 1143 Handle<String> count_sym = Factory::LookupAsciiSymbol("count"); |
1138 Handle<String> size_sym = Factory::LookupAsciiSymbol("size"); | 1144 Handle<String> size_sym = Factory::LookupAsciiSymbol("size"); |
1139 | 1145 |
1140 Handle<JSObject> result = Factory::NewJSObject(Top::object_function()); | 1146 Handle<JSObject> result = Factory::NewJSObject(Top::object_function()); |
1141 if (result->IsFailure()) return Object::cast(*result); | 1147 if (result->IsFailure()) return Object::cast(*result); |
1142 | 1148 |
1143 { MaybeObject* maybe_result = | 1149 { MaybeObject* maybe_result = result->SetProperty(*id_sym, |
1144 result->SetProperty(*id_sym, Smi::FromInt(lol->id()), NONE); | 1150 Smi::FromInt(lol->id()), |
| 1151 NONE, |
| 1152 kNonStrictMode); |
1145 if (maybe_result->IsFailure()) return maybe_result; | 1153 if (maybe_result->IsFailure()) return maybe_result; |
1146 } | 1154 } |
1147 { MaybeObject* maybe_result = | 1155 { MaybeObject* maybe_result = result->SetProperty(*count_sym, |
1148 result->SetProperty(*count_sym, Smi::FromInt(total_count), NONE); | 1156 Smi::FromInt(total_count), |
| 1157 NONE, |
| 1158 kNonStrictMode); |
1149 if (maybe_result->IsFailure()) return maybe_result; | 1159 if (maybe_result->IsFailure()) return maybe_result; |
1150 } | 1160 } |
1151 { MaybeObject* maybe_result = | 1161 { MaybeObject* maybe_result = result->SetProperty(*size_sym, |
1152 result->SetProperty(*size_sym, Smi::FromInt(size), NONE); | 1162 Smi::FromInt(size), |
| 1163 NONE, |
| 1164 kNonStrictMode); |
1153 if (maybe_result->IsFailure()) return maybe_result; | 1165 if (maybe_result->IsFailure()) return maybe_result; |
1154 } | 1166 } |
1155 | 1167 |
1156 return *result; | 1168 return *result; |
1157 } | 1169 } |
1158 | 1170 |
1159 | 1171 |
1160 // Delete doesn't actually deletes an lol. It just marks it as invisible since | 1172 // Delete doesn't actually deletes an lol. It just marks it as invisible since |
1161 // its contents are considered to be part of subsequent lists as well. The | 1173 // its contents are considered to be part of subsequent lists as well. The |
1162 // only time we'll actually delete the lol is when we Reset() or if the lol is | 1174 // only time we'll actually delete the lol is when we Reset() or if the lol is |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1278 if (!success) return Object::cast(*error); | 1290 if (!success) return Object::cast(*error); |
1279 | 1291 |
1280 MaybeObject* maybe_result; | 1292 MaybeObject* maybe_result; |
1281 | 1293 |
1282 // Allocate the result body. | 1294 // Allocate the result body. |
1283 Handle<JSObject> body = Factory::NewJSObject(Top::object_function()); | 1295 Handle<JSObject> body = Factory::NewJSObject(Top::object_function()); |
1284 if (body->IsFailure()) return Object::cast(*body); | 1296 if (body->IsFailure()) return Object::cast(*body); |
1285 | 1297 |
1286 // Set the updated body.count. | 1298 // Set the updated body.count. |
1287 Handle<String> count_sym = Factory::LookupAsciiSymbol("count"); | 1299 Handle<String> count_sym = Factory::LookupAsciiSymbol("count"); |
1288 maybe_result = body->SetProperty(*count_sym, Smi::FromInt(count), NONE); | 1300 maybe_result = body->SetProperty(*count_sym, |
| 1301 Smi::FromInt(count), |
| 1302 NONE, |
| 1303 kNonStrictMode); |
1289 if (maybe_result->IsFailure()) return maybe_result; | 1304 if (maybe_result->IsFailure()) return maybe_result; |
1290 | 1305 |
1291 // Set the updated body.size if appropriate. | 1306 // Set the updated body.size if appropriate. |
1292 if (size >= 0) { | 1307 if (size >= 0) { |
1293 Handle<String> size_sym = Factory::LookupAsciiSymbol("size"); | 1308 Handle<String> size_sym = Factory::LookupAsciiSymbol("size"); |
1294 maybe_result = body->SetProperty(*size_sym, Smi::FromInt(size), NONE); | 1309 maybe_result = body->SetProperty(*size_sym, |
| 1310 Smi::FromInt(size), |
| 1311 NONE, |
| 1312 kNonStrictMode); |
1295 if (maybe_result->IsFailure()) return maybe_result; | 1313 if (maybe_result->IsFailure()) return maybe_result; |
1296 } | 1314 } |
1297 | 1315 |
1298 // Set body.first_index. | 1316 // Set body.first_index. |
1299 Handle<String> first_sym = Factory::LookupAsciiSymbol("first_index"); | 1317 Handle<String> first_sym = Factory::LookupAsciiSymbol("first_index"); |
1300 maybe_result = body->SetProperty(*first_sym, Smi::FromInt(start), NONE); | 1318 maybe_result = body->SetProperty(*first_sym, |
| 1319 Smi::FromInt(start), |
| 1320 NONE, |
| 1321 kNonStrictMode); |
1301 if (maybe_result->IsFailure()) return maybe_result; | 1322 if (maybe_result->IsFailure()) return maybe_result; |
1302 | 1323 |
1303 // Allocate the JSArray of the elements. | 1324 // Allocate the JSArray of the elements. |
1304 Handle<JSObject> elements = Factory::NewJSObject(Top::array_function()); | 1325 Handle<JSObject> elements = Factory::NewJSObject(Top::array_function()); |
1305 if (elements->IsFailure()) return Object::cast(*elements); | 1326 if (elements->IsFailure()) return Object::cast(*elements); |
1306 Handle<JSArray>::cast(elements)->SetContent(*elements_arr); | 1327 Handle<JSArray>::cast(elements)->SetContent(*elements_arr); |
1307 | 1328 |
1308 // Set body.elements. | 1329 // Set body.elements. |
1309 Handle<String> elements_sym = Factory::LookupAsciiSymbol("elements"); | 1330 Handle<String> elements_sym = Factory::LookupAsciiSymbol("elements"); |
1310 maybe_result = body->SetProperty(*elements_sym, *elements, NONE); | 1331 maybe_result = body->SetProperty(*elements_sym, |
| 1332 *elements, |
| 1333 NONE, |
| 1334 kNonStrictMode); |
1311 if (maybe_result->IsFailure()) return maybe_result; | 1335 if (maybe_result->IsFailure()) return maybe_result; |
1312 | 1336 |
1313 return *body; | 1337 return *body; |
1314 } | 1338 } |
1315 | 1339 |
1316 | 1340 |
1317 MaybeObject* LiveObjectList::Summarize(int older_id, | 1341 MaybeObject* LiveObjectList::Summarize(int older_id, |
1318 int newer_id, | 1342 int newer_id, |
1319 Handle<JSObject> filter_obj) { | 1343 Handle<JSObject> filter_obj) { |
1320 if ((older_id < 0) || (newer_id < 0) || (last() == NULL)) { | 1344 if ((older_id < 0) || (newer_id < 0) || (last() == NULL)) { |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1392 if (detail->IsFailure()) return Object::cast(*detail); | 1416 if (detail->IsFailure()) return Object::cast(*detail); |
1393 | 1417 |
1394 // Fill in the summary record. | 1418 // Fill in the summary record. |
1395 LiveObjectType type = static_cast<LiveObjectType>(i); | 1419 LiveObjectType type = static_cast<LiveObjectType>(i); |
1396 int count = summary.Count(type); | 1420 int count = summary.Count(type); |
1397 if (count) { | 1421 if (count) { |
1398 const char* desc_cstr = GetObjectTypeDesc(type); | 1422 const char* desc_cstr = GetObjectTypeDesc(type); |
1399 Handle<String> desc = Factory::LookupAsciiSymbol(desc_cstr); | 1423 Handle<String> desc = Factory::LookupAsciiSymbol(desc_cstr); |
1400 int size = summary.Size(type); | 1424 int size = summary.Size(type); |
1401 | 1425 |
1402 maybe_result = detail->SetProperty(*desc_sym, *desc, NONE); | 1426 maybe_result = detail->SetProperty(*desc_sym, |
| 1427 *desc, |
| 1428 NONE, |
| 1429 kNonStrictMode); |
1403 if (maybe_result->IsFailure()) return maybe_result; | 1430 if (maybe_result->IsFailure()) return maybe_result; |
1404 maybe_result = detail->SetProperty(*count_sym, Smi::FromInt(count), NONE); | 1431 maybe_result = detail->SetProperty(*count_sym, |
| 1432 Smi::FromInt(count), |
| 1433 NONE, |
| 1434 kNonStrictMode); |
1405 if (maybe_result->IsFailure()) return maybe_result; | 1435 if (maybe_result->IsFailure()) return maybe_result; |
1406 maybe_result = detail->SetProperty(*size_sym, Smi::FromInt(size), NONE); | 1436 maybe_result = detail->SetProperty(*size_sym, |
| 1437 Smi::FromInt(size), |
| 1438 NONE, |
| 1439 kNonStrictMode); |
1407 if (maybe_result->IsFailure()) return maybe_result; | 1440 if (maybe_result->IsFailure()) return maybe_result; |
1408 | 1441 |
1409 summary_arr->set(idx++, *detail); | 1442 summary_arr->set(idx++, *detail); |
1410 } | 1443 } |
1411 } | 1444 } |
1412 | 1445 |
1413 // Wrap the summary fixed array in a JS array. | 1446 // Wrap the summary fixed array in a JS array. |
1414 Handle<JSObject> summary_obj = Factory::NewJSObject(Top::array_function()); | 1447 Handle<JSObject> summary_obj = Factory::NewJSObject(Top::array_function()); |
1415 if (summary_obj->IsFailure()) return Object::cast(*summary_obj); | 1448 if (summary_obj->IsFailure()) return Object::cast(*summary_obj); |
1416 Handle<JSArray>::cast(summary_obj)->SetContent(*summary_arr); | 1449 Handle<JSArray>::cast(summary_obj)->SetContent(*summary_arr); |
1417 | 1450 |
1418 // Create the body object. | 1451 // Create the body object. |
1419 Handle<JSObject> body = Factory::NewJSObject(Top::object_function()); | 1452 Handle<JSObject> body = Factory::NewJSObject(Top::object_function()); |
1420 if (body->IsFailure()) return Object::cast(*body); | 1453 if (body->IsFailure()) return Object::cast(*body); |
1421 | 1454 |
1422 // Fill out the body object. | 1455 // Fill out the body object. |
1423 int total_count = summary.total_count(); | 1456 int total_count = summary.total_count(); |
1424 int total_size = summary.total_size(); | 1457 int total_size = summary.total_size(); |
1425 maybe_result = | 1458 maybe_result = body->SetProperty(*count_sym, |
1426 body->SetProperty(*count_sym, Smi::FromInt(total_count), NONE); | 1459 Smi::FromInt(total_count), |
| 1460 NONE, |
| 1461 kNonStrictMode); |
1427 if (maybe_result->IsFailure()) return maybe_result; | 1462 if (maybe_result->IsFailure()) return maybe_result; |
1428 | 1463 |
1429 maybe_result = body->SetProperty(*size_sym, Smi::FromInt(total_size), NONE); | 1464 maybe_result = body->SetProperty(*size_sym, |
| 1465 Smi::FromInt(total_size), |
| 1466 NONE, |
| 1467 kNonStrictMode); |
1430 if (maybe_result->IsFailure()) return maybe_result; | 1468 if (maybe_result->IsFailure()) return maybe_result; |
1431 | 1469 |
1432 if (is_tracking_roots) { | 1470 if (is_tracking_roots) { |
1433 int found_root = summary.found_root(); | 1471 int found_root = summary.found_root(); |
1434 int found_weak_root = summary.found_weak_root(); | 1472 int found_weak_root = summary.found_weak_root(); |
1435 Handle<String> root_sym = Factory::LookupAsciiSymbol("found_root"); | 1473 Handle<String> root_sym = Factory::LookupAsciiSymbol("found_root"); |
1436 Handle<String> weak_root_sym = | 1474 Handle<String> weak_root_sym = |
1437 Factory::LookupAsciiSymbol("found_weak_root"); | 1475 Factory::LookupAsciiSymbol("found_weak_root"); |
1438 maybe_result = | 1476 maybe_result = body->SetProperty(*root_sym, |
1439 body->SetProperty(*root_sym, Smi::FromInt(found_root), NONE); | 1477 Smi::FromInt(found_root), |
| 1478 NONE, |
| 1479 kNonStrictMode); |
1440 if (maybe_result->IsFailure()) return maybe_result; | 1480 if (maybe_result->IsFailure()) return maybe_result; |
1441 maybe_result = | 1481 maybe_result = body->SetProperty(*weak_root_sym, |
1442 body->SetProperty(*weak_root_sym, Smi::FromInt(found_weak_root), NONE); | 1482 Smi::FromInt(found_weak_root), |
| 1483 NONE, |
| 1484 kNonStrictMode); |
1443 if (maybe_result->IsFailure()) return maybe_result; | 1485 if (maybe_result->IsFailure()) return maybe_result; |
1444 } | 1486 } |
1445 | 1487 |
1446 maybe_result = body->SetProperty(*summary_sym, *summary_obj, NONE); | 1488 maybe_result = body->SetProperty(*summary_sym, |
| 1489 *summary_obj, |
| 1490 NONE, |
| 1491 kNonStrictMode); |
1447 if (maybe_result->IsFailure()) return maybe_result; | 1492 if (maybe_result->IsFailure()) return maybe_result; |
1448 | 1493 |
1449 return *body; | 1494 return *body; |
1450 } | 1495 } |
1451 | 1496 |
1452 | 1497 |
1453 // Returns an array listing the captured lols. | 1498 // Returns an array listing the captured lols. |
1454 // Note: only dumps the section starting at start_idx and only up to | 1499 // Note: only dumps the section starting at start_idx and only up to |
1455 // dump_limit entries. | 1500 // dump_limit entries. |
1456 MaybeObject* LiveObjectList::Info(int start_idx, int dump_limit) { | 1501 MaybeObject* LiveObjectList::Info(int start_idx, int dump_limit) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1494 idx = 0; | 1539 idx = 0; |
1495 while ((lol != NULL) && (dump_limit != 0)) { | 1540 while ((lol != NULL) && (dump_limit != 0)) { |
1496 if (lol->id() != 0) { | 1541 if (lol->id() != 0) { |
1497 int count; | 1542 int count; |
1498 int size; | 1543 int size; |
1499 count = lol->GetTotalObjCountAndSize(&size); | 1544 count = lol->GetTotalObjCountAndSize(&size); |
1500 | 1545 |
1501 Handle<JSObject> detail = Factory::NewJSObject(Top::object_function()); | 1546 Handle<JSObject> detail = Factory::NewJSObject(Top::object_function()); |
1502 if (detail->IsFailure()) return Object::cast(*detail); | 1547 if (detail->IsFailure()) return Object::cast(*detail); |
1503 | 1548 |
1504 maybe_result = | 1549 maybe_result = detail->SetProperty(*id_sym, |
1505 detail->SetProperty(*id_sym, Smi::FromInt(lol->id()), NONE); | 1550 Smi::FromInt(lol->id()), |
| 1551 NONE, |
| 1552 kNonStrictMode); |
1506 if (maybe_result->IsFailure()) return maybe_result; | 1553 if (maybe_result->IsFailure()) return maybe_result; |
1507 maybe_result = | 1554 maybe_result = detail->SetProperty(*count_sym, |
1508 detail->SetProperty(*count_sym, Smi::FromInt(count), NONE); | 1555 Smi::FromInt(count), |
| 1556 NONE, |
| 1557 kNonStrictMode); |
1509 if (maybe_result->IsFailure()) return maybe_result; | 1558 if (maybe_result->IsFailure()) return maybe_result; |
1510 maybe_result = detail->SetProperty(*size_sym, Smi::FromInt(size), NONE); | 1559 maybe_result = detail->SetProperty(*size_sym, |
| 1560 Smi::FromInt(size), |
| 1561 NONE, |
| 1562 kNonStrictMode); |
1511 if (maybe_result->IsFailure()) return maybe_result; | 1563 if (maybe_result->IsFailure()) return maybe_result; |
1512 list->set(idx++, *detail); | 1564 list->set(idx++, *detail); |
1513 dump_limit--; | 1565 dump_limit--; |
1514 } | 1566 } |
1515 lol = lol->next(); | 1567 lol = lol->next(); |
1516 } | 1568 } |
1517 | 1569 |
1518 // Return the result as a JS array. | 1570 // Return the result as a JS array. |
1519 Handle<JSObject> lols = Factory::NewJSObject(Top::array_function()); | 1571 Handle<JSObject> lols = Factory::NewJSObject(Top::array_function()); |
1520 Handle<JSArray>::cast(lols)->SetContent(*list); | 1572 Handle<JSArray>::cast(lols)->SetContent(*list); |
1521 | 1573 |
1522 Handle<JSObject> result = Factory::NewJSObject(Top::object_function()); | 1574 Handle<JSObject> result = Factory::NewJSObject(Top::object_function()); |
1523 if (result->IsFailure()) return Object::cast(*result); | 1575 if (result->IsFailure()) return Object::cast(*result); |
1524 | 1576 |
1525 maybe_result = | 1577 maybe_result = result->SetProperty(*count_sym, |
1526 result->SetProperty(*count_sym, Smi::FromInt(total_count), NONE); | 1578 Smi::FromInt(total_count), |
| 1579 NONE, |
| 1580 kNonStrictMode); |
1527 if (maybe_result->IsFailure()) return maybe_result; | 1581 if (maybe_result->IsFailure()) return maybe_result; |
1528 | 1582 |
1529 Handle<String> first_sym = Factory::LookupAsciiSymbol("first_index"); | 1583 Handle<String> first_sym = Factory::LookupAsciiSymbol("first_index"); |
1530 maybe_result = | 1584 maybe_result = result->SetProperty(*first_sym, |
1531 result->SetProperty(*first_sym, Smi::FromInt(start_idx), NONE); | 1585 Smi::FromInt(start_idx), |
| 1586 NONE, |
| 1587 kNonStrictMode); |
1532 if (maybe_result->IsFailure()) return maybe_result; | 1588 if (maybe_result->IsFailure()) return maybe_result; |
1533 | 1589 |
1534 Handle<String> lists_sym = Factory::LookupAsciiSymbol("lists"); | 1590 Handle<String> lists_sym = Factory::LookupAsciiSymbol("lists"); |
1535 maybe_result = result->SetProperty(*lists_sym, *lols, NONE); | 1591 maybe_result = result->SetProperty(*lists_sym, |
| 1592 *lols, |
| 1593 NONE, |
| 1594 kNonStrictMode); |
1536 if (maybe_result->IsFailure()) return maybe_result; | 1595 if (maybe_result->IsFailure()) return maybe_result; |
1537 | 1596 |
1538 return *result; | 1597 return *result; |
1539 } | 1598 } |
1540 | 1599 |
1541 | 1600 |
1542 // Deletes all captured lols. | 1601 // Deletes all captured lols. |
1543 void LiveObjectList::Reset() { | 1602 void LiveObjectList::Reset() { |
1544 LiveObjectList *lol = last(); | 1603 LiveObjectList *lol = last(); |
1545 // Just delete the last. Each lol will delete it's prev automatically. | 1604 // Just delete the last. Each lol will delete it's prev automatically. |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1873 Object* body_obj; | 1932 Object* body_obj; |
1874 MaybeObject* maybe_result = | 1933 MaybeObject* maybe_result = |
1875 DumpPrivate(&writer, start, dump_limit, &filter); | 1934 DumpPrivate(&writer, start, dump_limit, &filter); |
1876 if (!maybe_result->ToObject(&body_obj)) { | 1935 if (!maybe_result->ToObject(&body_obj)) { |
1877 return maybe_result; | 1936 return maybe_result; |
1878 } | 1937 } |
1879 | 1938 |
1880 // Set body.id. | 1939 // Set body.id. |
1881 Handle<JSObject> body = Handle<JSObject>(JSObject::cast(body_obj)); | 1940 Handle<JSObject> body = Handle<JSObject>(JSObject::cast(body_obj)); |
1882 Handle<String> id_sym = Factory::LookupAsciiSymbol("id"); | 1941 Handle<String> id_sym = Factory::LookupAsciiSymbol("id"); |
1883 maybe_result = body->SetProperty(*id_sym, Smi::FromInt(obj_id), NONE); | 1942 maybe_result = body->SetProperty(*id_sym, |
| 1943 Smi::FromInt(obj_id), |
| 1944 NONE, |
| 1945 kNonStrictMode); |
1884 if (maybe_result->IsFailure()) return maybe_result; | 1946 if (maybe_result->IsFailure()) return maybe_result; |
1885 | 1947 |
1886 return *body; | 1948 return *body; |
1887 } | 1949 } |
1888 } | 1950 } |
1889 | 1951 |
1890 | 1952 |
1891 Object* LiveObjectList::PrintObj(int obj_id) { | 1953 Object* LiveObjectList::PrintObj(int obj_id) { |
1892 Object* obj = GetObj(obj_id); | 1954 Object* obj = GetObj(obj_id); |
1893 if (!obj) { | 1955 if (!obj) { |
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2518 } | 2580 } |
2519 } | 2581 } |
2520 } | 2582 } |
2521 #endif // VERIFY_LOL | 2583 #endif // VERIFY_LOL |
2522 | 2584 |
2523 | 2585 |
2524 } } // namespace v8::internal | 2586 } } // namespace v8::internal |
2525 | 2587 |
2526 #endif // LIVE_OBJECT_LIST | 2588 #endif // LIVE_OBJECT_LIST |
2527 | 2589 |
OLD | NEW |