| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2430 UNREACHABLE(); | 2430 UNREACHABLE(); |
| 2431 return v8::internal::UNINITIALIZED; | 2431 return v8::internal::UNINITIALIZED; |
| 2432 } | 2432 } |
| 2433 | 2433 |
| 2434 | 2434 |
| 2435 Handle<Type> UnaryOpIC::TypeInfoToType(TypeInfo type_info, Isolate* isolate) { | 2435 Handle<Type> UnaryOpIC::TypeInfoToType(TypeInfo type_info, Isolate* isolate) { |
| 2436 switch (type_info) { | 2436 switch (type_info) { |
| 2437 case UNINITIALIZED: | 2437 case UNINITIALIZED: |
| 2438 return handle(Type::None(), isolate); | 2438 return handle(Type::None(), isolate); |
| 2439 case SMI: | 2439 case SMI: |
| 2440 return handle(Type::Integer31(), isolate); | 2440 return handle(Type::Smi(), isolate); |
| 2441 case NUMBER: | 2441 case NUMBER: |
| 2442 return handle(Type::Number(), isolate); | 2442 return handle(Type::Number(), isolate); |
| 2443 case GENERIC: | 2443 case GENERIC: |
| 2444 return handle(Type::Any(), isolate); | 2444 return handle(Type::Any(), isolate); |
| 2445 } | 2445 } |
| 2446 UNREACHABLE(); | 2446 UNREACHABLE(); |
| 2447 return handle(Type::Any(), isolate); | 2447 return handle(Type::Any(), isolate); |
| 2448 } | 2448 } |
| 2449 | 2449 |
| 2450 | 2450 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2517 return ::v8::internal::UNINITIALIZED; | 2517 return ::v8::internal::UNINITIALIZED; |
| 2518 } | 2518 } |
| 2519 | 2519 |
| 2520 | 2520 |
| 2521 Handle<Type> BinaryOpIC::TypeInfoToType(BinaryOpIC::TypeInfo binary_type, | 2521 Handle<Type> BinaryOpIC::TypeInfoToType(BinaryOpIC::TypeInfo binary_type, |
| 2522 Isolate* isolate) { | 2522 Isolate* isolate) { |
| 2523 switch (binary_type) { | 2523 switch (binary_type) { |
| 2524 case UNINITIALIZED: | 2524 case UNINITIALIZED: |
| 2525 return handle(Type::None(), isolate); | 2525 return handle(Type::None(), isolate); |
| 2526 case SMI: | 2526 case SMI: |
| 2527 return handle(Type::Integer31(), isolate); | 2527 return handle(Type::Smi(), isolate); |
| 2528 case INT32: | 2528 case INT32: |
| 2529 return handle(Type::Integer32(), isolate); | 2529 return handle(Type::Signed32(), isolate); |
| 2530 case NUMBER: | 2530 case NUMBER: |
| 2531 return handle(Type::Number(), isolate); | 2531 return handle(Type::Number(), isolate); |
| 2532 case ODDBALL: | 2532 case ODDBALL: |
| 2533 return handle(Type::Optional( | 2533 return handle(Type::Optional( |
| 2534 handle(Type::Union( | 2534 handle(Type::Union( |
| 2535 handle(Type::Number(), isolate), | 2535 handle(Type::Number(), isolate), |
| 2536 handle(Type::String(), isolate)), isolate)), isolate); | 2536 handle(Type::String(), isolate)), isolate)), isolate); |
| 2537 case STRING: | 2537 case STRING: |
| 2538 return handle(Type::String(), isolate); | 2538 return handle(Type::String(), isolate); |
| 2539 case GENERIC: | 2539 case GENERIC: |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2838 | 2838 |
| 2839 | 2839 |
| 2840 Handle<Type> CompareIC::StateToType( | 2840 Handle<Type> CompareIC::StateToType( |
| 2841 Isolate* isolate, | 2841 Isolate* isolate, |
| 2842 CompareIC::State state, | 2842 CompareIC::State state, |
| 2843 Handle<Map> map) { | 2843 Handle<Map> map) { |
| 2844 switch (state) { | 2844 switch (state) { |
| 2845 case CompareIC::UNINITIALIZED: | 2845 case CompareIC::UNINITIALIZED: |
| 2846 return handle(Type::None(), isolate); | 2846 return handle(Type::None(), isolate); |
| 2847 case CompareIC::SMI: | 2847 case CompareIC::SMI: |
| 2848 return handle(Type::Integer31(), isolate); | 2848 return handle(Type::Smi(), isolate); |
| 2849 case CompareIC::NUMBER: | 2849 case CompareIC::NUMBER: |
| 2850 return handle(Type::Number(), isolate); | 2850 return handle(Type::Number(), isolate); |
| 2851 case CompareIC::STRING: | 2851 case CompareIC::STRING: |
| 2852 return handle(Type::String(), isolate); | 2852 return handle(Type::String(), isolate); |
| 2853 case CompareIC::INTERNALIZED_STRING: | 2853 case CompareIC::INTERNALIZED_STRING: |
| 2854 return handle(Type::InternalizedString(), isolate); | 2854 return handle(Type::InternalizedString(), isolate); |
| 2855 case CompareIC::UNIQUE_NAME: | 2855 case CompareIC::UNIQUE_NAME: |
| 2856 return handle(Type::UniqueName(), isolate); | 2856 return handle(Type::UniqueName(), isolate); |
| 2857 case CompareIC::OBJECT: | 2857 case CompareIC::OBJECT: |
| 2858 return handle(Type::Receiver(), isolate); | 2858 return handle(Type::Receiver(), isolate); |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3132 #undef ADDR | 3132 #undef ADDR |
| 3133 }; | 3133 }; |
| 3134 | 3134 |
| 3135 | 3135 |
| 3136 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 3136 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
| 3137 return IC_utilities[id]; | 3137 return IC_utilities[id]; |
| 3138 } | 3138 } |
| 3139 | 3139 |
| 3140 | 3140 |
| 3141 } } // namespace v8::internal | 3141 } } // namespace v8::internal |
| OLD | NEW |