| 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 12755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12766 return result; | 12766 return result; |
| 12767 } | 12767 } |
| 12768 | 12768 |
| 12769 | 12769 |
| 12770 MaybeHandle<SharedFunctionInfo> Script::FindSharedFunctionInfo( | 12770 MaybeHandle<SharedFunctionInfo> Script::FindSharedFunctionInfo( |
| 12771 FunctionLiteral* fun) { | 12771 FunctionLiteral* fun) { |
| 12772 WeakFixedArray::Iterator iterator(shared_function_infos()); | 12772 WeakFixedArray::Iterator iterator(shared_function_infos()); |
| 12773 SharedFunctionInfo* shared; | 12773 SharedFunctionInfo* shared; |
| 12774 while ((shared = iterator.Next<SharedFunctionInfo>())) { | 12774 while ((shared = iterator.Next<SharedFunctionInfo>())) { |
| 12775 if (fun->function_token_position() == shared->function_token_position() && | 12775 if (fun->function_token_position() == shared->function_token_position() && |
| 12776 fun->start_position() == shared->start_position()) { | 12776 fun->start_position() == shared->start_position() && |
| 12777 fun->end_position() == shared->end_position()) { |
| 12778 // This method is not used to find top-level SharedFunctionInfo objects, |
| 12779 // verify that above checks are sufficient to distinguish top-level code. |
| 12780 DCHECK(!shared->is_toplevel()); |
| 12777 return Handle<SharedFunctionInfo>(shared); | 12781 return Handle<SharedFunctionInfo>(shared); |
| 12778 } | 12782 } |
| 12779 } | 12783 } |
| 12780 return MaybeHandle<SharedFunctionInfo>(); | 12784 return MaybeHandle<SharedFunctionInfo>(); |
| 12781 } | 12785 } |
| 12782 | 12786 |
| 12783 | 12787 |
| 12784 Script::Iterator::Iterator(Isolate* isolate) | 12788 Script::Iterator::Iterator(Isolate* isolate) |
| 12785 : iterator_(isolate->heap()->script_list()) {} | 12789 : iterator_(isolate->heap()->script_list()) {} |
| 12786 | 12790 |
| (...skipping 5889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18676 if (cell->value() != *new_value) { | 18680 if (cell->value() != *new_value) { |
| 18677 cell->set_value(*new_value); | 18681 cell->set_value(*new_value); |
| 18678 Isolate* isolate = cell->GetIsolate(); | 18682 Isolate* isolate = cell->GetIsolate(); |
| 18679 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 18683 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
| 18680 isolate, DependentCode::kPropertyCellChangedGroup); | 18684 isolate, DependentCode::kPropertyCellChangedGroup); |
| 18681 } | 18685 } |
| 18682 } | 18686 } |
| 18683 | 18687 |
| 18684 } // namespace internal | 18688 } // namespace internal |
| 18685 } // namespace v8 | 18689 } // namespace v8 |
| OLD | NEW |