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

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

Issue 565873002: Removing ic.h from code-stubs.h (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE and mips. Created 6 years, 3 months 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 | Annotate | Revision Log
« no previous file with comments | « src/ic/ic.cc ('k') | src/ic/ic-state.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | src/ic/ic-state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698