| 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()) { |
| 65 return Handle<Object>(obj, isolate()); | 66 return Handle<Object>(obj, isolate()); |
| 66 } | 67 } |
| 67 | 68 |
| 68 return undefined; | 69 return undefined; |
| 69 } | 70 } |
| 70 | 71 |
| 71 InlineCacheState TypeFeedbackOracle::LoadInlineCacheState(FeedbackSlot slot) { | 72 InlineCacheState TypeFeedbackOracle::LoadInlineCacheState(FeedbackSlot slot) { |
| 72 if (!slot.IsInvalid()) { | 73 if (!slot.IsInvalid()) { |
| 73 FeedbackSlotKind kind = feedback_vector_->GetKind(slot); | 74 FeedbackSlotKind kind = feedback_vector_->GetKind(slot); |
| 74 if (IsLoadICKind(kind)) { | 75 if (IsLoadICKind(kind)) { |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 // Dictionary has been allocated with sufficient size for all elements. | 567 // Dictionary has been allocated with sufficient size for all elements. |
| 567 DisallowHeapAllocation no_need_to_resize_dictionary; | 568 DisallowHeapAllocation no_need_to_resize_dictionary; |
| 568 HandleScope scope(isolate()); | 569 HandleScope scope(isolate()); |
| 569 USE(UnseededNumberDictionary::AtNumberPut( | 570 USE(UnseededNumberDictionary::AtNumberPut( |
| 570 dictionary_, IdToKey(ast_id), handle(target, isolate()))); | 571 dictionary_, IdToKey(ast_id), handle(target, isolate()))); |
| 571 } | 572 } |
| 572 | 573 |
| 573 | 574 |
| 574 } // namespace internal | 575 } // namespace internal |
| 575 } // namespace v8 | 576 } // namespace v8 |
| OLD | NEW |