| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 if (offset < 0) { | 97 if (offset < 0) { |
| 98 offset += map->instance_size(); | 98 offset += map->instance_size(); |
| 99 __ mov(r2, r1); // Copy receiver for write barrier. | 99 __ mov(r2, r1); // Copy receiver for write barrier. |
| 100 } else { | 100 } else { |
| 101 offset += FixedArray::kHeaderSize; | 101 offset += FixedArray::kHeaderSize; |
| 102 __ ldr(r2, FieldMemOperand(r1, JSObject::kPropertiesOffset)); | 102 __ ldr(r2, FieldMemOperand(r1, JSObject::kPropertiesOffset)); |
| 103 } | 103 } |
| 104 // Perform the store. | 104 // Perform the store. |
| 105 __ str(r0, FieldMemOperand(r2, offset)); | 105 __ str(r0, FieldMemOperand(r2, offset)); |
| 106 __ mov(r3, Operand(offset)); | 106 __ mov(r3, Operand(offset)); |
| 107 __ RecordWrite(r2, r3, ip); | 107 __ RecordWrite(r2, r3, r4); |
| 108 } | 108 } |
| 109 | 109 |
| 110 | 110 |
| 111 void FastCodeGenerator::Generate(CompilationInfo* compilation_info) { | 111 void FastCodeGenerator::Generate(CompilationInfo* compilation_info) { |
| 112 ASSERT(info_ == NULL); | 112 ASSERT(info_ == NULL); |
| 113 info_ = compilation_info; | 113 info_ = compilation_info; |
| 114 | 114 |
| 115 // Save the caller's frame pointer and set up our own. | 115 // Save the caller's frame pointer and set up our own. |
| 116 Comment prologue_cmnt(masm(), ";; Prologue"); | 116 Comment prologue_cmnt(masm(), ";; Prologue"); |
| 117 __ stm(db_w, sp, r1.bit() | cp.bit() | fp.bit() | lr.bit()); | 117 __ stm(db_w, sp, r1.bit() | cp.bit() | fp.bit() | lr.bit()); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 139 __ Jump(lr); | 139 __ Jump(lr); |
| 140 | 140 |
| 141 __ bind(&bailout_); | 141 __ bind(&bailout_); |
| 142 } | 142 } |
| 143 | 143 |
| 144 | 144 |
| 145 #undef __ | 145 #undef __ |
| 146 | 146 |
| 147 | 147 |
| 148 } } // namespace v8::internal | 148 } } // namespace v8::internal |
| OLD | NEW |