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/compiler.h" | 9 #include "src/compiler.h" |
10 #include "src/ic/ic.h" | 10 #include "src/ic/ic.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 KeyedStoreICNexus nexus(feedback_vector_, slot); | 101 KeyedStoreICNexus nexus(feedback_vector_, slot); |
102 return nexus.StateFromFeedback() == UNINITIALIZED; | 102 return nexus.StateFromFeedback() == UNINITIALIZED; |
103 } | 103 } |
104 } | 104 } |
105 return true; | 105 return true; |
106 } | 106 } |
107 | 107 |
108 | 108 |
109 bool TypeFeedbackOracle::CallIsUninitialized(FeedbackVectorSlot slot) { | 109 bool TypeFeedbackOracle::CallIsUninitialized(FeedbackVectorSlot slot) { |
110 Handle<Object> value = GetInfo(slot); | 110 Handle<Object> value = GetInfo(slot); |
111 return value->IsUndefined() || | 111 return value->IsUndefined(isolate()) || |
112 value.is_identical_to( | 112 value.is_identical_to( |
113 TypeFeedbackVector::UninitializedSentinel(isolate())); | 113 TypeFeedbackVector::UninitializedSentinel(isolate())); |
114 } | 114 } |
115 | 115 |
116 | 116 |
117 bool TypeFeedbackOracle::CallIsMonomorphic(FeedbackVectorSlot slot) { | 117 bool TypeFeedbackOracle::CallIsMonomorphic(FeedbackVectorSlot slot) { |
118 Handle<Object> value = GetInfo(slot); | 118 Handle<Object> value = GetInfo(slot); |
119 return value->IsAllocationSite() || value->IsJSFunction(); | 119 return value->IsAllocationSite() || value->IsJSFunction(); |
120 } | 120 } |
121 | 121 |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 // Dictionary has been allocated with sufficient size for all elements. | 467 // Dictionary has been allocated with sufficient size for all elements. |
468 DisallowHeapAllocation no_need_to_resize_dictionary; | 468 DisallowHeapAllocation no_need_to_resize_dictionary; |
469 HandleScope scope(isolate()); | 469 HandleScope scope(isolate()); |
470 USE(UnseededNumberDictionary::AtNumberPut( | 470 USE(UnseededNumberDictionary::AtNumberPut( |
471 dictionary_, IdToKey(ast_id), handle(target, isolate()))); | 471 dictionary_, IdToKey(ast_id), handle(target, isolate()))); |
472 } | 472 } |
473 | 473 |
474 | 474 |
475 } // namespace internal | 475 } // namespace internal |
476 } // namespace v8 | 476 } // namespace v8 |
OLD | NEW |