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

Side by Side Diff: src/objects.cc

Issue 866493003: Retry "Use a WeakCell in the CallIC type vector." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 5 years, 10 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 | « src/objects.h ('k') | src/type-feedback-vector.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 10816 matching lines...) Expand 10 before | Expand all | Expand 10 after
10827 IC::Clear(this->GetIsolate(), info->pc(), 10827 IC::Clear(this->GetIsolate(), info->pc(),
10828 info->host()->constant_pool()); 10828 info->host()->constant_pool());
10829 } 10829 }
10830 } 10830 }
10831 } 10831 }
10832 } 10832 }
10833 10833
10834 10834
10835 void SharedFunctionInfo::ClearTypeFeedbackInfo() { 10835 void SharedFunctionInfo::ClearTypeFeedbackInfo() {
10836 feedback_vector()->ClearSlots(this); 10836 feedback_vector()->ClearSlots(this);
10837 feedback_vector()->ClearICSlots(this);
10837 } 10838 }
10838 10839
10839 10840
10841 void SharedFunctionInfo::ClearTypeFeedbackInfoAtGCTime() {
10842 feedback_vector()->ClearSlots(this);
10843 feedback_vector()->ClearICSlotsAtGCTime(this);
10844 }
10845
10846
10840 BailoutId Code::TranslatePcOffsetToAstId(uint32_t pc_offset) { 10847 BailoutId Code::TranslatePcOffsetToAstId(uint32_t pc_offset) {
10841 DisallowHeapAllocation no_gc; 10848 DisallowHeapAllocation no_gc;
10842 DCHECK(kind() == FUNCTION); 10849 DCHECK(kind() == FUNCTION);
10843 BackEdgeTable back_edges(this, &no_gc); 10850 BackEdgeTable back_edges(this, &no_gc);
10844 for (uint32_t i = 0; i < back_edges.length(); i++) { 10851 for (uint32_t i = 0; i < back_edges.length(); i++) {
10845 if (back_edges.pc_offset(i) == pc_offset) return back_edges.ast_id(i); 10852 if (back_edges.pc_offset(i) == pc_offset) return back_edges.ast_id(i);
10846 } 10853 }
10847 return BailoutId::None(); 10854 return BailoutId::None();
10848 } 10855 }
10849 10856
(...skipping 6038 matching lines...) Expand 10 before | Expand all | Expand 10 after
16888 Handle<DependentCode> codes = 16895 Handle<DependentCode> codes =
16889 DependentCode::Insert(handle(cell->dependent_code(), info->isolate()), 16896 DependentCode::Insert(handle(cell->dependent_code(), info->isolate()),
16890 DependentCode::kPropertyCellChangedGroup, 16897 DependentCode::kPropertyCellChangedGroup,
16891 info->object_wrapper()); 16898 info->object_wrapper());
16892 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); 16899 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes);
16893 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( 16900 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add(
16894 cell, info->zone()); 16901 cell, info->zone());
16895 } 16902 }
16896 16903
16897 } } // namespace v8::internal 16904 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/type-feedback-vector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698