| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 void StubRuntimeCallHelper::AfterCall(MacroAssembler* masm) const { | 66 void StubRuntimeCallHelper::AfterCall(MacroAssembler* masm) const { |
| 67 masm->LeaveFrame(StackFrame::INTERNAL); | 67 masm->LeaveFrame(StackFrame::INTERNAL); |
| 68 ASSERT(masm->has_frame()); | 68 ASSERT(masm->has_frame()); |
| 69 masm->set_has_frame(false); | 69 masm->set_has_frame(false); |
| 70 } | 70 } |
| 71 | 71 |
| 72 // ------------------------------------------------------------------------- | 72 // ------------------------------------------------------------------------- |
| 73 // Code generators | 73 // Code generators |
| 74 | 74 |
| 75 void ElementsTransitionGenerator::GenerateSmiOnlyToObject( | 75 void ElementsTransitionGenerator::GenerateMapChangeElementsTransition( |
| 76 MacroAssembler* masm) { | 76 MacroAssembler* masm) { |
| 77 // ----------- S t a t e ------------- | 77 // ----------- S t a t e ------------- |
| 78 // -- a0 : value | 78 // -- a0 : value |
| 79 // -- a1 : key | 79 // -- a1 : key |
| 80 // -- a2 : receiver | 80 // -- a2 : receiver |
| 81 // -- ra : return address | 81 // -- ra : return address |
| 82 // -- a3 : target map, scratch for subsequent call | 82 // -- a3 : target map, scratch for subsequent call |
| 83 // -- t0 : scratch (elements) | 83 // -- t0 : scratch (elements) |
| 84 // ----------------------------------- | 84 // ----------------------------------- |
| 85 // Set transitioned map. | 85 // Set transitioned map. |
| 86 __ sw(a3, FieldMemOperand(a2, HeapObject::kMapOffset)); | 86 __ sw(a3, FieldMemOperand(a2, HeapObject::kMapOffset)); |
| 87 __ RecordWriteField(a2, | 87 __ RecordWriteField(a2, |
| 88 HeapObject::kMapOffset, | 88 HeapObject::kMapOffset, |
| 89 a3, | 89 a3, |
| 90 t5, | 90 t5, |
| 91 kRAHasNotBeenSaved, | 91 kRAHasNotBeenSaved, |
| 92 kDontSaveFPRegs, | 92 kDontSaveFPRegs, |
| 93 EMIT_REMEMBERED_SET, | 93 EMIT_REMEMBERED_SET, |
| 94 OMIT_SMI_CHECK); | 94 OMIT_SMI_CHECK); |
| 95 } | 95 } |
| 96 | 96 |
| 97 | 97 |
| 98 void ElementsTransitionGenerator::GenerateSmiOnlyToDouble( | 98 void ElementsTransitionGenerator::GenerateSmiToDouble( |
| 99 MacroAssembler* masm, Label* fail) { | 99 MacroAssembler* masm, Label* fail) { |
| 100 // ----------- S t a t e ------------- | 100 // ----------- S t a t e ------------- |
| 101 // -- a0 : value | 101 // -- a0 : value |
| 102 // -- a1 : key | 102 // -- a1 : key |
| 103 // -- a2 : receiver | 103 // -- a2 : receiver |
| 104 // -- ra : return address | 104 // -- ra : return address |
| 105 // -- a3 : target map, scratch for subsequent call | 105 // -- a3 : target map, scratch for subsequent call |
| 106 // -- t0 : scratch (elements) | 106 // -- t0 : scratch (elements) |
| 107 // ----------------------------------- | 107 // ----------------------------------- |
| 108 Label loop, entry, convert_hole, gc_required, only_change_map, done; | 108 Label loop, entry, convert_hole, gc_required, only_change_map, done; |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 __ Addu(at, string, index); | 444 __ Addu(at, string, index); |
| 445 __ lbu(result, MemOperand(at)); | 445 __ lbu(result, MemOperand(at)); |
| 446 __ bind(&done); | 446 __ bind(&done); |
| 447 } | 447 } |
| 448 | 448 |
| 449 #undef __ | 449 #undef __ |
| 450 | 450 |
| 451 } } // namespace v8::internal | 451 } } // namespace v8::internal |
| 452 | 452 |
| 453 #endif // V8_TARGET_ARCH_MIPS | 453 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |