Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: src/objects.cc

Issue 1904433002: [compiler] Avoid spamming --trace-opt with lookup failures. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698