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

Side by Side Diff: src/objects.cc

Issue 1029093002: v8:3539 - hold constructor feedback in weak cells (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 5 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
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 <iomanip> 5 #include <iomanip>
6 #include <sstream> 6 #include <sstream>
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 11106 matching lines...) Expand 10 before | Expand all | Expand 10 after
11117 } 11117 }
11118 11118
11119 11119
11120 void SharedFunctionInfo::ClearTypeFeedbackInfo() { 11120 void SharedFunctionInfo::ClearTypeFeedbackInfo() {
11121 feedback_vector()->ClearSlots(this); 11121 feedback_vector()->ClearSlots(this);
11122 feedback_vector()->ClearICSlots(this); 11122 feedback_vector()->ClearICSlots(this);
11123 } 11123 }
11124 11124
11125 11125
11126 void SharedFunctionInfo::ClearTypeFeedbackInfoAtGCTime() { 11126 void SharedFunctionInfo::ClearTypeFeedbackInfoAtGCTime() {
11127 feedback_vector()->ClearSlots(this); 11127 feedback_vector()->ClearSlotsAtGCTime(this);
11128 feedback_vector()->ClearICSlotsAtGCTime(this); 11128 feedback_vector()->ClearICSlotsAtGCTime(this);
11129 } 11129 }
11130 11130
11131 11131
11132 BailoutId Code::TranslatePcOffsetToAstId(uint32_t pc_offset) { 11132 BailoutId Code::TranslatePcOffsetToAstId(uint32_t pc_offset) {
11133 DisallowHeapAllocation no_gc; 11133 DisallowHeapAllocation no_gc;
11134 DCHECK(kind() == FUNCTION); 11134 DCHECK(kind() == FUNCTION);
11135 BackEdgeTable back_edges(this, &no_gc); 11135 BackEdgeTable back_edges(this, &no_gc);
11136 for (uint32_t i = 0; i < back_edges.length(); i++) { 11136 for (uint32_t i = 0; i < back_edges.length(); i++) {
11137 if (back_edges.pc_offset(i) == pc_offset) return back_edges.ast_id(i); 11137 if (back_edges.pc_offset(i) == pc_offset) return back_edges.ast_id(i);
(...skipping 6043 matching lines...) Expand 10 before | Expand all | Expand 10 after
17181 CompilationInfo* info) { 17181 CompilationInfo* info) {
17182 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo( 17182 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo(
17183 handle(cell->dependent_code(), info->isolate()), 17183 handle(cell->dependent_code(), info->isolate()),
17184 DependentCode::kPropertyCellChangedGroup, info->object_wrapper()); 17184 DependentCode::kPropertyCellChangedGroup, info->object_wrapper());
17185 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); 17185 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes);
17186 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( 17186 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add(
17187 cell, info->zone()); 17187 cell, info->zone());
17188 } 17188 }
17189 17189
17190 } } // namespace v8::internal 17190 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698