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

Side by Side Diff: src/objects.cc

Issue 7473028: Implement a type recording ToBoolean IC. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 5 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 7191 matching lines...) Expand 10 before | Expand all | Expand 10 after
7202 case BUILTIN: return "BUILTIN"; 7202 case BUILTIN: return "BUILTIN";
7203 case LOAD_IC: return "LOAD_IC"; 7203 case LOAD_IC: return "LOAD_IC";
7204 case KEYED_LOAD_IC: return "KEYED_LOAD_IC"; 7204 case KEYED_LOAD_IC: return "KEYED_LOAD_IC";
7205 case STORE_IC: return "STORE_IC"; 7205 case STORE_IC: return "STORE_IC";
7206 case KEYED_STORE_IC: return "KEYED_STORE_IC"; 7206 case KEYED_STORE_IC: return "KEYED_STORE_IC";
7207 case CALL_IC: return "CALL_IC"; 7207 case CALL_IC: return "CALL_IC";
7208 case KEYED_CALL_IC: return "KEYED_CALL_IC"; 7208 case KEYED_CALL_IC: return "KEYED_CALL_IC";
7209 case UNARY_OP_IC: return "UNARY_OP_IC"; 7209 case UNARY_OP_IC: return "UNARY_OP_IC";
7210 case BINARY_OP_IC: return "BINARY_OP_IC"; 7210 case BINARY_OP_IC: return "BINARY_OP_IC";
7211 case COMPARE_IC: return "COMPARE_IC"; 7211 case COMPARE_IC: return "COMPARE_IC";
7212 case TO_BOOLEAN_IC: return "TO_BOOLEAN_IC";
7212 } 7213 }
7213 UNREACHABLE(); 7214 UNREACHABLE();
7214 return NULL; 7215 return NULL;
7215 } 7216 }
7216 7217
7217 7218
7218 const char* Code::ICState2String(InlineCacheState state) { 7219 const char* Code::ICState2String(InlineCacheState state) {
7219 switch (state) { 7220 switch (state) {
7220 case UNINITIALIZED: return "UNINITIALIZED"; 7221 case UNINITIALIZED: return "UNINITIALIZED";
7221 case PREMONOMORPHIC: return "PREMONOMORPHIC"; 7222 case PREMONOMORPHIC: return "PREMONOMORPHIC";
(...skipping 4622 matching lines...) Expand 10 before | Expand all | Expand 10 after
11844 if (break_point_objects()->IsUndefined()) return 0; 11845 if (break_point_objects()->IsUndefined()) return 0;
11845 // Single beak point. 11846 // Single beak point.
11846 if (!break_point_objects()->IsFixedArray()) return 1; 11847 if (!break_point_objects()->IsFixedArray()) return 1;
11847 // Multiple break points. 11848 // Multiple break points.
11848 return FixedArray::cast(break_point_objects())->length(); 11849 return FixedArray::cast(break_point_objects())->length();
11849 } 11850 }
11850 #endif 11851 #endif
11851 11852
11852 11853
11853 } } // namespace v8::internal 11854 } } // namespace v8::internal
OLDNEW
« src/ia32/code-stubs-ia32.cc ('K') | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698