OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 } | 896 } |
897 LOG(isolate(), SuspectReadEvent(*name, *object)); | 897 LOG(isolate(), SuspectReadEvent(*name, *object)); |
898 } | 898 } |
899 | 899 |
900 // Update inline cache and stub cache. | 900 // Update inline cache and stub cache. |
901 if (FLAG_use_ic) { | 901 if (FLAG_use_ic) { |
902 UpdateCaches(&lookup, state, object, name); | 902 UpdateCaches(&lookup, state, object, name); |
903 } | 903 } |
904 | 904 |
905 PropertyAttributes attr; | 905 PropertyAttributes attr; |
906 if (lookup.IsProperty() && lookup.type() == INTERCEPTOR) { | 906 if (lookup.IsProperty() && |
| 907 (lookup.type() == INTERCEPTOR || lookup.type() == HANDLER)) { |
907 // Get the property. | 908 // Get the property. |
908 Object* result; | 909 Object* result; |
909 { MaybeObject* maybe_result = | 910 { MaybeObject* maybe_result = |
910 object->GetProperty(*object, &lookup, *name, &attr); | 911 object->GetProperty(*object, &lookup, *name, &attr); |
911 if (!maybe_result->ToObject(&result)) return maybe_result; | 912 if (!maybe_result->ToObject(&result)) return maybe_result; |
912 } | 913 } |
913 // If the property is not present, check if we need to throw an | 914 // If the property is not present, check if we need to throw an |
914 // exception. | 915 // exception. |
915 if (attr == ABSENT && IsContextual(object)) { | 916 if (attr == ABSENT && IsContextual(object)) { |
916 return ReferenceError("not_defined", name); | 917 return ReferenceError("not_defined", name); |
(...skipping 1272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2189 #undef ADDR | 2190 #undef ADDR |
2190 }; | 2191 }; |
2191 | 2192 |
2192 | 2193 |
2193 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 2194 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
2194 return IC_utilities[id]; | 2195 return IC_utilities[id]; |
2195 } | 2196 } |
2196 | 2197 |
2197 | 2198 |
2198 } } // namespace v8::internal | 2199 } } // namespace v8::internal |
OLD | NEW |