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 5319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 5333 |
5334 ExternalReference has_pending_message = | 5334 ExternalReference has_pending_message = |
5335 ExternalReference::address_of_has_pending_message(isolate()); | 5335 ExternalReference::address_of_has_pending_message(isolate()); |
5336 __ mov(ip, Operand(has_pending_message)); | 5336 __ mov(ip, Operand(has_pending_message)); |
5337 __ lbz(r4, MemOperand(ip)); | 5337 __ lbz(r4, MemOperand(ip)); |
5338 __ SmiTag(r4); | 5338 __ SmiTag(r4); |
5339 __ push(r4); | 5339 __ push(r4); |
5340 | |
5341 ExternalReference pending_message_script = | |
5342 ExternalReference::address_of_pending_message_script(isolate()); | |
5343 __ mov(ip, Operand(pending_message_script)); | |
5344 __ LoadP(r4, MemOperand(ip)); | |
5345 __ push(r4); | |
5346 } | 5340 } |
5347 | 5341 |
5348 | 5342 |
5349 void FullCodeGenerator::ExitFinallyBlock() { | 5343 void FullCodeGenerator::ExitFinallyBlock() { |
5350 DCHECK(!result_register().is(r4)); | 5344 DCHECK(!result_register().is(r4)); |
5351 // Restore pending message from stack. | 5345 // Restore pending message from stack. |
5352 __ pop(r4); | 5346 __ pop(r4); |
5353 ExternalReference pending_message_script = | |
5354 ExternalReference::address_of_pending_message_script(isolate()); | |
5355 __ mov(ip, Operand(pending_message_script)); | |
5356 __ StoreP(r4, MemOperand(ip)); | |
5357 | |
5358 __ pop(r4); | |
5359 __ SmiUntag(r4); | 5347 __ SmiUntag(r4); |
5360 ExternalReference has_pending_message = | 5348 ExternalReference has_pending_message = |
5361 ExternalReference::address_of_has_pending_message(isolate()); | 5349 ExternalReference::address_of_has_pending_message(isolate()); |
5362 __ mov(ip, Operand(has_pending_message)); | 5350 __ mov(ip, Operand(has_pending_message)); |
5363 __ stb(r4, MemOperand(ip)); | 5351 __ stb(r4, MemOperand(ip)); |
5364 | 5352 |
5365 __ pop(r4); | 5353 __ pop(r4); |
5366 ExternalReference pending_message_obj = | 5354 ExternalReference pending_message_obj = |
5367 ExternalReference::address_of_pending_message_obj(isolate()); | 5355 ExternalReference::address_of_pending_message_obj(isolate()); |
5368 __ mov(ip, Operand(pending_message_obj)); | 5356 __ mov(ip, Operand(pending_message_obj)); |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5474 return ON_STACK_REPLACEMENT; | 5462 return ON_STACK_REPLACEMENT; |
5475 } | 5463 } |
5476 | 5464 |
5477 DCHECK(interrupt_address == | 5465 DCHECK(interrupt_address == |
5478 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5466 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5479 return OSR_AFTER_STACK_CHECK; | 5467 return OSR_AFTER_STACK_CHECK; |
5480 } | 5468 } |
5481 } | 5469 } |
5482 } // namespace v8::internal | 5470 } // namespace v8::internal |
5483 #endif // V8_TARGET_ARCH_PPC | 5471 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |