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 #ifndef V8_IC_INL_H_ | 5 #ifndef V8_IC_INL_H_ |
6 #define V8_IC_INL_H_ | 6 #define V8_IC_INL_H_ |
7 | 7 |
8 #include "src/ic/ic.h" | 8 #include "src/ic/ic.h" |
9 | 9 |
10 #include "src/compiler.h" | 10 #include "src/compiler.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 #ifdef VERIFY_HEAP | 122 #ifdef VERIFY_HEAP |
123 code->VerifyEmbeddedObjectsDependency(); | 123 code->VerifyEmbeddedObjectsDependency(); |
124 #endif | 124 #endif |
125 SetTargetAtAddress(address(), code, constant_pool()); | 125 SetTargetAtAddress(address(), code, constant_pool()); |
126 target_set_ = true; | 126 target_set_ = true; |
127 } | 127 } |
128 | 128 |
129 | 129 |
130 void LoadIC::set_target(Code* code) { | 130 void LoadIC::set_target(Code* code) { |
131 // The contextual mode must be preserved across IC patching. | 131 // The contextual mode must be preserved across IC patching. |
132 DCHECK(GetContextualMode(code->extra_ic_state()) == | 132 DCHECK(LoadICState::GetContextualMode(code->extra_ic_state()) == |
133 GetContextualMode(target()->extra_ic_state())); | 133 LoadICState::GetContextualMode(target()->extra_ic_state())); |
134 | 134 |
135 IC::set_target(code); | 135 IC::set_target(code); |
136 } | 136 } |
137 | 137 |
138 | 138 |
139 void StoreIC::set_target(Code* code) { | 139 void StoreIC::set_target(Code* code) { |
140 // Strict mode must be preserved across IC patching. | 140 // Strict mode must be preserved across IC patching. |
141 DCHECK(GetStrictMode(code->extra_ic_state()) == | 141 DCHECK(GetStrictMode(code->extra_ic_state()) == |
142 GetStrictMode(target()->extra_ic_state())); | 142 GetStrictMode(target()->extra_ic_state())); |
143 IC::set_target(code); | 143 IC::set_target(code); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 } else { | 220 } else { |
221 CHECK(feedback == *TypeFeedbackInfo::UninitializedSentinel(isolate())); | 221 CHECK(feedback == *TypeFeedbackInfo::UninitializedSentinel(isolate())); |
222 } | 222 } |
223 | 223 |
224 return state; | 224 return state; |
225 } | 225 } |
226 } | 226 } |
227 } // namespace v8::internal | 227 } // namespace v8::internal |
228 | 228 |
229 #endif // V8_IC_INL_H_ | 229 #endif // V8_IC_INL_H_ |
OLD | NEW |