OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/type-info.h" | 5 #include "src/type-info.h" |
6 | 6 |
7 #include "src/ast/ast.h" | 7 #include "src/ast/ast.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/ic/ic.h" | 9 #include "src/ic/ic.h" |
10 #include "src/ic/stub-cache.h" | 10 #include "src/ic/stub-cache.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 Object* obj = feedback_vector_->Get(slot); | 54 Object* obj = feedback_vector_->Get(slot); |
55 | 55 |
56 // Slots do not embed direct pointers to maps, functions. Instead | 56 // Slots do not embed direct pointers to maps, functions. Instead |
57 // a WeakCell is always used. | 57 // a WeakCell is always used. |
58 if (obj->IsWeakCell()) { | 58 if (obj->IsWeakCell()) { |
59 WeakCell* cell = WeakCell::cast(obj); | 59 WeakCell* cell = WeakCell::cast(obj); |
60 if (cell->cleared()) return undefined; | 60 if (cell->cleared()) return undefined; |
61 obj = cell->value(); | 61 obj = cell->value(); |
62 } | 62 } |
63 | 63 |
64 if (obj->IsJSFunction() || obj->IsAllocationSite() || obj->IsSymbol() || | 64 if (obj->IsJSFunction() || obj->IsAllocationSite() || obj->IsSymbol()) { |
65 obj->IsSimd128Value()) { | |
66 return Handle<Object>(obj, isolate()); | 65 return Handle<Object>(obj, isolate()); |
67 } | 66 } |
68 | 67 |
69 return undefined; | 68 return undefined; |
70 } | 69 } |
71 | 70 |
72 InlineCacheState TypeFeedbackOracle::LoadInlineCacheState(FeedbackSlot slot) { | 71 InlineCacheState TypeFeedbackOracle::LoadInlineCacheState(FeedbackSlot slot) { |
73 if (!slot.IsInvalid()) { | 72 if (!slot.IsInvalid()) { |
74 FeedbackSlotKind kind = feedback_vector_->GetKind(slot); | 73 FeedbackSlotKind kind = feedback_vector_->GetKind(slot); |
75 if (IsLoadICKind(kind)) { | 74 if (IsLoadICKind(kind)) { |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 // Dictionary has been allocated with sufficient size for all elements. | 566 // Dictionary has been allocated with sufficient size for all elements. |
568 DisallowHeapAllocation no_need_to_resize_dictionary; | 567 DisallowHeapAllocation no_need_to_resize_dictionary; |
569 HandleScope scope(isolate()); | 568 HandleScope scope(isolate()); |
570 USE(UnseededNumberDictionary::AtNumberPut( | 569 USE(UnseededNumberDictionary::AtNumberPut( |
571 dictionary_, IdToKey(ast_id), handle(target, isolate()))); | 570 dictionary_, IdToKey(ast_id), handle(target, isolate()))); |
572 } | 571 } |
573 | 572 |
574 | 573 |
575 } // namespace internal | 574 } // namespace internal |
576 } // namespace v8 | 575 } // namespace v8 |
OLD | NEW |