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

Side by Side Diff: src/ic.h

Issue 87025: Handle breaks on keyed IC loads which can have an inlined version (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 8 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/debug.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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 KeyedLoadIC() : IC(NO_EXTRA_FRAME) { ASSERT(target()->is_keyed_load_stub()); } 247 KeyedLoadIC() : IC(NO_EXTRA_FRAME) { ASSERT(target()->is_keyed_load_stub()); }
248 248
249 Object* Load(State state, Handle<Object> object, Handle<Object> key); 249 Object* Load(State state, Handle<Object> object, Handle<Object> key);
250 250
251 // Code generator routines. 251 // Code generator routines.
252 static void GenerateMiss(MacroAssembler* masm); 252 static void GenerateMiss(MacroAssembler* masm);
253 static void GenerateInitialize(MacroAssembler* masm); 253 static void GenerateInitialize(MacroAssembler* masm);
254 static void GeneratePreMonomorphic(MacroAssembler* masm); 254 static void GeneratePreMonomorphic(MacroAssembler* masm);
255 static void GenerateGeneric(MacroAssembler* masm); 255 static void GenerateGeneric(MacroAssembler* masm);
256 256
257 // Check if this IC corresponds to an inlined version.
258 static bool HasInlinedVersion(Address address);
259
260 // Clear the use of the inlined version.
261 static void ClearInlinedVersion(Address address);
262
257 private: 263 private:
258 static void Generate(MacroAssembler* masm, const ExternalReference& f); 264 static void Generate(MacroAssembler* masm, const ExternalReference& f);
259 265
260 // Update the inline cache. 266 // Update the inline cache.
261 void UpdateCaches(LookupResult* lookup, 267 void UpdateCaches(LookupResult* lookup,
262 State state, 268 State state,
263 Handle<Object> object, 269 Handle<Object> object,
264 Handle<String> name); 270 Handle<String> name);
265 271
266 // Stub accessors. 272 // Stub accessors.
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 } 368 }
363 369
364 static void Clear(Address address, Code* target); 370 static void Clear(Address address, Code* target);
365 friend class IC; 371 friend class IC;
366 }; 372 };
367 373
368 374
369 } } // namespace v8::internal 375 } } // namespace v8::internal
370 376
371 #endif // V8_IC_H_ 377 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698