| 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 7179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7190 bool IsIterating() { | 7190 bool IsIterating() { |
| 7191 return (*IteratorField())->IsSmi() && | 7191 return (*IteratorField())->IsSmi() && |
| 7192 Smi::cast(*IteratorField())->value() < 0; | 7192 Smi::cast(*IteratorField())->value() < 0; |
| 7193 } | 7193 } |
| 7194 | 7194 |
| 7195 Map* Next() { | 7195 Map* Next() { |
| 7196 DCHECK(IsIterating()); | 7196 DCHECK(IsIterating()); |
| 7197 int value = Smi::cast(*IteratorField())->value(); | 7197 int value = Smi::cast(*IteratorField())->value(); |
| 7198 int index = -value - 1; | 7198 int index = -value - 1; |
| 7199 int number_of_transitions = transition_array_->number_of_transitions(); | 7199 int number_of_transitions = transition_array_->number_of_transitions(); |
| 7200 while (index < number_of_transitions) { | 7200 if (index < number_of_transitions) { |
| 7201 *IteratorField() = Smi::FromInt(value - 1); | 7201 *IteratorField() = Smi::FromInt(value - 1); |
| 7202 return transition_array_->GetTarget(index); | 7202 return transition_array_->GetTarget(index); |
| 7203 } | 7203 } |
| 7204 | 7204 |
| 7205 *IteratorField() = constructor_; | 7205 *IteratorField() = constructor_; |
| 7206 return NULL; | 7206 return NULL; |
| 7207 } | 7207 } |
| 7208 | 7208 |
| 7209 private: | 7209 private: |
| 7210 Object** IteratorField() { | 7210 Object** IteratorField() { |
| (...skipping 9354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16565 Handle<DependentCode> codes = | 16565 Handle<DependentCode> codes = |
| 16566 DependentCode::Insert(handle(cell->dependent_code(), info->isolate()), | 16566 DependentCode::Insert(handle(cell->dependent_code(), info->isolate()), |
| 16567 DependentCode::kPropertyCellChangedGroup, | 16567 DependentCode::kPropertyCellChangedGroup, |
| 16568 info->object_wrapper()); | 16568 info->object_wrapper()); |
| 16569 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); | 16569 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); |
| 16570 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( | 16570 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( |
| 16571 cell, info->zone()); | 16571 cell, info->zone()); |
| 16572 } | 16572 } |
| 16573 | 16573 |
| 16574 } } // namespace v8::internal | 16574 } } // namespace v8::internal |
| OLD | NEW |