| 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 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1499 __ CmpSmiLiteral(index, Smi::FromInt(1), r0); | 1499 __ CmpSmiLiteral(index, Smi::FromInt(1), r0); |
| 1500 __ bgt(&loop_top); | 1500 __ bgt(&loop_top); |
| 1501 | 1501 |
| 1502 // We found neither literals nor code. | 1502 // We found neither literals nor code. |
| 1503 __ b(&gotta_call_runtime); | 1503 __ b(&gotta_call_runtime); |
| 1504 | 1504 |
| 1505 __ bind(&try_shared); | 1505 __ bind(&try_shared); |
| 1506 __ LoadP(entry, | 1506 __ LoadP(entry, |
| 1507 FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset)); | 1507 FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset)); |
| 1508 // Is the shared function marked for optimization? | 1508 // Is the shared function marked for optimization? |
| 1509 __ LoadlB(temp, FieldMemOperand( | 1509 __ LoadlB(temp, |
| 1510 entry, | 1510 FieldMemOperand(entry, |
| 1511 SharedFunctionInfo::kWasMarkedForOptimizationByteOffset)); | 1511 SharedFunctionInfo::kWasMarkedForTierUpByteOffset)); |
| 1512 __ TestBit(temp, SharedFunctionInfo::kWasMarkedForOptimizationBitWithinByte, | 1512 __ TestBit(temp, SharedFunctionInfo::kWasMarkedForTierUpBitWithinByte, r0); |
| 1513 r0); | |
| 1514 __ bne(&gotta_call_runtime); | 1513 __ bne(&gotta_call_runtime); |
| 1515 // Is the full code valid? | 1514 // Is the full code valid? |
| 1516 __ LoadP(entry, FieldMemOperand(entry, SharedFunctionInfo::kCodeOffset)); | 1515 __ LoadP(entry, FieldMemOperand(entry, SharedFunctionInfo::kCodeOffset)); |
| 1517 __ LoadlW(r7, FieldMemOperand(entry, Code::kFlagsOffset)); | 1516 __ LoadlW(r7, FieldMemOperand(entry, Code::kFlagsOffset)); |
| 1518 __ DecodeField<Code::KindField>(r7); | 1517 __ DecodeField<Code::KindField>(r7); |
| 1519 __ CmpP(r7, Operand(Code::BUILTIN)); | 1518 __ CmpP(r7, Operand(Code::BUILTIN)); |
| 1520 __ beq(&gotta_call_runtime); | 1519 __ beq(&gotta_call_runtime); |
| 1521 // Yes, install the full code. | 1520 // Yes, install the full code. |
| 1522 __ AddP(entry, entry, Operand(Code::kHeaderSize - kHeapObjectTag)); | 1521 __ AddP(entry, entry, Operand(Code::kHeaderSize - kHeapObjectTag)); |
| 1523 __ StoreP(entry, FieldMemOperand(closure, JSFunction::kCodeEntryOffset), r0); | 1522 __ StoreP(entry, FieldMemOperand(closure, JSFunction::kCodeEntryOffset), r0); |
| (...skipping 1490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3014 __ bkpt(0); | 3013 __ bkpt(0); |
| 3015 } | 3014 } |
| 3016 } | 3015 } |
| 3017 | 3016 |
| 3018 #undef __ | 3017 #undef __ |
| 3019 | 3018 |
| 3020 } // namespace internal | 3019 } // namespace internal |
| 3021 } // namespace v8 | 3020 } // namespace v8 |
| 3022 | 3021 |
| 3023 #endif // V8_TARGET_ARCH_S390 | 3022 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |