| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 // TODO(jbramley): Why can't this handle callee-saved registers? | 172 // TODO(jbramley): Why can't this handle callee-saved registers? |
| 173 ASSERT((~kCallerSaved.list() & object_regs) == 0); | 173 ASSERT((~kCallerSaved.list() & object_regs) == 0); |
| 174 ASSERT((~kCallerSaved.list() & non_object_regs) == 0); | 174 ASSERT((~kCallerSaved.list() & non_object_regs) == 0); |
| 175 ASSERT((object_regs & non_object_regs) == 0); | 175 ASSERT((object_regs & non_object_regs) == 0); |
| 176 ASSERT((scratch.Bit() & object_regs) == 0); | 176 ASSERT((scratch.Bit() & object_regs) == 0); |
| 177 ASSERT((scratch.Bit() & non_object_regs) == 0); | 177 ASSERT((scratch.Bit() & non_object_regs) == 0); |
| 178 ASSERT((masm->TmpList()->list() & (object_regs | non_object_regs)) == 0); | 178 ASSERT((masm->TmpList()->list() & (object_regs | non_object_regs)) == 0); |
| 179 STATIC_ASSERT(kSmiValueSize == 32); | 179 STATIC_ASSERT(kSmiValueSize == 32); |
| 180 | 180 |
| 181 CPURegList non_object_list = | 181 CPURegList non_object_list = |
| 182 CPURegList(CPURegister::kRegister, kXRegSize, non_object_regs); | 182 CPURegList(CPURegister::kRegister, kXRegSizeInBits, non_object_regs); |
| 183 while (!non_object_list.IsEmpty()) { | 183 while (!non_object_list.IsEmpty()) { |
| 184 // Store each non-object register as two SMIs. | 184 // Store each non-object register as two SMIs. |
| 185 Register reg = Register(non_object_list.PopLowestIndex()); | 185 Register reg = Register(non_object_list.PopLowestIndex()); |
| 186 __ Push(reg); | 186 __ Push(reg); |
| 187 __ Poke(wzr, 0); | 187 __ Poke(wzr, 0); |
| 188 __ Push(reg.W(), wzr); | 188 __ Push(reg.W(), wzr); |
| 189 // Stack: | 189 // Stack: |
| 190 // jssp[12]: reg[63:32] | 190 // jssp[12]: reg[63:32] |
| 191 // jssp[8]: 0x00000000 (SMI tag & padding) | 191 // jssp[8]: 0x00000000 (SMI tag & padding) |
| 192 // jssp[4]: reg[31:0] | 192 // jssp[4]: reg[31:0] |
| (...skipping 13 matching lines...) Expand all Loading... |
| 206 | 206 |
| 207 CEntryStub stub(1); | 207 CEntryStub stub(1); |
| 208 __ CallStub(&stub); | 208 __ CallStub(&stub); |
| 209 | 209 |
| 210 // Restore the register values from the expression stack. | 210 // Restore the register values from the expression stack. |
| 211 if (object_regs != 0) { | 211 if (object_regs != 0) { |
| 212 __ PopXRegList(object_regs); | 212 __ PopXRegList(object_regs); |
| 213 } | 213 } |
| 214 | 214 |
| 215 non_object_list = | 215 non_object_list = |
| 216 CPURegList(CPURegister::kRegister, kXRegSize, non_object_regs); | 216 CPURegList(CPURegister::kRegister, kXRegSizeInBits, non_object_regs); |
| 217 while (!non_object_list.IsEmpty()) { | 217 while (!non_object_list.IsEmpty()) { |
| 218 // Load each non-object register from two SMIs. | 218 // Load each non-object register from two SMIs. |
| 219 // Stack: | 219 // Stack: |
| 220 // jssp[12]: reg[63:32] | 220 // jssp[12]: reg[63:32] |
| 221 // jssp[8]: 0x00000000 (SMI tag & padding) | 221 // jssp[8]: 0x00000000 (SMI tag & padding) |
| 222 // jssp[4]: reg[31:0] | 222 // jssp[4]: reg[31:0] |
| 223 // jssp[0]: 0x00000000 (SMI tag & padding) | 223 // jssp[0]: 0x00000000 (SMI tag & padding) |
| 224 Register reg = Register(non_object_list.PopHighestIndex()); | 224 Register reg = Register(non_object_list.PopHighestIndex()); |
| 225 __ Pop(scratch, reg); | 225 __ Pop(scratch, reg); |
| 226 __ Bfxil(reg, scratch, 32, 32); | 226 __ Bfxil(reg, scratch, 32, 32); |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 masm->Abort(kLiveEditFrameDroppingIsNotSupportedOnA64); | 384 masm->Abort(kLiveEditFrameDroppingIsNotSupportedOnA64); |
| 385 } | 385 } |
| 386 | 386 |
| 387 const bool Debug::kFrameDropperSupported = false; | 387 const bool Debug::kFrameDropperSupported = false; |
| 388 | 388 |
| 389 #endif // ENABLE_DEBUGGER_SUPPORT | 389 #endif // ENABLE_DEBUGGER_SUPPORT |
| 390 | 390 |
| 391 } } // namespace v8::internal | 391 } } // namespace v8::internal |
| 392 | 392 |
| 393 #endif // V8_TARGET_ARCH_A64 | 393 #endif // V8_TARGET_ARCH_A64 |
| OLD | NEW |