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

Side by Side Diff: src/v8globals.h

Issue 11824063: Separate MEGAMORPHIC and GENERIC ic states (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Move GENERIC from || to ASSERT(! Created 7 years, 11 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/type-info.cc ('k') | no next file » | 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 // Has been executed but monomorhic state has been delayed. 256 // Has been executed but monomorhic state has been delayed.
257 PREMONOMORPHIC, 257 PREMONOMORPHIC,
258 // Has been executed and only one receiver type has been seen. 258 // Has been executed and only one receiver type has been seen.
259 MONOMORPHIC, 259 MONOMORPHIC,
260 // Like MONOMORPHIC but check failed due to prototype. 260 // Like MONOMORPHIC but check failed due to prototype.
261 MONOMORPHIC_PROTOTYPE_FAILURE, 261 MONOMORPHIC_PROTOTYPE_FAILURE,
262 // Multiple receiver types have been seen. 262 // Multiple receiver types have been seen.
263 POLYMORPHIC, 263 POLYMORPHIC,
264 // Many receiver types have been seen. 264 // Many receiver types have been seen.
265 MEGAMORPHIC, 265 MEGAMORPHIC,
266 // A generic handler is installed and no extra typefeedback is recorded.
267 GENERIC,
266 // Special state for debug break or step in prepare stubs. 268 // Special state for debug break or step in prepare stubs.
267 DEBUG_STUB 269 DEBUG_STUB
268 }; 270 };
269 271
270 272
271 enum CheckType { 273 enum CheckType {
272 RECEIVER_MAP_CHECK, 274 RECEIVER_MAP_CHECK,
273 STRING_CHECK, 275 STRING_CHECK,
274 NUMBER_CHECK, 276 NUMBER_CHECK,
275 BOOLEAN_CHECK 277 BOOLEAN_CHECK
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 565
564 enum ClearExceptionFlag { 566 enum ClearExceptionFlag {
565 KEEP_EXCEPTION, 567 KEEP_EXCEPTION,
566 CLEAR_EXCEPTION 568 CLEAR_EXCEPTION
567 }; 569 };
568 570
569 571
570 } } // namespace v8::internal 572 } } // namespace v8::internal
571 573
572 #endif // V8_V8GLOBALS_H_ 574 #endif // V8_V8GLOBALS_H_
OLDNEW
« no previous file with comments | « src/type-info.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698