| 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 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1197 ASSERT(interceptor_holder->HasNamedInterceptor()); | 1197 ASSERT(interceptor_holder->HasNamedInterceptor()); |
| 1198 ASSERT(!interceptor_holder->GetNamedInterceptor()->getter()->IsUndefined()); | 1198 ASSERT(!interceptor_holder->GetNamedInterceptor()->getter()->IsUndefined()); |
| 1199 | 1199 |
| 1200 // Check that the receiver isn't a smi. | 1200 // Check that the receiver isn't a smi. |
| 1201 __ JumpIfSmi(receiver, miss); | 1201 __ JumpIfSmi(receiver, miss); |
| 1202 | 1202 |
| 1203 // So far the most popular follow ups for interceptor loads are FIELD | 1203 // So far the most popular follow ups for interceptor loads are FIELD |
| 1204 // and CALLBACKS, so inline only them, other cases may be added | 1204 // and CALLBACKS, so inline only them, other cases may be added |
| 1205 // later. | 1205 // later. |
| 1206 bool compile_followup_inline = false; | 1206 bool compile_followup_inline = false; |
| 1207 if (lookup->IsProperty() && lookup->IsCacheable()) { | 1207 if (lookup->IsFound() && lookup->IsCacheable()) { |
| 1208 if (lookup->type() == FIELD) { | 1208 if (lookup->type() == FIELD) { |
| 1209 compile_followup_inline = true; | 1209 compile_followup_inline = true; |
| 1210 } else if (lookup->type() == CALLBACKS && | 1210 } else if (lookup->type() == CALLBACKS && |
| 1211 lookup->GetCallbackObject()->IsAccessorInfo()) { | 1211 lookup->GetCallbackObject()->IsAccessorInfo()) { |
| 1212 compile_followup_inline = | 1212 compile_followup_inline = |
| 1213 AccessorInfo::cast(lookup->GetCallbackObject())->getter() != NULL; | 1213 AccessorInfo::cast(lookup->GetCallbackObject())->getter() != NULL; |
| 1214 } | 1214 } |
| 1215 } | 1215 } |
| 1216 | 1216 |
| 1217 if (compile_followup_inline) { | 1217 if (compile_followup_inline) { |
| (...skipping 3080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4298 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss(); | 4298 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss(); |
| 4299 __ Jump(ic_miss, RelocInfo::CODE_TARGET); | 4299 __ Jump(ic_miss, RelocInfo::CODE_TARGET); |
| 4300 } | 4300 } |
| 4301 | 4301 |
| 4302 | 4302 |
| 4303 #undef __ | 4303 #undef __ |
| 4304 | 4304 |
| 4305 } } // namespace v8::internal | 4305 } } // namespace v8::internal |
| 4306 | 4306 |
| 4307 #endif // V8_TARGET_ARCH_MIPS | 4307 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |