| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 11082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11093 } | 11093 } |
| 11094 UNREACHABLE(); // keep the compiler happy | 11094 UNREACHABLE(); // keep the compiler happy |
| 11095 return NULL; | 11095 return NULL; |
| 11096 } | 11096 } |
| 11097 | 11097 |
| 11098 | 11098 |
| 11099 void Code::PrintExtraICState(FILE* out, Kind kind, ExtraICState extra) { | 11099 void Code::PrintExtraICState(FILE* out, Kind kind, ExtraICState extra) { |
| 11100 PrintF(out, "extra_ic_state = "); | 11100 PrintF(out, "extra_ic_state = "); |
| 11101 const char* name = NULL; | 11101 const char* name = NULL; |
| 11102 switch (kind) { | 11102 switch (kind) { |
| 11103 case CALL_IC: | |
| 11104 if (extra == STRING_INDEX_OUT_OF_BOUNDS) { | |
| 11105 name = "STRING_INDEX_OUT_OF_BOUNDS"; | |
| 11106 } | |
| 11107 break; | |
| 11108 case STORE_IC: | 11103 case STORE_IC: |
| 11109 case KEYED_STORE_IC: | 11104 case KEYED_STORE_IC: |
| 11110 if (extra == kStrictMode) { | 11105 if (extra == kStrictMode) { |
| 11111 name = "STRICT"; | 11106 name = "STRICT"; |
| 11112 } | 11107 } |
| 11113 break; | 11108 break; |
| 11114 default: | 11109 default: |
| 11115 break; | 11110 break; |
| 11116 } | 11111 } |
| 11117 if (name != NULL) { | 11112 if (name != NULL) { |
| (...skipping 5481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16599 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16594 #define ERROR_MESSAGES_TEXTS(C, T) T, |
| 16600 static const char* error_messages_[] = { | 16595 static const char* error_messages_[] = { |
| 16601 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16596 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
| 16602 }; | 16597 }; |
| 16603 #undef ERROR_MESSAGES_TEXTS | 16598 #undef ERROR_MESSAGES_TEXTS |
| 16604 return error_messages_[reason]; | 16599 return error_messages_[reason]; |
| 16605 } | 16600 } |
| 16606 | 16601 |
| 16607 | 16602 |
| 16608 } } // namespace v8::internal | 16603 } } // namespace v8::internal |
| OLD | NEW |