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 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1336 double length = JSArray::cast(this)->length()->IsUndefined() | 1336 double length = JSArray::cast(this)->length()->IsUndefined() |
1337 ? 0 | 1337 ? 0 |
1338 : JSArray::cast(this)->length()->Number(); | 1338 : JSArray::cast(this)->length()->Number(); |
1339 accumulator->Add("<JS Array[%u]>", static_cast<uint32_t>(length)); | 1339 accumulator->Add("<JS Array[%u]>", static_cast<uint32_t>(length)); |
1340 break; | 1340 break; |
1341 } | 1341 } |
1342 case JS_WEAK_MAP_TYPE: { | 1342 case JS_WEAK_MAP_TYPE: { |
1343 accumulator->Add("<JS WeakMap>"); | 1343 accumulator->Add("<JS WeakMap>"); |
1344 break; | 1344 break; |
1345 } | 1345 } |
| 1346 case JS_WEAK_SET_TYPE: { |
| 1347 accumulator->Add("<JS WeakSet>"); |
| 1348 break; |
| 1349 } |
1346 case JS_REGEXP_TYPE: { | 1350 case JS_REGEXP_TYPE: { |
1347 accumulator->Add("<JS RegExp>"); | 1351 accumulator->Add("<JS RegExp>"); |
1348 break; | 1352 break; |
1349 } | 1353 } |
1350 case JS_FUNCTION_TYPE: { | 1354 case JS_FUNCTION_TYPE: { |
1351 JSFunction* function = JSFunction::cast(this); | 1355 JSFunction* function = JSFunction::cast(this); |
1352 Object* fun_name = function->shared()->DebugName(); | 1356 Object* fun_name = function->shared()->DebugName(); |
1353 bool printed = false; | 1357 bool printed = false; |
1354 if (fun_name->IsString()) { | 1358 if (fun_name->IsString()) { |
1355 String* str = String::cast(fun_name); | 1359 String* str = String::cast(fun_name); |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1646 case JS_MODULE_TYPE: | 1650 case JS_MODULE_TYPE: |
1647 case JS_VALUE_TYPE: | 1651 case JS_VALUE_TYPE: |
1648 case JS_DATE_TYPE: | 1652 case JS_DATE_TYPE: |
1649 case JS_ARRAY_TYPE: | 1653 case JS_ARRAY_TYPE: |
1650 case JS_ARRAY_BUFFER_TYPE: | 1654 case JS_ARRAY_BUFFER_TYPE: |
1651 case JS_TYPED_ARRAY_TYPE: | 1655 case JS_TYPED_ARRAY_TYPE: |
1652 case JS_DATA_VIEW_TYPE: | 1656 case JS_DATA_VIEW_TYPE: |
1653 case JS_SET_TYPE: | 1657 case JS_SET_TYPE: |
1654 case JS_MAP_TYPE: | 1658 case JS_MAP_TYPE: |
1655 case JS_WEAK_MAP_TYPE: | 1659 case JS_WEAK_MAP_TYPE: |
| 1660 case JS_WEAK_SET_TYPE: |
1656 case JS_REGEXP_TYPE: | 1661 case JS_REGEXP_TYPE: |
1657 case JS_GLOBAL_PROXY_TYPE: | 1662 case JS_GLOBAL_PROXY_TYPE: |
1658 case JS_GLOBAL_OBJECT_TYPE: | 1663 case JS_GLOBAL_OBJECT_TYPE: |
1659 case JS_BUILTINS_OBJECT_TYPE: | 1664 case JS_BUILTINS_OBJECT_TYPE: |
1660 case JS_MESSAGE_OBJECT_TYPE: | 1665 case JS_MESSAGE_OBJECT_TYPE: |
1661 JSObject::BodyDescriptor::IterateBody(this, object_size, v); | 1666 JSObject::BodyDescriptor::IterateBody(this, object_size, v); |
1662 break; | 1667 break; |
1663 case JS_FUNCTION_TYPE: | 1668 case JS_FUNCTION_TYPE: |
1664 reinterpret_cast<JSFunction*>(this) | 1669 reinterpret_cast<JSFunction*>(this) |
1665 ->JSFunctionIterateBody(object_size, v); | 1670 ->JSFunctionIterateBody(object_size, v); |
(...skipping 14289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15955 | 15960 |
15956 void PropertyCell::AddDependentCode(Handle<Code> code) { | 15961 void PropertyCell::AddDependentCode(Handle<Code> code) { |
15957 Handle<DependentCode> codes = DependentCode::Insert( | 15962 Handle<DependentCode> codes = DependentCode::Insert( |
15958 Handle<DependentCode>(dependent_code()), | 15963 Handle<DependentCode>(dependent_code()), |
15959 DependentCode::kPropertyCellChangedGroup, code); | 15964 DependentCode::kPropertyCellChangedGroup, code); |
15960 if (*codes != dependent_code()) set_dependent_code(*codes); | 15965 if (*codes != dependent_code()) set_dependent_code(*codes); |
15961 } | 15966 } |
15962 | 15967 |
15963 | 15968 |
15964 } } // namespace v8::internal | 15969 } } // namespace v8::internal |
OLD | NEW |