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 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
884 FreeSpaceForFastApiCall(masm); | 884 FreeSpaceForFastApiCall(masm); |
885 } | 885 } |
886 } | 886 } |
887 | 887 |
888 void CompileRegular(MacroAssembler* masm, | 888 void CompileRegular(MacroAssembler* masm, |
889 Handle<JSObject> object, | 889 Handle<JSObject> object, |
890 Register receiver, | 890 Register receiver, |
891 Register scratch1, | 891 Register scratch1, |
892 Register scratch2, | 892 Register scratch2, |
893 Register scratch3, | 893 Register scratch3, |
894 Handle<String> name, | 894 Handle<Name> name, |
895 Handle<JSObject> interceptor_holder, | 895 Handle<JSObject> interceptor_holder, |
896 Label* miss_label) { | 896 Label* miss_label) { |
897 Register holder = | 897 Register holder = |
898 stub_compiler_->CheckPrototypes(object, receiver, interceptor_holder, | 898 stub_compiler_->CheckPrototypes(object, receiver, interceptor_holder, |
899 scratch1, scratch2, scratch3, | 899 scratch1, scratch2, scratch3, |
900 name, miss_label); | 900 name, miss_label); |
901 | 901 |
902 // Call a runtime function to load the interceptor property. | 902 // Call a runtime function to load the interceptor property. |
903 FrameScope scope(masm, StackFrame::INTERNAL); | 903 FrameScope scope(masm, StackFrame::INTERNAL); |
904 // Save the name_ register across the call. | 904 // Save the name_ register across the call. |
(...skipping 1738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2643 | 2643 |
2644 // Name register might be clobbered. | 2644 // Name register might be clobbered. |
2645 GenerateStoreField(masm(), | 2645 GenerateStoreField(masm(), |
2646 object, | 2646 object, |
2647 index, | 2647 index, |
2648 transition, | 2648 transition, |
2649 name, | 2649 name, |
2650 a1, a2, a3, t0, | 2650 a1, a2, a3, t0, |
2651 &miss); | 2651 &miss); |
2652 __ bind(&miss); | 2652 __ bind(&miss); |
2653 __ li(a2, Operand(Handle<String>(name))); // Restore name. | 2653 __ li(a2, Operand(Handle<Name>(name))); // Restore name. |
2654 Handle<Code> ic = masm()->isolate()->builtins()->Builtins::StoreIC_Miss(); | 2654 Handle<Code> ic = masm()->isolate()->builtins()->Builtins::StoreIC_Miss(); |
2655 __ Jump(ic, RelocInfo::CODE_TARGET); | 2655 __ Jump(ic, RelocInfo::CODE_TARGET); |
2656 | 2656 |
2657 // Return the generated code. | 2657 // Return the generated code. |
2658 return GetCode(transition.is_null() | 2658 return GetCode(transition.is_null() |
2659 ? Code::FIELD | 2659 ? Code::FIELD |
2660 : Code::MAP_TRANSITION, name); | 2660 : Code::MAP_TRANSITION, name); |
2661 } | 2661 } |
2662 | 2662 |
2663 | 2663 |
(...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4142 __ Jump(ic_slow, RelocInfo::CODE_TARGET); | 4142 __ Jump(ic_slow, RelocInfo::CODE_TARGET); |
4143 } | 4143 } |
4144 } | 4144 } |
4145 | 4145 |
4146 | 4146 |
4147 #undef __ | 4147 #undef __ |
4148 | 4148 |
4149 } } // namespace v8::internal | 4149 } } // namespace v8::internal |
4150 | 4150 |
4151 #endif // V8_TARGET_ARCH_MIPS | 4151 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |