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 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
946 return false; | 946 return false; |
947 } | 947 } |
948 } | 948 } |
949 break; | 949 break; |
950 } | 950 } |
951 case NORMAL: | 951 case NORMAL: |
952 case FIELD: | 952 case FIELD: |
953 case CONSTANT_FUNCTION: | 953 case CONSTANT_FUNCTION: |
954 case HANDLER: | 954 case HANDLER: |
955 case INTERCEPTOR: | 955 case INTERCEPTOR: |
956 case NULL_DESCRIPTOR: | 956 break; |
| 957 case NONEXISTENT: |
| 958 UNREACHABLE(); |
957 break; | 959 break; |
958 } | 960 } |
959 } | 961 } |
960 return true; | 962 return true; |
961 } | 963 } |
962 | 964 |
963 | 965 |
964 void JSFunctionResultCache::JSFunctionResultCacheVerify() { | 966 void JSFunctionResultCache::JSFunctionResultCacheVerify() { |
965 JSFunction::cast(get(kFactoryIndex))->Verify(); | 967 JSFunction::cast(get(kFactoryIndex))->Verify(); |
966 | 968 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1015 FixedArray* proto_transitions = prototype_transitions(); | 1017 FixedArray* proto_transitions = prototype_transitions(); |
1016 MemsetPointer(proto_transitions->data_start(), | 1018 MemsetPointer(proto_transitions->data_start(), |
1017 GetHeap()->the_hole_value(), | 1019 GetHeap()->the_hole_value(), |
1018 proto_transitions->length()); | 1020 proto_transitions->length()); |
1019 } | 1021 } |
1020 | 1022 |
1021 | 1023 |
1022 #endif // DEBUG | 1024 #endif // DEBUG |
1023 | 1025 |
1024 } } // namespace v8::internal | 1026 } } // namespace v8::internal |
OLD | NEW |