OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 7 #if V8_TARGET_ARCH_PPC |
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 // Uncook return address and return. | 5380 // Uncook return address and return. |
5381 __ pop(result_register()); | 5381 __ pop(result_register()); |
5382 __ SmiUntag(r4); | 5382 __ SmiUntag(r4); |
5383 __ mov(ip, Operand(masm_->CodeObject())); | 5383 __ mov(ip, Operand(masm_->CodeObject())); |
5384 __ add(ip, ip, r4); | 5384 __ add(ip, ip, r4); |
5385 __ mtctr(ip); | 5385 __ mtctr(ip); |
5386 __ bctr(); | 5386 __ bctr(); |
5387 } | 5387 } |
5388 | 5388 |
5389 | 5389 |
| 5390 void FullCodeGenerator::EnterCatchBlock() { |
| 5391 DCHECK(!result_register().is(r4)); |
| 5392 ExternalReference pending_message_obj = |
| 5393 ExternalReference::address_of_pending_message_obj(isolate()); |
| 5394 __ LoadRoot(r4, Heap::kTheHoleValueRootIndex); |
| 5395 __ mov(ip, Operand(pending_message_obj)); |
| 5396 __ StoreP(r4, MemOperand(ip)); |
| 5397 } |
| 5398 |
| 5399 |
5390 #undef __ | 5400 #undef __ |
5391 | 5401 |
5392 | 5402 |
5393 void BackEdgeTable::PatchAt(Code* unoptimized_code, Address pc, | 5403 void BackEdgeTable::PatchAt(Code* unoptimized_code, Address pc, |
5394 BackEdgeState target_state, | 5404 BackEdgeState target_state, |
5395 Code* replacement_code) { | 5405 Code* replacement_code) { |
5396 Address mov_address = Assembler::target_address_from_return_address(pc); | 5406 Address mov_address = Assembler::target_address_from_return_address(pc); |
5397 Address cmp_address = mov_address - 2 * Assembler::kInstrSize; | 5407 Address cmp_address = mov_address - 2 * Assembler::kInstrSize; |
5398 CodePatcher patcher(cmp_address, 1); | 5408 CodePatcher patcher(cmp_address, 1); |
5399 | 5409 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5454 return ON_STACK_REPLACEMENT; | 5464 return ON_STACK_REPLACEMENT; |
5455 } | 5465 } |
5456 | 5466 |
5457 DCHECK(interrupt_address == | 5467 DCHECK(interrupt_address == |
5458 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5468 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5459 return OSR_AFTER_STACK_CHECK; | 5469 return OSR_AFTER_STACK_CHECK; |
5460 } | 5470 } |
5461 } | 5471 } |
5462 } // namespace v8::internal | 5472 } // namespace v8::internal |
5463 #endif // V8_TARGET_ARCH_PPC | 5473 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |