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 11057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11068 case DEBUG_STUB: return "DEBUG_STUB"; | 11068 case DEBUG_STUB: return "DEBUG_STUB"; |
11069 } | 11069 } |
11070 UNREACHABLE(); | 11070 UNREACHABLE(); |
11071 return NULL; | 11071 return NULL; |
11072 } | 11072 } |
11073 | 11073 |
11074 | 11074 |
11075 const char* Code::StubType2String(StubType type) { | 11075 const char* Code::StubType2String(StubType type) { |
11076 switch (type) { | 11076 switch (type) { |
11077 case NORMAL: return "NORMAL"; | 11077 case NORMAL: return "NORMAL"; |
11078 case FIELD: return "FIELD"; | 11078 case FAST: return "FAST"; |
11079 case CONSTANT: return "CONSTANT"; | |
11080 case CALLBACKS: return "CALLBACKS"; | |
11081 case INTERCEPTOR: return "INTERCEPTOR"; | |
11082 case TRANSITION: return "TRANSITION"; | |
11083 case NONEXISTENT: return "NONEXISTENT"; | |
11084 } | 11079 } |
11085 UNREACHABLE(); // keep the compiler happy | 11080 UNREACHABLE(); // keep the compiler happy |
11086 return NULL; | 11081 return NULL; |
11087 } | 11082 } |
11088 | 11083 |
11089 | 11084 |
11090 void Code::PrintExtraICState(FILE* out, Kind kind, ExtraICState extra) { | 11085 void Code::PrintExtraICState(FILE* out, Kind kind, ExtraICState extra) { |
11091 PrintF(out, "extra_ic_state = "); | 11086 PrintF(out, "extra_ic_state = "); |
11092 const char* name = NULL; | 11087 const char* name = NULL; |
11093 switch (kind) { | 11088 switch (kind) { |
(...skipping 5554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16648 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16643 #define ERROR_MESSAGES_TEXTS(C, T) T, |
16649 static const char* error_messages_[] = { | 16644 static const char* error_messages_[] = { |
16650 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16645 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
16651 }; | 16646 }; |
16652 #undef ERROR_MESSAGES_TEXTS | 16647 #undef ERROR_MESSAGES_TEXTS |
16653 return error_messages_[reason]; | 16648 return error_messages_[reason]; |
16654 } | 16649 } |
16655 | 16650 |
16656 | 16651 |
16657 } } // namespace v8::internal | 16652 } } // namespace v8::internal |
OLD | NEW |