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 2867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2878 // ----------------------------------- | 2878 // ----------------------------------- |
2879 Label miss; | 2879 Label miss; |
2880 | 2880 |
2881 Counters* counters = isolate()->counters(); | 2881 Counters* counters = isolate()->counters(); |
2882 __ IncrementCounter(counters->keyed_load_field(), 1); | 2882 __ IncrementCounter(counters->keyed_load_field(), 1); |
2883 | 2883 |
2884 // Check that the name has not changed. | 2884 // Check that the name has not changed. |
2885 __ cmp(ecx, Immediate(name)); | 2885 __ cmp(ecx, Immediate(name)); |
2886 __ j(not_equal, &miss); | 2886 __ j(not_equal, &miss); |
2887 | 2887 |
2888 GenerateLoadField(receiver, holder, edx, ebx, ecx, edi, index, name, &miss); | 2888 GenerateLoadField(receiver, holder, edx, ebx, eax, edi, index, name, &miss); |
2889 | 2889 |
2890 __ bind(&miss); | 2890 __ bind(&miss); |
2891 __ DecrementCounter(counters->keyed_load_field(), 1); | 2891 __ DecrementCounter(counters->keyed_load_field(), 1); |
2892 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); | 2892 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); |
2893 | 2893 |
2894 // Return the generated code. | 2894 // Return the generated code. |
2895 return GetCode(FIELD, name); | 2895 return GetCode(FIELD, name); |
2896 } | 2896 } |
2897 | 2897 |
2898 | 2898 |
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4067 __ jmp(ic_slow, RelocInfo::CODE_TARGET); | 4067 __ jmp(ic_slow, RelocInfo::CODE_TARGET); |
4068 } | 4068 } |
4069 } | 4069 } |
4070 | 4070 |
4071 | 4071 |
4072 #undef __ | 4072 #undef __ |
4073 | 4073 |
4074 } } // namespace v8::internal | 4074 } } // namespace v8::internal |
4075 | 4075 |
4076 #endif // V8_TARGET_ARCH_IA32 | 4076 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |