| OLD | NEW |
| 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 11064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11075 } | 11075 } |
| 11076 | 11076 |
| 11077 | 11077 |
| 11078 void SharedFunctionInfo::ClearTypeFeedbackInfo() { | 11078 void SharedFunctionInfo::ClearTypeFeedbackInfo() { |
| 11079 feedback_vector()->ClearSlots(this); | 11079 feedback_vector()->ClearSlots(this); |
| 11080 feedback_vector()->ClearICSlots(this); | 11080 feedback_vector()->ClearICSlots(this); |
| 11081 } | 11081 } |
| 11082 | 11082 |
| 11083 | 11083 |
| 11084 void SharedFunctionInfo::ClearTypeFeedbackInfoAtGCTime() { | 11084 void SharedFunctionInfo::ClearTypeFeedbackInfoAtGCTime() { |
| 11085 feedback_vector()->ClearSlots(this); | 11085 feedback_vector()->ClearSlotsAtGCTime(this); |
| 11086 feedback_vector()->ClearICSlotsAtGCTime(this); | 11086 feedback_vector()->ClearICSlotsAtGCTime(this); |
| 11087 } | 11087 } |
| 11088 | 11088 |
| 11089 | 11089 |
| 11090 BailoutId Code::TranslatePcOffsetToAstId(uint32_t pc_offset) { | 11090 BailoutId Code::TranslatePcOffsetToAstId(uint32_t pc_offset) { |
| 11091 DisallowHeapAllocation no_gc; | 11091 DisallowHeapAllocation no_gc; |
| 11092 DCHECK(kind() == FUNCTION); | 11092 DCHECK(kind() == FUNCTION); |
| 11093 BackEdgeTable back_edges(this, &no_gc); | 11093 BackEdgeTable back_edges(this, &no_gc); |
| 11094 for (uint32_t i = 0; i < back_edges.length(); i++) { | 11094 for (uint32_t i = 0; i < back_edges.length(); i++) { |
| 11095 if (back_edges.pc_offset(i) == pc_offset) return back_edges.ast_id(i); | 11095 if (back_edges.pc_offset(i) == pc_offset) return back_edges.ast_id(i); |
| (...skipping 6020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17116 CompilationInfo* info) { | 17116 CompilationInfo* info) { |
| 17117 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo( | 17117 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo( |
| 17118 handle(cell->dependent_code(), info->isolate()), | 17118 handle(cell->dependent_code(), info->isolate()), |
| 17119 DependentCode::kPropertyCellChangedGroup, info->object_wrapper()); | 17119 DependentCode::kPropertyCellChangedGroup, info->object_wrapper()); |
| 17120 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); | 17120 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); |
| 17121 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( | 17121 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( |
| 17122 cell, info->zone()); | 17122 cell, info->zone()); |
| 17123 } | 17123 } |
| 17124 | 17124 |
| 17125 } } // namespace v8::internal | 17125 } } // namespace v8::internal |
| OLD | NEW |