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_S390 | 5 #if V8_TARGET_ARCH_S390 |
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 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1396 // Compute the target address = code_obj + header_size + osr_offset | 1396 // Compute the target address = code_obj + header_size + osr_offset |
1397 // <entry_addr> = <code_obj> + #header_size + <osr_offset> | 1397 // <entry_addr> = <code_obj> + #header_size + <osr_offset> |
1398 __ AddP(r2, r3); | 1398 __ AddP(r2, r3); |
1399 __ AddP(r0, r2, Operand(Code::kHeaderSize - kHeapObjectTag)); | 1399 __ AddP(r0, r2, Operand(Code::kHeaderSize - kHeapObjectTag)); |
1400 __ LoadRR(r14, r0); | 1400 __ LoadRR(r14, r0); |
1401 | 1401 |
1402 // And "return" to the OSR entry point of the function. | 1402 // And "return" to the OSR entry point of the function. |
1403 __ Ret(); | 1403 __ Ret(); |
1404 } | 1404 } |
1405 | 1405 |
1406 void Builtins::Generate_OsrAfterStackCheck(MacroAssembler* masm) { | |
1407 // We check the stack limit as indicator that recompilation might be done. | |
1408 Label ok; | |
1409 __ CmpLogicalP(sp, RootMemOperand(Heap::kStackLimitRootIndex)); | |
1410 __ bge(&ok, Label::kNear); | |
1411 { | |
1412 FrameScope scope(masm, StackFrame::INTERNAL); | |
1413 __ CallRuntime(Runtime::kStackGuard); | |
1414 } | |
1415 __ Jump(masm->isolate()->builtins()->OnStackReplacement(), | |
1416 RelocInfo::CODE_TARGET); | |
1417 | |
1418 __ bind(&ok); | |
1419 __ Ret(); | |
1420 } | |
1421 | |
1422 // static | 1406 // static |
1423 void Builtins::Generate_DatePrototype_GetField(MacroAssembler* masm, | 1407 void Builtins::Generate_DatePrototype_GetField(MacroAssembler* masm, |
1424 int field_index) { | 1408 int field_index) { |
1425 // ----------- S t a t e ------------- | 1409 // ----------- S t a t e ------------- |
1426 // -- lr : return address | 1410 // -- lr : return address |
1427 // -- sp[0] : receiver | 1411 // -- sp[0] : receiver |
1428 // ----------------------------------- | 1412 // ----------------------------------- |
1429 | 1413 |
1430 // 1. Pop receiver into r2 and check that it's actually a JSDate object. | 1414 // 1. Pop receiver into r2 and check that it's actually a JSDate object. |
1431 Label receiver_not_date; | 1415 Label receiver_not_date; |
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2595 __ bkpt(0); | 2579 __ bkpt(0); |
2596 } | 2580 } |
2597 } | 2581 } |
2598 | 2582 |
2599 #undef __ | 2583 #undef __ |
2600 | 2584 |
2601 } // namespace internal | 2585 } // namespace internal |
2602 } // namespace v8 | 2586 } // namespace v8 |
2603 | 2587 |
2604 #endif // V8_TARGET_ARCH_S390 | 2588 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |