OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
8 | 8 |
9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
10 // | 10 // |
(...skipping 5320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5331 __ li(at, Operand(pending_message_obj)); | 5331 __ li(at, Operand(pending_message_obj)); |
5332 __ ld(a1, MemOperand(at)); | 5332 __ ld(a1, MemOperand(at)); |
5333 __ push(a1); | 5333 __ push(a1); |
5334 | 5334 |
5335 ExternalReference has_pending_message = | 5335 ExternalReference has_pending_message = |
5336 ExternalReference::address_of_has_pending_message(isolate()); | 5336 ExternalReference::address_of_has_pending_message(isolate()); |
5337 __ li(at, Operand(has_pending_message)); | 5337 __ li(at, Operand(has_pending_message)); |
5338 __ ld(a1, MemOperand(at)); | 5338 __ ld(a1, MemOperand(at)); |
5339 __ SmiTag(a1); | 5339 __ SmiTag(a1); |
5340 __ push(a1); | 5340 __ push(a1); |
5341 | |
5342 ExternalReference pending_message_script = | |
5343 ExternalReference::address_of_pending_message_script(isolate()); | |
5344 __ li(at, Operand(pending_message_script)); | |
5345 __ ld(a1, MemOperand(at)); | |
5346 __ push(a1); | |
5347 } | 5341 } |
5348 | 5342 |
5349 | 5343 |
5350 void FullCodeGenerator::ExitFinallyBlock() { | 5344 void FullCodeGenerator::ExitFinallyBlock() { |
5351 DCHECK(!result_register().is(a1)); | 5345 DCHECK(!result_register().is(a1)); |
5352 // Restore pending message from stack. | 5346 // Restore pending message from stack. |
5353 __ pop(a1); | 5347 __ pop(a1); |
5354 ExternalReference pending_message_script = | |
5355 ExternalReference::address_of_pending_message_script(isolate()); | |
5356 __ li(at, Operand(pending_message_script)); | |
5357 __ sd(a1, MemOperand(at)); | |
5358 | |
5359 __ pop(a1); | |
5360 __ SmiUntag(a1); | 5348 __ SmiUntag(a1); |
5361 ExternalReference has_pending_message = | 5349 ExternalReference has_pending_message = |
5362 ExternalReference::address_of_has_pending_message(isolate()); | 5350 ExternalReference::address_of_has_pending_message(isolate()); |
5363 __ li(at, Operand(has_pending_message)); | 5351 __ li(at, Operand(has_pending_message)); |
5364 __ sd(a1, MemOperand(at)); | 5352 __ sd(a1, MemOperand(at)); |
5365 | 5353 |
5366 __ pop(a1); | 5354 __ pop(a1); |
5367 ExternalReference pending_message_obj = | 5355 ExternalReference pending_message_obj = |
5368 ExternalReference::address_of_pending_message_obj(isolate()); | 5356 ExternalReference::address_of_pending_message_obj(isolate()); |
5369 __ li(at, Operand(pending_message_obj)); | 5357 __ li(at, Operand(pending_message_obj)); |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5488 Assembler::target_address_at(pc_immediate_load_address)) == | 5476 Assembler::target_address_at(pc_immediate_load_address)) == |
5489 reinterpret_cast<uint64_t>( | 5477 reinterpret_cast<uint64_t>( |
5490 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5478 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5491 return OSR_AFTER_STACK_CHECK; | 5479 return OSR_AFTER_STACK_CHECK; |
5492 } | 5480 } |
5493 | 5481 |
5494 | 5482 |
5495 } } // namespace v8::internal | 5483 } } // namespace v8::internal |
5496 | 5484 |
5497 #endif // V8_TARGET_ARCH_MIPS64 | 5485 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |