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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/ast.h" | 7 #include "src/ast.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/compiler.h" | 9 #include "src/compiler.h" |
10 #include "src/ic/ic.h" | 10 #include "src/ic/ic.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 Object* obj = feedback_vector_->Get(slot); | 75 Object* obj = feedback_vector_->Get(slot); |
76 | 76 |
77 // Vector-based ICs do not embed direct pointers to maps, functions. | 77 // Vector-based ICs do not embed direct pointers to maps, functions. |
78 // Instead a WeakCell is always used. | 78 // Instead a WeakCell is always used. |
79 if (obj->IsWeakCell()) { | 79 if (obj->IsWeakCell()) { |
80 WeakCell* cell = WeakCell::cast(obj); | 80 WeakCell* cell = WeakCell::cast(obj); |
81 if (cell->cleared()) return undefined; | 81 if (cell->cleared()) return undefined; |
82 obj = cell->value(); | 82 obj = cell->value(); |
83 } | 83 } |
84 | 84 |
85 if (obj->IsJSFunction() || obj->IsAllocationSite() || obj->IsSymbol()) { | 85 if (obj->IsJSFunction() || obj->IsAllocationSite() || obj->IsSymbol() || |
| 86 obj->IsFloat32x4()) { |
86 return Handle<Object>(obj, isolate()); | 87 return Handle<Object>(obj, isolate()); |
87 } | 88 } |
88 | 89 |
89 return undefined; | 90 return undefined; |
90 } | 91 } |
91 | 92 |
92 | 93 |
93 InlineCacheState TypeFeedbackOracle::LoadInlineCacheState(TypeFeedbackId id) { | 94 InlineCacheState TypeFeedbackOracle::LoadInlineCacheState(TypeFeedbackId id) { |
94 Handle<Object> maybe_code = GetInfo(id); | 95 Handle<Object> maybe_code = GetInfo(id); |
95 if (maybe_code->IsCode()) { | 96 if (maybe_code->IsCode()) { |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 // Dictionary has been allocated with sufficient size for all elements. | 515 // Dictionary has been allocated with sufficient size for all elements. |
515 DisallowHeapAllocation no_need_to_resize_dictionary; | 516 DisallowHeapAllocation no_need_to_resize_dictionary; |
516 HandleScope scope(isolate()); | 517 HandleScope scope(isolate()); |
517 USE(UnseededNumberDictionary::AtNumberPut( | 518 USE(UnseededNumberDictionary::AtNumberPut( |
518 dictionary_, IdToKey(ast_id), handle(target, isolate()))); | 519 dictionary_, IdToKey(ast_id), handle(target, isolate()))); |
519 } | 520 } |
520 | 521 |
521 | 522 |
522 } // namespace internal | 523 } // namespace internal |
523 } // namespace v8 | 524 } // namespace v8 |
OLD | NEW |