| 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 5312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5323 | 5323 |
| 5324 // Store result register while executing finally block. | 5324 // Store result register while executing finally block. |
| 5325 __ push(r4); | 5325 __ push(r4); |
| 5326 | 5326 |
| 5327 // Store pending message while executing finally block. | 5327 // Store pending message while executing finally block. |
| 5328 ExternalReference pending_message_obj = | 5328 ExternalReference pending_message_obj = |
| 5329 ExternalReference::address_of_pending_message_obj(isolate()); | 5329 ExternalReference::address_of_pending_message_obj(isolate()); |
| 5330 __ mov(ip, Operand(pending_message_obj)); | 5330 __ mov(ip, Operand(pending_message_obj)); |
| 5331 __ LoadP(r4, MemOperand(ip)); | 5331 __ LoadP(r4, MemOperand(ip)); |
| 5332 __ push(r4); | 5332 __ push(r4); |
| 5333 | |
| 5334 ExternalReference has_pending_message = | |
| 5335 ExternalReference::address_of_has_pending_message(isolate()); | |
| 5336 __ mov(ip, Operand(has_pending_message)); | |
| 5337 __ lbz(r4, MemOperand(ip)); | |
| 5338 __ SmiTag(r4); | |
| 5339 __ push(r4); | |
| 5340 } | 5333 } |
| 5341 | 5334 |
| 5342 | 5335 |
| 5343 void FullCodeGenerator::ExitFinallyBlock() { | 5336 void FullCodeGenerator::ExitFinallyBlock() { |
| 5344 DCHECK(!result_register().is(r4)); | 5337 DCHECK(!result_register().is(r4)); |
| 5345 // Restore pending message from stack. | 5338 // Restore pending message from stack. |
| 5346 __ pop(r4); | 5339 __ pop(r4); |
| 5347 __ SmiUntag(r4); | |
| 5348 ExternalReference has_pending_message = | |
| 5349 ExternalReference::address_of_has_pending_message(isolate()); | |
| 5350 __ mov(ip, Operand(has_pending_message)); | |
| 5351 __ stb(r4, MemOperand(ip)); | |
| 5352 | |
| 5353 __ pop(r4); | |
| 5354 ExternalReference pending_message_obj = | 5340 ExternalReference pending_message_obj = |
| 5355 ExternalReference::address_of_pending_message_obj(isolate()); | 5341 ExternalReference::address_of_pending_message_obj(isolate()); |
| 5356 __ mov(ip, Operand(pending_message_obj)); | 5342 __ mov(ip, Operand(pending_message_obj)); |
| 5357 __ StoreP(r4, MemOperand(ip)); | 5343 __ StoreP(r4, MemOperand(ip)); |
| 5358 | 5344 |
| 5359 // Restore result register from stack. | 5345 // Restore result register from stack. |
| 5360 __ pop(r4); | 5346 __ pop(r4); |
| 5361 | 5347 |
| 5362 // Uncook return address and return. | 5348 // Uncook return address and return. |
| 5363 __ pop(result_register()); | 5349 __ pop(result_register()); |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5462 return ON_STACK_REPLACEMENT; | 5448 return ON_STACK_REPLACEMENT; |
| 5463 } | 5449 } |
| 5464 | 5450 |
| 5465 DCHECK(interrupt_address == | 5451 DCHECK(interrupt_address == |
| 5466 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5452 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5467 return OSR_AFTER_STACK_CHECK; | 5453 return OSR_AFTER_STACK_CHECK; |
| 5468 } | 5454 } |
| 5469 } | 5455 } |
| 5470 } // namespace v8::internal | 5456 } // namespace v8::internal |
| 5471 #endif // V8_TARGET_ARCH_PPC | 5457 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |