| 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 __ CallRuntime(Runtime::kFinalizeInstanceSize, 1); | 207 __ CallRuntime(Runtime::kFinalizeInstanceSize, 1); |
| 208 | 208 |
| 209 __ Pop(rdi); | 209 __ Pop(rdi); |
| 210 __ Pop(rax); | 210 __ Pop(rax); |
| 211 | 211 |
| 212 __ bind(&allocate); | 212 __ bind(&allocate); |
| 213 } | 213 } |
| 214 | 214 |
| 215 // Now allocate the JSObject on the heap. | 215 // Now allocate the JSObject on the heap. |
| 216 __ movzxbp(rdi, FieldOperand(rax, Map::kInstanceSizeOffset)); | 216 __ movzxbp(rdi, FieldOperand(rax, Map::kInstanceSizeOffset)); |
| 217 __ shl(rdi, Immediate(kPointerSizeLog2)); | 217 __ shlp(rdi, Immediate(kPointerSizeLog2)); |
| 218 if (create_memento) { | 218 if (create_memento) { |
| 219 __ addp(rdi, Immediate(AllocationMemento::kSize)); | 219 __ addp(rdi, Immediate(AllocationMemento::kSize)); |
| 220 } | 220 } |
| 221 // rdi: size of new object | 221 // rdi: size of new object |
| 222 __ Allocate(rdi, | 222 __ Allocate(rdi, |
| 223 rbx, | 223 rbx, |
| 224 rdi, | 224 rdi, |
| 225 no_reg, | 225 no_reg, |
| 226 &rt_call, | 226 &rt_call, |
| 227 NO_ALLOCATION_FLAGS); | 227 NO_ALLOCATION_FLAGS); |
| (...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1494 __ bind(&ok); | 1494 __ bind(&ok); |
| 1495 __ ret(0); | 1495 __ ret(0); |
| 1496 } | 1496 } |
| 1497 | 1497 |
| 1498 | 1498 |
| 1499 #undef __ | 1499 #undef __ |
| 1500 | 1500 |
| 1501 } } // namespace v8::internal | 1501 } } // namespace v8::internal |
| 1502 | 1502 |
| 1503 #endif // V8_TARGET_ARCH_X64 | 1503 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |