OLD | NEW |
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 4585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4596 case CALL_IC: return "CALL_IC"; | 4596 case CALL_IC: return "CALL_IC"; |
4597 } | 4597 } |
4598 UNREACHABLE(); | 4598 UNREACHABLE(); |
4599 return NULL; | 4599 return NULL; |
4600 } | 4600 } |
4601 | 4601 |
4602 | 4602 |
4603 const char* Code::ICState2String(InlineCacheState state) { | 4603 const char* Code::ICState2String(InlineCacheState state) { |
4604 switch (state) { | 4604 switch (state) { |
4605 case UNINITIALIZED: return "UNINITIALIZED"; | 4605 case UNINITIALIZED: return "UNINITIALIZED"; |
| 4606 case UNINITIALIZED_IN_LOOP: return "UNINITIALIZED_IN_LOOP"; |
4606 case PREMONOMORPHIC: return "PREMONOMORPHIC"; | 4607 case PREMONOMORPHIC: return "PREMONOMORPHIC"; |
4607 case MONOMORPHIC: return "MONOMORPHIC"; | 4608 case MONOMORPHIC: return "MONOMORPHIC"; |
4608 case MONOMORPHIC_PROTOTYPE_FAILURE: return "MONOMORPHIC_PROTOTYPE_FAILURE"; | 4609 case MONOMORPHIC_PROTOTYPE_FAILURE: return "MONOMORPHIC_PROTOTYPE_FAILURE"; |
4609 case MEGAMORPHIC: return "MEGAMORPHIC"; | 4610 case MEGAMORPHIC: return "MEGAMORPHIC"; |
4610 case DEBUG_BREAK: return "DEBUG_BREAK"; | 4611 case DEBUG_BREAK: return "DEBUG_BREAK"; |
4611 case DEBUG_PREPARE_STEP_IN: return "DEBUG_PREPARE_STEP_IN"; | 4612 case DEBUG_PREPARE_STEP_IN: return "DEBUG_PREPARE_STEP_IN"; |
4612 } | 4613 } |
4613 UNREACHABLE(); | 4614 UNREACHABLE(); |
4614 return NULL; | 4615 return NULL; |
4615 } | 4616 } |
(...skipping 2288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6904 // No break point. | 6905 // No break point. |
6905 if (break_point_objects()->IsUndefined()) return 0; | 6906 if (break_point_objects()->IsUndefined()) return 0; |
6906 // Single beak point. | 6907 // Single beak point. |
6907 if (!break_point_objects()->IsFixedArray()) return 1; | 6908 if (!break_point_objects()->IsFixedArray()) return 1; |
6908 // Multiple break points. | 6909 // Multiple break points. |
6909 return FixedArray::cast(break_point_objects())->length(); | 6910 return FixedArray::cast(break_point_objects())->length(); |
6910 } | 6911 } |
6911 | 6912 |
6912 | 6913 |
6913 } } // namespace v8::internal | 6914 } } // namespace v8::internal |
OLD | NEW |