| 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 17 matching lines...) Expand all Loading... |
| 28 #include "v8.h" | 28 #include "v8.h" |
| 29 | 29 |
| 30 #include "accessors.h" | 30 #include "accessors.h" |
| 31 #include "api.h" | 31 #include "api.h" |
| 32 #include "arguments.h" | 32 #include "arguments.h" |
| 33 #include "execution.h" | 33 #include "execution.h" |
| 34 #include "ic-inl.h" | 34 #include "ic-inl.h" |
| 35 #include "runtime.h" | 35 #include "runtime.h" |
| 36 #include "stub-cache.h" | 36 #include "stub-cache.h" |
| 37 | 37 |
| 38 namespace v8 { namespace internal { | 38 namespace v8 { |
| 39 namespace internal { |
| 39 | 40 |
| 40 #ifdef DEBUG | 41 #ifdef DEBUG |
| 41 static char TransitionMarkFromState(IC::State state) { | 42 static char TransitionMarkFromState(IC::State state) { |
| 42 switch (state) { | 43 switch (state) { |
| 43 case UNINITIALIZED: return '0'; | 44 case UNINITIALIZED: return '0'; |
| 44 case UNINITIALIZED_IN_LOOP: return 'L'; | 45 case UNINITIALIZED_IN_LOOP: return 'L'; |
| 45 case PREMONOMORPHIC: return 'P'; | 46 case PREMONOMORPHIC: return 'P'; |
| 46 case MONOMORPHIC: return '1'; | 47 case MONOMORPHIC: return '1'; |
| 47 case MONOMORPHIC_PROTOTYPE_FAILURE: return '^'; | 48 case MONOMORPHIC_PROTOTYPE_FAILURE: return '^'; |
| 48 case MEGAMORPHIC: return 'N'; | 49 case MEGAMORPHIC: return 'N'; |
| (...skipping 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1238 #undef ADDR | 1239 #undef ADDR |
| 1239 }; | 1240 }; |
| 1240 | 1241 |
| 1241 | 1242 |
| 1242 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 1243 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
| 1243 return IC_utilities[id]; | 1244 return IC_utilities[id]; |
| 1244 } | 1245 } |
| 1245 | 1246 |
| 1246 | 1247 |
| 1247 } } // namespace v8::internal | 1248 } } // namespace v8::internal |
| OLD | NEW |