| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 "src/objects.h" | 5 #include "src/objects.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 #include <iomanip> | 8 #include <iomanip> |
| 9 #include <sstream> | 9 #include <sstream> |
| 10 | 10 |
| (...skipping 13473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13484 // duplicates. | 13484 // duplicates. |
| 13485 Handle<Object> list; | 13485 Handle<Object> list; |
| 13486 if (script_object->IsScript()) { | 13486 if (script_object->IsScript()) { |
| 13487 Handle<Script> script = Handle<Script>::cast(script_object); | 13487 Handle<Script> script = Handle<Script>::cast(script_object); |
| 13488 list = handle(script->shared_function_infos(), isolate); | 13488 list = handle(script->shared_function_infos(), isolate); |
| 13489 } else { | 13489 } else { |
| 13490 list = isolate->factory()->noscript_shared_function_infos(); | 13490 list = isolate->factory()->noscript_shared_function_infos(); |
| 13491 } | 13491 } |
| 13492 | 13492 |
| 13493 #ifdef DEBUG | 13493 #ifdef DEBUG |
| 13494 { | 13494 if (FLAG_enable_slow_asserts) { |
| 13495 WeakFixedArray::Iterator iterator(*list); | 13495 WeakFixedArray::Iterator iterator(*list); |
| 13496 SharedFunctionInfo* next; | 13496 SharedFunctionInfo* next; |
| 13497 while ((next = iterator.Next<SharedFunctionInfo>())) { | 13497 while ((next = iterator.Next<SharedFunctionInfo>())) { |
| 13498 DCHECK_NE(next, *shared); | 13498 DCHECK_NE(next, *shared); |
| 13499 } | 13499 } |
| 13500 } | 13500 } |
| 13501 #endif // DEBUG | 13501 #endif // DEBUG |
| 13502 list = WeakFixedArray::Add(list, shared); | 13502 list = WeakFixedArray::Add(list, shared); |
| 13503 | 13503 |
| 13504 if (script_object->IsScript()) { | 13504 if (script_object->IsScript()) { |
| (...skipping 6229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19734 if (cell->value() != *new_value) { | 19734 if (cell->value() != *new_value) { |
| 19735 cell->set_value(*new_value); | 19735 cell->set_value(*new_value); |
| 19736 Isolate* isolate = cell->GetIsolate(); | 19736 Isolate* isolate = cell->GetIsolate(); |
| 19737 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 19737 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
| 19738 isolate, DependentCode::kPropertyCellChangedGroup); | 19738 isolate, DependentCode::kPropertyCellChangedGroup); |
| 19739 } | 19739 } |
| 19740 } | 19740 } |
| 19741 | 19741 |
| 19742 } // namespace internal | 19742 } // namespace internal |
| 19743 } // namespace v8 | 19743 } // namespace v8 |
| OLD | NEW |