| 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 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1172 ASSERT(interceptor_holder->HasNamedInterceptor()); | 1172 ASSERT(interceptor_holder->HasNamedInterceptor()); |
| 1173 ASSERT(!interceptor_holder->GetNamedInterceptor()->getter()->IsUndefined()); | 1173 ASSERT(!interceptor_holder->GetNamedInterceptor()->getter()->IsUndefined()); |
| 1174 | 1174 |
| 1175 // Check that the receiver isn't a smi. | 1175 // Check that the receiver isn't a smi. |
| 1176 __ JumpIfSmi(receiver, miss); | 1176 __ JumpIfSmi(receiver, miss); |
| 1177 | 1177 |
| 1178 // So far the most popular follow ups for interceptor loads are FIELD | 1178 // So far the most popular follow ups for interceptor loads are FIELD |
| 1179 // and CALLBACKS, so inline only them, other cases may be added | 1179 // and CALLBACKS, so inline only them, other cases may be added |
| 1180 // later. | 1180 // later. |
| 1181 bool compile_followup_inline = false; | 1181 bool compile_followup_inline = false; |
| 1182 if (lookup->IsProperty() && lookup->IsCacheable()) { | 1182 if (lookup->IsFound() && lookup->IsCacheable()) { |
| 1183 if (lookup->type() == FIELD) { | 1183 if (lookup->type() == FIELD) { |
| 1184 compile_followup_inline = true; | 1184 compile_followup_inline = true; |
| 1185 } else if (lookup->type() == CALLBACKS && | 1185 } else if (lookup->type() == CALLBACKS && |
| 1186 lookup->GetCallbackObject()->IsAccessorInfo()) { | 1186 lookup->GetCallbackObject()->IsAccessorInfo()) { |
| 1187 compile_followup_inline = | 1187 compile_followup_inline = |
| 1188 AccessorInfo::cast(lookup->GetCallbackObject())->getter() != NULL; | 1188 AccessorInfo::cast(lookup->GetCallbackObject())->getter() != NULL; |
| 1189 } | 1189 } |
| 1190 } | 1190 } |
| 1191 | 1191 |
| 1192 if (compile_followup_inline) { | 1192 if (compile_followup_inline) { |
| (...skipping 3023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4216 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss(); | 4216 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss(); |
| 4217 __ Jump(ic_miss, RelocInfo::CODE_TARGET); | 4217 __ Jump(ic_miss, RelocInfo::CODE_TARGET); |
| 4218 } | 4218 } |
| 4219 | 4219 |
| 4220 | 4220 |
| 4221 #undef __ | 4221 #undef __ |
| 4222 | 4222 |
| 4223 } } // namespace v8::internal | 4223 } } // namespace v8::internal |
| 4224 | 4224 |
| 4225 #endif // V8_TARGET_ARCH_ARM | 4225 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |