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/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 5369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5380 // Restore result register and cooked return address from the stack. | 5380 // Restore result register and cooked return address from the stack. |
5381 __ Pop(x10, result_register()); | 5381 __ Pop(x10, result_register()); |
5382 | 5382 |
5383 // Uncook the return address (see EnterFinallyBlock). | 5383 // Uncook the return address (see EnterFinallyBlock). |
5384 __ SmiUntag(x10); | 5384 __ SmiUntag(x10); |
5385 __ Add(x11, x10, Operand(masm_->CodeObject())); | 5385 __ Add(x11, x10, Operand(masm_->CodeObject())); |
5386 __ Br(x11); | 5386 __ Br(x11); |
5387 } | 5387 } |
5388 | 5388 |
5389 | 5389 |
| 5390 void FullCodeGenerator::EnterCatchBlock() { |
| 5391 DCHECK(!result_register().is(x10)); |
| 5392 ExternalReference pending_message_obj = |
| 5393 ExternalReference::address_of_pending_message_obj(isolate()); |
| 5394 __ LoadRoot(x10, Heap::kTheHoleValueRootIndex); |
| 5395 __ Mov(x13, pending_message_obj); |
| 5396 __ Str(x10, MemOperand(x13)); |
| 5397 } |
| 5398 |
| 5399 |
5390 #undef __ | 5400 #undef __ |
5391 | 5401 |
5392 | 5402 |
5393 void BackEdgeTable::PatchAt(Code* unoptimized_code, | 5403 void BackEdgeTable::PatchAt(Code* unoptimized_code, |
5394 Address pc, | 5404 Address pc, |
5395 BackEdgeState target_state, | 5405 BackEdgeState target_state, |
5396 Code* replacement_code) { | 5406 Code* replacement_code) { |
5397 // Turn the jump into a nop. | 5407 // Turn the jump into a nop. |
5398 Address branch_address = pc - 3 * kInstructionSize; | 5408 Address branch_address = pc - 3 * kInstructionSize; |
5399 PatchingAssembler patcher(branch_address, 1); | 5409 PatchingAssembler patcher(branch_address, 1); |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5481 } | 5491 } |
5482 } | 5492 } |
5483 | 5493 |
5484 return INTERRUPT; | 5494 return INTERRUPT; |
5485 } | 5495 } |
5486 | 5496 |
5487 | 5497 |
5488 } } // namespace v8::internal | 5498 } } // namespace v8::internal |
5489 | 5499 |
5490 #endif // V8_TARGET_ARCH_ARM64 | 5500 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |