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

Side by Side Diff: src/ic.h

Issue 68523009: Also support smi in load-ICs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 7 years, 1 month 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/ia32/stub-cache-ia32.cc ('k') | src/ic.cc » ('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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 Handle<String> name, 186 Handle<String> name,
187 Handle<Object> value = Handle<Code>::null()); 187 Handle<Object> value = Handle<Code>::null());
188 virtual Handle<Code> CompileHandler(LookupResult* lookup, 188 virtual Handle<Code> CompileHandler(LookupResult* lookup,
189 Handle<Object> object, 189 Handle<Object> object,
190 Handle<String> name, 190 Handle<String> name,
191 Handle<Object> value, 191 Handle<Object> value,
192 InlineCacheHolderFlag cache_holder) { 192 InlineCacheHolderFlag cache_holder) {
193 UNREACHABLE(); 193 UNREACHABLE();
194 return Handle<Code>::null(); 194 return Handle<Code>::null();
195 } 195 }
196 void UpdateMonomorphicIC(Handle<HeapObject> receiver, 196 void UpdateMonomorphicIC(Handle<Object> receiver,
197 Handle<Code> handler, 197 Handle<Code> handler,
198 Handle<String> name); 198 Handle<String> name);
199 199
200 bool UpdatePolymorphicIC(Handle<HeapObject> receiver, 200 bool UpdatePolymorphicIC(Handle<Object> receiver,
201 Handle<String> name, 201 Handle<String> name,
202 Handle<Code> code); 202 Handle<Code> code);
203 203
204 void CopyICToMegamorphicCache(Handle<String> name); 204 void CopyICToMegamorphicCache(Handle<String> name);
205 bool IsTransitionedMapOfMonomorphicTarget(Map* receiver_map); 205 bool IsTransitionedMapOfMonomorphicTarget(Map* receiver_map);
206 void PatchCache(Handle<Object> object, 206 void PatchCache(Handle<Object> object,
207 Handle<String> name, 207 Handle<String> name,
208 Handle<Code> code); 208 Handle<Code> code);
209 virtual void UpdateMegamorphicCache(Map* map, Name* name, Code* code); 209 virtual void UpdateMegamorphicCache(Map* map, Name* name, Code* code);
210 virtual Code::Kind kind() const { 210 virtual Code::Kind kind() const {
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 DECLARE_RUNTIME_FUNCTION(MaybeObject*, StoreIC_MissFromStubFailure); 893 DECLARE_RUNTIME_FUNCTION(MaybeObject*, StoreIC_MissFromStubFailure);
894 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss); 894 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss);
895 DECLARE_RUNTIME_FUNCTION(MaybeObject*, BinaryOpIC_Miss); 895 DECLARE_RUNTIME_FUNCTION(MaybeObject*, BinaryOpIC_Miss);
896 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss); 896 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss);
897 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss); 897 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss);
898 898
899 899
900 } } // namespace v8::internal 900 } } // namespace v8::internal
901 901
902 #endif // V8_IC_H_ 902 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698