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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // ------------------------------------------------------------------------- | 73 // ------------------------------------------------------------------------- |
74 // Code generators | 74 // Code generators |
75 | 75 |
76 void ElementsTransitionGenerator::GenerateSmiOnlyToObject( | 76 void ElementsTransitionGenerator::GenerateMapChangeElementTransition( |
77 MacroAssembler* masm) { | 77 MacroAssembler* masm) { |
78 // ----------- S t a t e ------------- | 78 // ----------- S t a t e ------------- |
79 // -- r0 : value | 79 // -- r0 : value |
80 // -- r1 : key | 80 // -- r1 : key |
81 // -- r2 : receiver | 81 // -- r2 : receiver |
82 // -- lr : return address | 82 // -- lr : return address |
83 // -- r3 : target map, scratch for subsequent call | 83 // -- r3 : target map, scratch for subsequent call |
84 // -- r4 : scratch (elements) | 84 // -- r4 : scratch (elements) |
85 // ----------------------------------- | 85 // ----------------------------------- |
86 // Set transitioned map. | 86 // Set transitioned map. |
87 __ str(r3, FieldMemOperand(r2, HeapObject::kMapOffset)); | 87 __ str(r3, FieldMemOperand(r2, HeapObject::kMapOffset)); |
88 __ RecordWriteField(r2, | 88 __ RecordWriteField(r2, |
89 HeapObject::kMapOffset, | 89 HeapObject::kMapOffset, |
90 r3, | 90 r3, |
91 r9, | 91 r9, |
92 kLRHasNotBeenSaved, | 92 kLRHasNotBeenSaved, |
93 kDontSaveFPRegs, | 93 kDontSaveFPRegs, |
94 EMIT_REMEMBERED_SET, | 94 EMIT_REMEMBERED_SET, |
95 OMIT_SMI_CHECK); | 95 OMIT_SMI_CHECK); |
96 } | 96 } |
97 | 97 |
98 | 98 |
99 void ElementsTransitionGenerator::GenerateSmiOnlyToDouble( | 99 void ElementsTransitionGenerator::GenerateSmiToDouble( |
100 MacroAssembler* masm, Label* fail) { | 100 MacroAssembler* masm, Label* fail) { |
101 // ----------- S t a t e ------------- | 101 // ----------- S t a t e ------------- |
102 // -- r0 : value | 102 // -- r0 : value |
103 // -- r1 : key | 103 // -- r1 : key |
104 // -- r2 : receiver | 104 // -- r2 : receiver |
105 // -- lr : return address | 105 // -- lr : return address |
106 // -- r3 : target map, scratch for subsequent call | 106 // -- r3 : target map, scratch for subsequent call |
107 // -- r4 : scratch (elements) | 107 // -- r4 : scratch (elements) |
108 // ----------------------------------- | 108 // ----------------------------------- |
109 Label loop, entry, convert_hole, gc_required, only_change_map, done; | 109 Label loop, entry, convert_hole, gc_required, only_change_map, done; |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 // Ascii string. | 429 // Ascii string. |
430 __ ldrb(result, MemOperand(string, index)); | 430 __ ldrb(result, MemOperand(string, index)); |
431 __ bind(&done); | 431 __ bind(&done); |
432 } | 432 } |
433 | 433 |
434 #undef __ | 434 #undef __ |
435 | 435 |
436 } } // namespace v8::internal | 436 } } // namespace v8::internal |
437 | 437 |
438 #endif // V8_TARGET_ARCH_ARM | 438 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |