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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 obj->IsSimd128Value()) { |
87 return Handle<Object>(obj, isolate()); | 87 return Handle<Object>(obj, isolate()); |
88 } | 88 } |
89 | 89 |
90 return undefined; | 90 return undefined; |
91 } | 91 } |
92 | 92 |
93 | 93 |
94 InlineCacheState TypeFeedbackOracle::LoadInlineCacheState(TypeFeedbackId id) { | 94 InlineCacheState TypeFeedbackOracle::LoadInlineCacheState(TypeFeedbackId id) { |
95 Handle<Object> maybe_code = GetInfo(id); | 95 Handle<Object> maybe_code = GetInfo(id); |
96 if (maybe_code->IsCode()) { | 96 if (maybe_code->IsCode()) { |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 // Dictionary has been allocated with sufficient size for all elements. | 524 // Dictionary has been allocated with sufficient size for all elements. |
525 DisallowHeapAllocation no_need_to_resize_dictionary; | 525 DisallowHeapAllocation no_need_to_resize_dictionary; |
526 HandleScope scope(isolate()); | 526 HandleScope scope(isolate()); |
527 USE(UnseededNumberDictionary::AtNumberPut( | 527 USE(UnseededNumberDictionary::AtNumberPut( |
528 dictionary_, IdToKey(ast_id), handle(target, isolate()))); | 528 dictionary_, IdToKey(ast_id), handle(target, isolate()))); |
529 } | 529 } |
530 | 530 |
531 | 531 |
532 } // namespace internal | 532 } // namespace internal |
533 } // namespace v8 | 533 } // namespace v8 |
OLD | NEW |