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 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1085 (!target().is_identical_to(non_strict_arguments_stub()))) { | 1085 (!target().is_identical_to(non_strict_arguments_stub()))) { |
1086 stub = LoadElementStub(receiver); | 1086 stub = LoadElementStub(receiver); |
1087 } | 1087 } |
1088 } | 1088 } |
1089 } | 1089 } |
1090 | 1090 |
1091 if (!is_target_set()) { | 1091 if (!is_target_set()) { |
1092 if (*stub == *generic_stub()) { | 1092 if (*stub == *generic_stub()) { |
1093 TRACE_GENERIC_IC(isolate(), "KeyedLoadIC", "set generic"); | 1093 TRACE_GENERIC_IC(isolate(), "KeyedLoadIC", "set generic"); |
1094 } | 1094 } |
1095 ASSERT(!stub.is_null()); | |
1096 set_target(*stub); | 1095 set_target(*stub); |
1097 TRACE_IC("LoadIC", key); | 1096 TRACE_IC("LoadIC", key); |
1098 } | 1097 } |
1099 | 1098 |
1100 if (maybe_object != NULL) return maybe_object; | 1099 if (maybe_object != NULL) return maybe_object; |
1101 return Runtime::GetObjectPropertyOrFail(isolate(), object, key); | 1100 return Runtime::GetObjectPropertyOrFail(isolate(), object, key); |
1102 } | 1101 } |
1103 | 1102 |
1104 | 1103 |
1105 static bool LookupForWrite(Handle<JSObject> receiver, | 1104 static bool LookupForWrite(Handle<JSObject> receiver, |
(...skipping 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2812 #undef ADDR | 2811 #undef ADDR |
2813 }; | 2812 }; |
2814 | 2813 |
2815 | 2814 |
2816 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 2815 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
2817 return IC_utilities[id]; | 2816 return IC_utilities[id]; |
2818 } | 2817 } |
2819 | 2818 |
2820 | 2819 |
2821 } } // namespace v8::internal | 2820 } } // namespace v8::internal |
OLD | NEW |