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 #if V8_TARGET_ARCH_PPC | 5 #if V8_TARGET_ARCH_PPC |
6 | 6 |
7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
(...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1447 // Compute the target address = code start + osr_offset | 1447 // Compute the target address = code start + osr_offset |
1448 __ add(r0, r3, r4); | 1448 __ add(r0, r3, r4); |
1449 | 1449 |
1450 // And "return" to the OSR entry point of the function. | 1450 // And "return" to the OSR entry point of the function. |
1451 __ mtlr(r0); | 1451 __ mtlr(r0); |
1452 __ blr(); | 1452 __ blr(); |
1453 } | 1453 } |
1454 } | 1454 } |
1455 | 1455 |
1456 | 1456 |
1457 void Builtins::Generate_OsrAfterStackCheck(MacroAssembler* masm) { | |
1458 // We check the stack limit as indicator that recompilation might be done. | |
1459 Label ok; | |
1460 __ LoadRoot(ip, Heap::kStackLimitRootIndex); | |
1461 __ cmpl(sp, ip); | |
1462 __ bge(&ok); | |
1463 { | |
1464 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); | |
1465 __ CallRuntime(Runtime::kStackGuard); | |
1466 } | |
1467 __ Jump(masm->isolate()->builtins()->OnStackReplacement(), | |
1468 RelocInfo::CODE_TARGET); | |
1469 | |
1470 __ bind(&ok); | |
1471 __ Ret(); | |
1472 } | |
1473 | |
1474 | |
1475 // static | 1457 // static |
1476 void Builtins::Generate_DatePrototype_GetField(MacroAssembler* masm, | 1458 void Builtins::Generate_DatePrototype_GetField(MacroAssembler* masm, |
1477 int field_index) { | 1459 int field_index) { |
1478 // ----------- S t a t e ------------- | 1460 // ----------- S t a t e ------------- |
1479 // -- lr : return address | 1461 // -- lr : return address |
1480 // -- sp[0] : receiver | 1462 // -- sp[0] : receiver |
1481 // ----------------------------------- | 1463 // ----------------------------------- |
1482 | 1464 |
1483 // 1. Pop receiver into r3 and check that it's actually a JSDate object. | 1465 // 1. Pop receiver into r3 and check that it's actually a JSDate object. |
1484 Label receiver_not_date; | 1466 Label receiver_not_date; |
(...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2651 __ bkpt(0); | 2633 __ bkpt(0); |
2652 } | 2634 } |
2653 } | 2635 } |
2654 | 2636 |
2655 | 2637 |
2656 #undef __ | 2638 #undef __ |
2657 } // namespace internal | 2639 } // namespace internal |
2658 } // namespace v8 | 2640 } // namespace v8 |
2659 | 2641 |
2660 #endif // V8_TARGET_ARCH_PPC | 2642 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |