| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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((ip0.Bit() & (object_regs | non_object_regs)) == 0); | 178 ASSERT((ip0.Bit() & (object_regs | non_object_regs)) == 0); |
| 179 ASSERT((ip1.Bit() & (object_regs | non_object_regs)) == 0); | 179 ASSERT((ip1.Bit() & (object_regs | non_object_regs)) == 0); |
| 180 STATIC_ASSERT(kSmiValueSize == 32); | 180 STATIC_ASSERT(kSmiValueSize == 32); |
| 181 | 181 |
| 182 CPURegList non_object_list = | 182 CPURegList non_object_list = |
| 183 CPURegList(CPURegister::kRegister, kXRegSize, non_object_regs); | 183 CPURegList(CPURegister::kRegister, kXRegSize, non_object_regs); |
| 184 while (!non_object_list.IsEmpty()) { | 184 while (!non_object_list.IsEmpty()) { |
| 185 // Store each non-object register as two SMIs. | 185 // Store each non-object register as two SMIs. |
| 186 Register reg(non_object_list.PopLowestIndex()); | 186 Register reg = Register(non_object_list.PopLowestIndex()); |
| 187 __ Push(reg); | 187 __ Push(reg); |
| 188 __ Poke(wzr, 0); | 188 __ Poke(wzr, 0); |
| 189 __ Push(reg.W(), wzr); | 189 __ Push(reg.W(), wzr); |
| 190 // Stack: | 190 // Stack: |
| 191 // jssp[12]: reg[63:32] | 191 // jssp[12]: reg[63:32] |
| 192 // jssp[8]: 0x00000000 (SMI tag & padding) | 192 // jssp[8]: 0x00000000 (SMI tag & padding) |
| 193 // jssp[4]: reg[31:0] | 193 // jssp[4]: reg[31:0] |
| 194 // jssp[0]: 0x00000000 (SMI tag & padding) | 194 // jssp[0]: 0x00000000 (SMI tag & padding) |
| 195 STATIC_ASSERT((kSmiTag == 0) && (kSmiShift == 32)); | 195 STATIC_ASSERT((kSmiTag == 0) && (kSmiShift == 32)); |
| 196 } | 196 } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 215 | 215 |
| 216 non_object_list = | 216 non_object_list = |
| 217 CPURegList(CPURegister::kRegister, kXRegSize, non_object_regs); | 217 CPURegList(CPURegister::kRegister, kXRegSize, non_object_regs); |
| 218 while (!non_object_list.IsEmpty()) { | 218 while (!non_object_list.IsEmpty()) { |
| 219 // Load each non-object register from two SMIs. | 219 // Load each non-object register from two SMIs. |
| 220 // Stack: | 220 // Stack: |
| 221 // jssp[12]: reg[63:32] | 221 // jssp[12]: reg[63:32] |
| 222 // jssp[8]: 0x00000000 (SMI tag & padding) | 222 // jssp[8]: 0x00000000 (SMI tag & padding) |
| 223 // jssp[4]: reg[31:0] | 223 // jssp[4]: reg[31:0] |
| 224 // jssp[0]: 0x00000000 (SMI tag & padding) | 224 // jssp[0]: 0x00000000 (SMI tag & padding) |
| 225 Register reg(non_object_list.PopHighestIndex()); | 225 Register reg = Register(non_object_list.PopHighestIndex()); |
| 226 __ Pop(scratch, reg); | 226 __ Pop(scratch, reg); |
| 227 __ Bfxil(reg, scratch, 32, 32); | 227 __ Bfxil(reg, scratch, 32, 32); |
| 228 } | 228 } |
| 229 | 229 |
| 230 // Leave the internal frame. | 230 // Leave the internal frame. |
| 231 } | 231 } |
| 232 | 232 |
| 233 // Now that the break point has been handled, resume normal execution by | 233 // Now that the break point has been handled, resume normal execution by |
| 234 // jumping to the target address intended by the caller and that was | 234 // jumping to the target address intended by the caller and that was |
| 235 // overwritten by the address of DebugBreakXXX. | 235 // overwritten by the address of DebugBreakXXX. |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 masm->Abort(kLiveEditFrameDroppingIsNotSupportedOnA64); | 382 masm->Abort(kLiveEditFrameDroppingIsNotSupportedOnA64); |
| 383 } | 383 } |
| 384 | 384 |
| 385 const bool Debug::kFrameDropperSupported = false; | 385 const bool Debug::kFrameDropperSupported = false; |
| 386 | 386 |
| 387 #endif // ENABLE_DEBUGGER_SUPPORT | 387 #endif // ENABLE_DEBUGGER_SUPPORT |
| 388 | 388 |
| 389 } } // namespace v8::internal | 389 } } // namespace v8::internal |
| 390 | 390 |
| 391 #endif // V8_TARGET_ARCH_A64 | 391 #endif // V8_TARGET_ARCH_A64 |
| OLD | NEW |