Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(610)

Side by Side Diff: src/ic/ic-inl.h

Issue 755513003: Hydrogen: fix keyed loads with string keys (Closed) Base URL: gh:v8/v8@master
Patch Set: better fix Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(LoadICState::GetContextualMode(code->extra_ic_state()) == 132 DCHECK(LoadICState::GetContextualMode(code->extra_ic_state()) ==
133 LoadICState::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 KeyedLoadIC::set_target(Code* code) {
140 IC::set_target(code);
141 }
142
143
139 void StoreIC::set_target(Code* code) { 144 void StoreIC::set_target(Code* code) {
140 // Strict mode must be preserved across IC patching. 145 // Strict mode must be preserved across IC patching.
141 DCHECK(GetStrictMode(code->extra_ic_state()) == 146 DCHECK(GetStrictMode(code->extra_ic_state()) ==
142 GetStrictMode(target()->extra_ic_state())); 147 GetStrictMode(target()->extra_ic_state()));
143 IC::set_target(code); 148 IC::set_target(code);
144 } 149 }
145 150
146 151
147 void KeyedStoreIC::set_target(Code* code) { 152 void KeyedStoreIC::set_target(Code* code) {
148 // Strict mode must be preserved across IC patching. 153 // Strict mode must be preserved across IC patching.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 inline Code* IC::get_host() { 216 inline Code* IC::get_host() {
212 return isolate() 217 return isolate()
213 ->inner_pointer_to_code_cache() 218 ->inner_pointer_to_code_cache()
214 ->GetCacheEntry(address()) 219 ->GetCacheEntry(address())
215 ->code; 220 ->code;
216 } 221 }
217 } 222 }
218 } // namespace v8::internal 223 } // namespace v8::internal
219 224
220 #endif // V8_IC_INL_H_ 225 #endif // V8_IC_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698