OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/allocation-site-scopes.h" | 8 #include "src/allocation-site-scopes.h" |
9 #include "src/api.h" | 9 #include "src/api.h" |
10 #include "src/arguments.h" | 10 #include "src/arguments.h" |
(...skipping 11302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11313 switch (state) { | 11313 switch (state) { |
11314 case UNINITIALIZED: return "UNINITIALIZED"; | 11314 case UNINITIALIZED: return "UNINITIALIZED"; |
11315 case PREMONOMORPHIC: return "PREMONOMORPHIC"; | 11315 case PREMONOMORPHIC: return "PREMONOMORPHIC"; |
11316 case MONOMORPHIC: return "MONOMORPHIC"; | 11316 case MONOMORPHIC: return "MONOMORPHIC"; |
11317 case PROTOTYPE_FAILURE: | 11317 case PROTOTYPE_FAILURE: |
11318 return "PROTOTYPE_FAILURE"; | 11318 return "PROTOTYPE_FAILURE"; |
11319 case POLYMORPHIC: return "POLYMORPHIC"; | 11319 case POLYMORPHIC: return "POLYMORPHIC"; |
11320 case MEGAMORPHIC: return "MEGAMORPHIC"; | 11320 case MEGAMORPHIC: return "MEGAMORPHIC"; |
11321 case GENERIC: return "GENERIC"; | 11321 case GENERIC: return "GENERIC"; |
11322 case DEBUG_STUB: return "DEBUG_STUB"; | 11322 case DEBUG_STUB: return "DEBUG_STUB"; |
| 11323 case DEFAULT: |
| 11324 return "DEFAULT"; |
11323 } | 11325 } |
11324 UNREACHABLE(); | 11326 UNREACHABLE(); |
11325 return NULL; | 11327 return NULL; |
11326 } | 11328 } |
11327 | 11329 |
11328 | 11330 |
11329 const char* Code::StubType2String(StubType type) { | 11331 const char* Code::StubType2String(StubType type) { |
11330 switch (type) { | 11332 switch (type) { |
11331 case NORMAL: return "NORMAL"; | 11333 case NORMAL: return "NORMAL"; |
11332 case FAST: return "FAST"; | 11334 case FAST: return "FAST"; |
(...skipping 5557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16890 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16892 #define ERROR_MESSAGES_TEXTS(C, T) T, |
16891 static const char* error_messages_[] = { | 16893 static const char* error_messages_[] = { |
16892 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16894 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
16893 }; | 16895 }; |
16894 #undef ERROR_MESSAGES_TEXTS | 16896 #undef ERROR_MESSAGES_TEXTS |
16895 return error_messages_[reason]; | 16897 return error_messages_[reason]; |
16896 } | 16898 } |
16897 | 16899 |
16898 | 16900 |
16899 } } // namespace v8::internal | 16901 } } // namespace v8::internal |
OLD | NEW |