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 13583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13594 WeakCell* cell = WeakCell::cast(code_map->get(entry + kCachedCodeOffset)); | 13594 WeakCell* cell = WeakCell::cast(code_map->get(entry + kCachedCodeOffset)); |
13595 WeakCell* literals_cell = | 13595 WeakCell* literals_cell = |
13596 WeakCell::cast(code_map->get(entry + kLiteralsOffset)); | 13596 WeakCell::cast(code_map->get(entry + kLiteralsOffset)); |
13597 | 13597 |
13598 result = {cell->cleared() ? nullptr : Code::cast(cell->value()), | 13598 result = {cell->cleared() ? nullptr : Code::cast(cell->value()), |
13599 literals_cell->cleared() | 13599 literals_cell->cleared() |
13600 ? nullptr | 13600 ? nullptr |
13601 : LiteralsArray::cast(literals_cell->value())}; | 13601 : LiteralsArray::cast(literals_cell->value())}; |
13602 } | 13602 } |
13603 } | 13603 } |
13604 if (FLAG_trace_opt && !OptimizedCodeMapIsCleared() && | |
13605 result.code == nullptr) { | |
13606 PrintF("[didn't find optimized code in optimized code map for "); | |
13607 ShortPrint(); | |
13608 PrintF("]\n"); | |
13609 } | |
13610 return result; | 13604 return result; |
13611 } | 13605 } |
13612 | 13606 |
13613 | 13607 |
13614 #define DECLARE_TAG(ignore1, name, ignore2) name, | 13608 #define DECLARE_TAG(ignore1, name, ignore2) name, |
13615 const char* const VisitorSynchronization::kTags[ | 13609 const char* const VisitorSynchronization::kTags[ |
13616 VisitorSynchronization::kNumberOfSyncTags] = { | 13610 VisitorSynchronization::kNumberOfSyncTags] = { |
13617 VISITOR_SYNCHRONIZATION_TAGS_LIST(DECLARE_TAG) | 13611 VISITOR_SYNCHRONIZATION_TAGS_LIST(DECLARE_TAG) |
13618 }; | 13612 }; |
13619 #undef DECLARE_TAG | 13613 #undef DECLARE_TAG |
(...skipping 5786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19406 if (cell->value() != *new_value) { | 19400 if (cell->value() != *new_value) { |
19407 cell->set_value(*new_value); | 19401 cell->set_value(*new_value); |
19408 Isolate* isolate = cell->GetIsolate(); | 19402 Isolate* isolate = cell->GetIsolate(); |
19409 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 19403 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
19410 isolate, DependentCode::kPropertyCellChangedGroup); | 19404 isolate, DependentCode::kPropertyCellChangedGroup); |
19411 } | 19405 } |
19412 } | 19406 } |
19413 | 19407 |
19414 } // namespace internal | 19408 } // namespace internal |
19415 } // namespace v8 | 19409 } // namespace v8 |
OLD | NEW |