| 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 // ----------- S t a t e ------------- | 228 // ----------- S t a t e ------------- |
| 229 // -- x1 : function | 229 // -- x1 : function |
| 230 // -- x3 : slot in feedback array | 230 // -- x3 : slot in feedback array |
| 231 // ----------------------------------- | 231 // ----------------------------------- |
| 232 Generate_DebugBreakCallHelper(masm, x1.Bit() | x3.Bit(), 0, x10); | 232 Generate_DebugBreakCallHelper(masm, x1.Bit() | x3.Bit(), 0, x10); |
| 233 } | 233 } |
| 234 | 234 |
| 235 | 235 |
| 236 void DebugCodegen::GenerateLoadICDebugBreak(MacroAssembler* masm) { | 236 void DebugCodegen::GenerateLoadICDebugBreak(MacroAssembler* masm) { |
| 237 // Calling convention for IC load (from ic-arm.cc). | 237 // Calling convention for IC load (from ic-arm.cc). |
| 238 Register receiver = LoadIC::ReceiverRegister(); | 238 // ----------- S t a t e ------------- |
| 239 Register name = LoadIC::NameRegister(); | 239 // -- x2 : name |
| 240 Generate_DebugBreakCallHelper(masm, receiver.Bit() | name.Bit(), 0, x10); | 240 // -- lr : return address |
| 241 // -- x0 : receiver |
| 242 // -- [sp] : receiver |
| 243 // ----------------------------------- |
| 244 // Registers x0 and x2 contain objects that need to be pushed on the |
| 245 // expression stack of the fake JS frame. |
| 246 Generate_DebugBreakCallHelper(masm, x0.Bit() | x2.Bit(), 0, x10); |
| 241 } | 247 } |
| 242 | 248 |
| 243 | 249 |
| 244 void DebugCodegen::GenerateStoreICDebugBreak(MacroAssembler* masm) { | 250 void DebugCodegen::GenerateStoreICDebugBreak(MacroAssembler* masm) { |
| 245 // Calling convention for IC store (from ic-arm.cc). | 251 // Calling convention for IC store (from ic-arm.cc). |
| 246 // ----------- S t a t e ------------- | 252 // ----------- S t a t e ------------- |
| 247 // -- x0 : value | 253 // -- x0 : value |
| 248 // -- x1 : receiver | 254 // -- x1 : receiver |
| 249 // -- x2 : name | 255 // -- x2 : name |
| 250 // -- lr : return address | 256 // -- lr : return address |
| 251 // ----------------------------------- | 257 // ----------------------------------- |
| 252 // Registers x0, x1, and x2 contain objects that need to be pushed on the | 258 // Registers x0, x1, and x2 contain objects that need to be pushed on the |
| 253 // expression stack of the fake JS frame. | 259 // expression stack of the fake JS frame. |
| 254 Generate_DebugBreakCallHelper(masm, x0.Bit() | x1.Bit() | x2.Bit(), 0, x10); | 260 Generate_DebugBreakCallHelper(masm, x0.Bit() | x1.Bit() | x2.Bit(), 0, x10); |
| 255 } | 261 } |
| 256 | 262 |
| 257 | 263 |
| 258 void DebugCodegen::GenerateKeyedLoadICDebugBreak(MacroAssembler* masm) { | 264 void DebugCodegen::GenerateKeyedLoadICDebugBreak(MacroAssembler* masm) { |
| 259 // Calling convention for keyed IC load (from ic-arm.cc). | 265 // ---------- S t a t e -------------- |
| 260 Register receiver = KeyedLoadIC::ReceiverRegister(); | 266 // -- lr : return address |
| 261 Register name = KeyedLoadIC::NameRegister(); | 267 // -- x0 : key |
| 262 Generate_DebugBreakCallHelper(masm, receiver.Bit() | name.Bit(), 0, x10); | 268 // -- x1 : receiver |
| 269 Generate_DebugBreakCallHelper(masm, x0.Bit() | x1.Bit(), 0, x10); |
| 263 } | 270 } |
| 264 | 271 |
| 265 | 272 |
| 266 void DebugCodegen::GenerateKeyedStoreICDebugBreak(MacroAssembler* masm) { | 273 void DebugCodegen::GenerateKeyedStoreICDebugBreak(MacroAssembler* masm) { |
| 267 // ---------- S t a t e -------------- | 274 // ---------- S t a t e -------------- |
| 268 // -- x0 : value | 275 // -- x0 : value |
| 269 // -- x1 : key | 276 // -- x1 : key |
| 270 // -- x2 : receiver | 277 // -- x2 : receiver |
| 271 // -- lr : return address | 278 // -- lr : return address |
| 272 Generate_DebugBreakCallHelper(masm, x0.Bit() | x1.Bit() | x2.Bit(), 0, x10); | 279 Generate_DebugBreakCallHelper(masm, x0.Bit() | x1.Bit() | x2.Bit(), 0, x10); |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 // Re-run JSFunction, x1 is function, cp is context. | 381 // Re-run JSFunction, x1 is function, cp is context. |
| 375 __ Br(scratch); | 382 __ Br(scratch); |
| 376 } | 383 } |
| 377 | 384 |
| 378 | 385 |
| 379 const bool LiveEdit::kFrameDropperSupported = true; | 386 const bool LiveEdit::kFrameDropperSupported = true; |
| 380 | 387 |
| 381 } } // namespace v8::internal | 388 } } // namespace v8::internal |
| 382 | 389 |
| 383 #endif // V8_TARGET_ARCH_ARM64 | 390 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |