Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: src/a64/debug-a64.cc

Issue 143493006: A64: Eliminate static initializers (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: updates Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/a64/constants-a64.h ('k') | src/a64/frames-a64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « src/a64/constants-a64.h ('k') | src/a64/frames-a64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698