OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <sstream> | 5 #include <sstream> |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #include "src/accessors.h" | 9 #include "src/accessors.h" |
10 #include "src/allocation-site-scopes.h" | 10 #include "src/allocation-site-scopes.h" |
(...skipping 10948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10959 os << "\n"; | 10959 os << "\n"; |
10960 } | 10960 } |
10961 #endif | 10961 #endif |
10962 } | 10962 } |
10963 | 10963 |
10964 os << "RelocInfo (size = " << relocation_size() << ")\n"; | 10964 os << "RelocInfo (size = " << relocation_size() << ")\n"; |
10965 for (RelocIterator it(this); !it.done(); it.next()) { | 10965 for (RelocIterator it(this); !it.done(); it.next()) { |
10966 it.rinfo()->Print(GetIsolate(), os); | 10966 it.rinfo()->Print(GetIsolate(), os); |
10967 } | 10967 } |
10968 os << "\n"; | 10968 os << "\n"; |
| 10969 |
| 10970 #ifdef OBJECT_PRINT |
| 10971 if (FLAG_enable_ool_constant_pool) { |
| 10972 ConstantPoolArray* pool = constant_pool(); |
| 10973 if (pool->length()) { |
| 10974 os << "Constant Pool\n"; |
| 10975 pool->Print(os); |
| 10976 os << "\n"; |
| 10977 } |
| 10978 } |
| 10979 #endif |
10969 } | 10980 } |
10970 #endif // ENABLE_DISASSEMBLER | 10981 #endif // ENABLE_DISASSEMBLER |
10971 | 10982 |
10972 | 10983 |
10973 Handle<FixedArray> JSObject::SetFastElementsCapacityAndLength( | 10984 Handle<FixedArray> JSObject::SetFastElementsCapacityAndLength( |
10974 Handle<JSObject> object, | 10985 Handle<JSObject> object, |
10975 int capacity, | 10986 int capacity, |
10976 int length, | 10987 int length, |
10977 SetFastElementsCapacitySmiMode smi_mode) { | 10988 SetFastElementsCapacitySmiMode smi_mode) { |
10978 // We should never end in here with a pixel or external array. | 10989 // We should never end in here with a pixel or external array. |
(...skipping 5392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16371 Handle<DependentCode> codes = | 16382 Handle<DependentCode> codes = |
16372 DependentCode::Insert(handle(cell->dependent_code(), info->isolate()), | 16383 DependentCode::Insert(handle(cell->dependent_code(), info->isolate()), |
16373 DependentCode::kPropertyCellChangedGroup, | 16384 DependentCode::kPropertyCellChangedGroup, |
16374 info->object_wrapper()); | 16385 info->object_wrapper()); |
16375 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); | 16386 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); |
16376 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( | 16387 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( |
16377 cell, info->zone()); | 16388 cell, info->zone()); |
16378 } | 16389 } |
16379 | 16390 |
16380 } } // namespace v8::internal | 16391 } } // namespace v8::internal |
OLD | NEW |