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 2929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2940 __ mov(ebx, Immediate(transitioned_maps->at(i))); | 2940 __ mov(ebx, Immediate(transitioned_maps->at(i))); |
2941 __ jmp(handler_stubs->at(i), RelocInfo::CODE_TARGET); | 2941 __ jmp(handler_stubs->at(i), RelocInfo::CODE_TARGET); |
2942 __ bind(&next_map); | 2942 __ bind(&next_map); |
2943 } | 2943 } |
2944 } | 2944 } |
2945 __ bind(&miss); | 2945 __ bind(&miss); |
2946 Handle<Code> miss_ic = isolate()->builtins()->KeyedStoreIC_Miss(); | 2946 Handle<Code> miss_ic = isolate()->builtins()->KeyedStoreIC_Miss(); |
2947 __ jmp(miss_ic, RelocInfo::CODE_TARGET); | 2947 __ jmp(miss_ic, RelocInfo::CODE_TARGET); |
2948 | 2948 |
2949 // Return the generated code. | 2949 // Return the generated code. |
2950 return GetCode(Code::NORMAL, factory()->empty_string(), MEGAMORPHIC); | 2950 return GetCode(Code::NORMAL, factory()->empty_string(), POLYMORPHIC); |
2951 } | 2951 } |
2952 | 2952 |
2953 | 2953 |
2954 Handle<Code> LoadStubCompiler::CompileLoadNonexistent(Handle<String> name, | 2954 Handle<Code> LoadStubCompiler::CompileLoadNonexistent(Handle<String> name, |
2955 Handle<JSObject> object, | 2955 Handle<JSObject> object, |
2956 Handle<JSObject> last) { | 2956 Handle<JSObject> last) { |
2957 // ----------- S t a t e ------------- | 2957 // ----------- S t a t e ------------- |
2958 // -- ecx : name | 2958 // -- ecx : name |
2959 // -- edx : receiver | 2959 // -- edx : receiver |
2960 // -- esp[0] : return address | 2960 // -- esp[0] : return address |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3433 int receiver_count = receiver_maps->length(); | 3433 int receiver_count = receiver_maps->length(); |
3434 for (int current = 0; current < receiver_count; ++current) { | 3434 for (int current = 0; current < receiver_count; ++current) { |
3435 __ cmp(map_reg, receiver_maps->at(current)); | 3435 __ cmp(map_reg, receiver_maps->at(current)); |
3436 __ j(equal, handler_ics->at(current)); | 3436 __ j(equal, handler_ics->at(current)); |
3437 } | 3437 } |
3438 | 3438 |
3439 __ bind(&miss); | 3439 __ bind(&miss); |
3440 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); | 3440 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); |
3441 | 3441 |
3442 // Return the generated code. | 3442 // Return the generated code. |
3443 return GetCode(Code::NORMAL, factory()->empty_string(), MEGAMORPHIC); | 3443 return GetCode(Code::NORMAL, factory()->empty_string(), POLYMORPHIC); |
3444 } | 3444 } |
3445 | 3445 |
3446 | 3446 |
3447 // Specialized stub for constructing objects from functions which only have only | 3447 // Specialized stub for constructing objects from functions which only have only |
3448 // simple assignments of the form this.x = ...; in their body. | 3448 // simple assignments of the form this.x = ...; in their body. |
3449 Handle<Code> ConstructStubCompiler::CompileConstructStub( | 3449 Handle<Code> ConstructStubCompiler::CompileConstructStub( |
3450 Handle<JSFunction> function) { | 3450 Handle<JSFunction> function) { |
3451 // ----------- S t a t e ------------- | 3451 // ----------- S t a t e ------------- |
3452 // -- eax : argc | 3452 // -- eax : argc |
3453 // -- edi : constructor | 3453 // -- edi : constructor |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4160 __ jmp(ic_slow, RelocInfo::CODE_TARGET); | 4160 __ jmp(ic_slow, RelocInfo::CODE_TARGET); |
4161 } | 4161 } |
4162 } | 4162 } |
4163 | 4163 |
4164 | 4164 |
4165 #undef __ | 4165 #undef __ |
4166 | 4166 |
4167 } } // namespace v8::internal | 4167 } } // namespace v8::internal |
4168 | 4168 |
4169 #endif // V8_TARGET_ARCH_IA32 | 4169 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |