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 3301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3312 for (int current = 0; current < receiver_count; ++current) { | 3312 for (int current = 0; current < receiver_count; ++current) { |
3313 __ Jump(handler_ics->at(current), RelocInfo::CODE_TARGET, | 3313 __ Jump(handler_ics->at(current), RelocInfo::CODE_TARGET, |
3314 eq, a2, Operand(receiver_maps->at(current))); | 3314 eq, a2, Operand(receiver_maps->at(current))); |
3315 } | 3315 } |
3316 | 3316 |
3317 __ bind(&miss); | 3317 __ bind(&miss); |
3318 Handle<Code> miss_ic = isolate()->builtins()->KeyedLoadIC_Miss(); | 3318 Handle<Code> miss_ic = isolate()->builtins()->KeyedLoadIC_Miss(); |
3319 __ Jump(miss_ic, RelocInfo::CODE_TARGET); | 3319 __ Jump(miss_ic, RelocInfo::CODE_TARGET); |
3320 | 3320 |
3321 // Return the generated code. | 3321 // Return the generated code. |
3322 return GetCode(Code::NORMAL, factory()->empty_string(), MEGAMORPHIC); | 3322 return GetCode(Code::NORMAL, factory()->empty_string(), POLYMORPHIC); |
3323 } | 3323 } |
3324 | 3324 |
3325 | 3325 |
3326 Handle<Code> KeyedStoreStubCompiler::CompileStoreField(Handle<JSObject> object, | 3326 Handle<Code> KeyedStoreStubCompiler::CompileStoreField(Handle<JSObject> object, |
3327 int index, | 3327 int index, |
3328 Handle<Map> transition, | 3328 Handle<Map> transition, |
3329 Handle<String> name) { | 3329 Handle<String> name) { |
3330 // ----------- S t a t e ------------- | 3330 // ----------- S t a t e ------------- |
3331 // -- a0 : value | 3331 // -- a0 : value |
3332 // -- a1 : key | 3332 // -- a1 : key |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3415 __ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET); | 3415 __ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET); |
3416 __ bind(&next_map); | 3416 __ bind(&next_map); |
3417 } | 3417 } |
3418 } | 3418 } |
3419 | 3419 |
3420 __ bind(&miss); | 3420 __ bind(&miss); |
3421 Handle<Code> miss_ic = isolate()->builtins()->KeyedStoreIC_Miss(); | 3421 Handle<Code> miss_ic = isolate()->builtins()->KeyedStoreIC_Miss(); |
3422 __ Jump(miss_ic, RelocInfo::CODE_TARGET); | 3422 __ Jump(miss_ic, RelocInfo::CODE_TARGET); |
3423 | 3423 |
3424 // Return the generated code. | 3424 // Return the generated code. |
3425 return GetCode(Code::NORMAL, factory()->empty_string(), MEGAMORPHIC); | 3425 return GetCode(Code::NORMAL, factory()->empty_string(), POLYMORPHIC); |
3426 } | 3426 } |
3427 | 3427 |
3428 | 3428 |
3429 Handle<Code> ConstructStubCompiler::CompileConstructStub( | 3429 Handle<Code> ConstructStubCompiler::CompileConstructStub( |
3430 Handle<JSFunction> function) { | 3430 Handle<JSFunction> function) { |
3431 // a0 : argc | 3431 // a0 : argc |
3432 // a1 : constructor | 3432 // a1 : constructor |
3433 // ra : return address | 3433 // ra : return address |
3434 // [sp] : last argument | 3434 // [sp] : last argument |
3435 Label generic_stub_call; | 3435 Label generic_stub_call; |
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4424 __ Jump(ic_slow, RelocInfo::CODE_TARGET); | 4424 __ Jump(ic_slow, RelocInfo::CODE_TARGET); |
4425 } | 4425 } |
4426 } | 4426 } |
4427 | 4427 |
4428 | 4428 |
4429 #undef __ | 4429 #undef __ |
4430 | 4430 |
4431 } } // namespace v8::internal | 4431 } } // namespace v8::internal |
4432 | 4432 |
4433 #endif // V8_TARGET_ARCH_MIPS | 4433 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |