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

Side by Side Diff: src/ic.h

Issue 16409: Inline array loads in loops directly in the code instead of always... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 12 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
« src/d8.cc ('K') | « src/d8.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 return Builtins::builtin(Builtins::KeyedLoadIC_Generic); 269 return Builtins::builtin(Builtins::KeyedLoadIC_Generic);
270 } 270 }
271 static Code* generic_stub() { 271 static Code* generic_stub() {
272 return Builtins::builtin(Builtins::KeyedLoadIC_Generic); 272 return Builtins::builtin(Builtins::KeyedLoadIC_Generic);
273 } 273 }
274 static Code* pre_monomorphic_stub() { 274 static Code* pre_monomorphic_stub() {
275 return Builtins::builtin(Builtins::KeyedLoadIC_PreMonomorphic); 275 return Builtins::builtin(Builtins::KeyedLoadIC_PreMonomorphic);
276 } 276 }
277 277
278 static void Clear(Address address, Code* target); 278 static void Clear(Address address, Code* target);
279
280 // Support for patching the map that is checked in an inlined
281 // version of keyed load.
282 static void PatchInlinedMapCheck(Address address, Object* map);
283
279 friend class IC; 284 friend class IC;
280 }; 285 };
281 286
282 287
283 class StoreIC: public IC { 288 class StoreIC: public IC {
284 public: 289 public:
285 StoreIC() : IC(NO_EXTRA_FRAME) { ASSERT(target()->is_store_stub()); } 290 StoreIC() : IC(NO_EXTRA_FRAME) { ASSERT(target()->is_store_stub()); }
286 291
287 Object* Store(State state, 292 Object* Store(State state,
288 Handle<Object> object, 293 Handle<Object> object,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 } 360 }
356 361
357 static void Clear(Address address, Code* target); 362 static void Clear(Address address, Code* target);
358 friend class IC; 363 friend class IC;
359 }; 364 };
360 365
361 366
362 } } // namespace v8::internal 367 } } // namespace v8::internal
363 368
364 #endif // V8_IC_H_ 369 #endif // V8_IC_H_
OLDNEW
« src/d8.cc ('K') | « src/d8.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698