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