OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/debug.h" | 10 #include "src/debug.h" |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 // ----------- S t a t e ------------- | 229 // ----------- S t a t e ------------- |
230 // -- x1 : function | 230 // -- x1 : function |
231 // -- x3 : slot in feedback array | 231 // -- x3 : slot in feedback array |
232 // ----------------------------------- | 232 // ----------------------------------- |
233 Generate_DebugBreakCallHelper(masm, x1.Bit() | x3.Bit(), 0, x10); | 233 Generate_DebugBreakCallHelper(masm, x1.Bit() | x3.Bit(), 0, x10); |
234 } | 234 } |
235 | 235 |
236 | 236 |
237 void DebugCodegen::GenerateLoadICDebugBreak(MacroAssembler* masm) { | 237 void DebugCodegen::GenerateLoadICDebugBreak(MacroAssembler* masm) { |
238 // Calling convention for IC load (from ic-arm.cc). | 238 // Calling convention for IC load (from ic-arm.cc). |
239 Register receiver = LoadIC::ReceiverRegister(); | 239 Register receiver = LoadConvention::ReceiverRegister(); |
240 Register name = LoadIC::NameRegister(); | 240 Register name = LoadConvention::NameRegister(); |
241 Generate_DebugBreakCallHelper(masm, receiver.Bit() | name.Bit(), 0, x10); | 241 Generate_DebugBreakCallHelper(masm, receiver.Bit() | name.Bit(), 0, x10); |
242 } | 242 } |
243 | 243 |
244 | 244 |
245 void DebugCodegen::GenerateStoreICDebugBreak(MacroAssembler* masm) { | 245 void DebugCodegen::GenerateStoreICDebugBreak(MacroAssembler* masm) { |
246 // Calling convention for IC store (from ic-arm64.cc). | 246 // Calling convention for IC store (from ic-arm64.cc). |
247 Register receiver = StoreIC::ReceiverRegister(); | 247 Register receiver = StoreConvention::ReceiverRegister(); |
248 Register name = StoreIC::NameRegister(); | 248 Register name = StoreConvention::NameRegister(); |
249 Register value = StoreIC::ValueRegister(); | 249 Register value = StoreConvention::ValueRegister(); |
250 Generate_DebugBreakCallHelper( | 250 Generate_DebugBreakCallHelper( |
251 masm, receiver.Bit() | name.Bit() | value.Bit(), 0, x10); | 251 masm, receiver.Bit() | name.Bit() | value.Bit(), 0, x10); |
252 } | 252 } |
253 | 253 |
254 | 254 |
255 void DebugCodegen::GenerateKeyedLoadICDebugBreak(MacroAssembler* masm) { | 255 void DebugCodegen::GenerateKeyedLoadICDebugBreak(MacroAssembler* masm) { |
256 // Calling convention for keyed IC load (from ic-arm.cc). | 256 // Calling convention for keyed IC load (from ic-arm.cc). |
257 GenerateLoadICDebugBreak(masm); | 257 GenerateLoadICDebugBreak(masm); |
258 } | 258 } |
259 | 259 |
260 | 260 |
261 void DebugCodegen::GenerateKeyedStoreICDebugBreak(MacroAssembler* masm) { | 261 void DebugCodegen::GenerateKeyedStoreICDebugBreak(MacroAssembler* masm) { |
262 // Calling convention for IC keyed store call (from ic-arm64.cc). | 262 // Calling convention for IC keyed store call (from ic-arm64.cc). |
263 Register receiver = KeyedStoreIC::ReceiverRegister(); | 263 Register receiver = StoreConvention::ReceiverRegister(); |
264 Register name = KeyedStoreIC::NameRegister(); | 264 Register name = StoreConvention::NameRegister(); |
265 Register value = KeyedStoreIC::ValueRegister(); | 265 Register value = StoreConvention::ValueRegister(); |
266 Generate_DebugBreakCallHelper( | 266 Generate_DebugBreakCallHelper( |
267 masm, receiver.Bit() | name.Bit() | value.Bit(), 0, x10); | 267 masm, receiver.Bit() | name.Bit() | value.Bit(), 0, x10); |
268 } | 268 } |
269 | 269 |
270 | 270 |
271 void DebugCodegen::GenerateCompareNilICDebugBreak(MacroAssembler* masm) { | 271 void DebugCodegen::GenerateCompareNilICDebugBreak(MacroAssembler* masm) { |
272 // Register state for CompareNil IC | 272 // Register state for CompareNil IC |
273 // ----------- S t a t e ------------- | 273 // ----------- S t a t e ------------- |
274 // -- r0 : value | 274 // -- r0 : value |
275 // ----------------------------------- | 275 // ----------------------------------- |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 // Re-run JSFunction, x1 is function, cp is context. | 369 // Re-run JSFunction, x1 is function, cp is context. |
370 __ Br(scratch); | 370 __ Br(scratch); |
371 } | 371 } |
372 | 372 |
373 | 373 |
374 const bool LiveEdit::kFrameDropperSupported = true; | 374 const bool LiveEdit::kFrameDropperSupported = true; |
375 | 375 |
376 } } // namespace v8::internal | 376 } } // namespace v8::internal |
377 | 377 |
378 #endif // V8_TARGET_ARCH_ARM64 | 378 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |