OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/feedback-vector.h" | 5 #include "src/feedback-vector.h" |
6 #include "src/code-stubs.h" | 6 #include "src/code-stubs.h" |
7 #include "src/feedback-vector-inl.h" | 7 #include "src/feedback-vector-inl.h" |
8 #include "src/ic/ic-inl.h" | 8 #include "src/ic/ic-inl.h" |
9 #include "src/ic/ic-state.h" | 9 #include "src/ic/ic-state.h" |
10 #include "src/objects.h" | 10 #include "src/objects.h" |
(...skipping 179 matching lines...) Loading... |
190 case FeedbackSlotKind::kLoadGlobalNotInsideTypeof: | 190 case FeedbackSlotKind::kLoadGlobalNotInsideTypeof: |
191 array->set(index, isolate->heap()->empty_weak_cell(), | 191 array->set(index, isolate->heap()->empty_weak_cell(), |
192 SKIP_WRITE_BARRIER); | 192 SKIP_WRITE_BARRIER); |
193 break; | 193 break; |
194 case FeedbackSlotKind::kCompareOp: | 194 case FeedbackSlotKind::kCompareOp: |
195 case FeedbackSlotKind::kBinaryOp: | 195 case FeedbackSlotKind::kBinaryOp: |
196 case FeedbackSlotKind::kToBoolean: | 196 case FeedbackSlotKind::kToBoolean: |
197 array->set(index, Smi::kZero, SKIP_WRITE_BARRIER); | 197 array->set(index, Smi::kZero, SKIP_WRITE_BARRIER); |
198 break; | 198 break; |
199 case FeedbackSlotKind::kCreateClosure: { | 199 case FeedbackSlotKind::kCreateClosure: { |
200 Handle<Cell> cell = factory->NewCell(undefined_value); | 200 Handle<Cell> cell = factory->NewNoClosuresCell(undefined_value); |
201 array->set(index, *cell); | 201 array->set(index, *cell); |
202 break; | 202 break; |
203 } | 203 } |
204 case FeedbackSlotKind::kLiteral: | 204 case FeedbackSlotKind::kLiteral: |
205 array->set(index, *undefined_value, SKIP_WRITE_BARRIER); | 205 array->set(index, *undefined_value, SKIP_WRITE_BARRIER); |
206 break; | 206 break; |
207 case FeedbackSlotKind::kCall: | 207 case FeedbackSlotKind::kCall: |
208 array->set(index, *uninitialized_sentinel, SKIP_WRITE_BARRIER); | 208 array->set(index, *uninitialized_sentinel, SKIP_WRITE_BARRIER); |
209 extra_value = Smi::kZero; | 209 extra_value = Smi::kZero; |
210 break; | 210 break; |
(...skipping 785 matching lines...) Loading... |
996 void StoreDataPropertyInLiteralICNexus::ConfigureMonomorphic( | 996 void StoreDataPropertyInLiteralICNexus::ConfigureMonomorphic( |
997 Handle<Name> name, Handle<Map> receiver_map) { | 997 Handle<Name> name, Handle<Map> receiver_map) { |
998 Handle<WeakCell> cell = Map::WeakCellForMap(receiver_map); | 998 Handle<WeakCell> cell = Map::WeakCellForMap(receiver_map); |
999 | 999 |
1000 SetFeedback(*cell); | 1000 SetFeedback(*cell); |
1001 SetFeedbackExtra(*name); | 1001 SetFeedbackExtra(*name); |
1002 } | 1002 } |
1003 | 1003 |
1004 } // namespace internal | 1004 } // namespace internal |
1005 } // namespace v8 | 1005 } // namespace v8 |
OLD | NEW |