| 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 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1388 Register array_pointer = r7; | 1388 Register array_pointer = r7; |
| 1389 | 1389 |
| 1390 // Does the native context match? | 1390 // Does the native context match? |
| 1391 __ SmiToPtrArrayOffset(array_pointer, index); | 1391 __ SmiToPtrArrayOffset(array_pointer, index); |
| 1392 __ AddP(array_pointer, map, array_pointer); | 1392 __ AddP(array_pointer, map, array_pointer); |
| 1393 __ LoadP(temp, FieldMemOperand(array_pointer, | 1393 __ LoadP(temp, FieldMemOperand(array_pointer, |
| 1394 SharedFunctionInfo::kOffsetToPreviousContext)); | 1394 SharedFunctionInfo::kOffsetToPreviousContext)); |
| 1395 __ LoadP(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); | 1395 __ LoadP(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); |
| 1396 __ CmpP(temp, native_context); | 1396 __ CmpP(temp, native_context); |
| 1397 __ bne(&loop_bottom, Label::kNear); | 1397 __ bne(&loop_bottom, Label::kNear); |
| 1398 // OSR id set to none? | |
| 1399 __ LoadP(temp, | |
| 1400 FieldMemOperand(array_pointer, | |
| 1401 SharedFunctionInfo::kOffsetToPreviousOsrAstId)); | |
| 1402 const int bailout_id = BailoutId::None().ToInt(); | |
| 1403 __ CmpSmiLiteral(temp, Smi::FromInt(bailout_id), r0); | |
| 1404 __ bne(&loop_bottom, Label::kNear); | |
| 1405 // Literals available? | 1398 // Literals available? |
| 1406 __ LoadP(temp, | 1399 __ LoadP(temp, |
| 1407 FieldMemOperand(array_pointer, | 1400 FieldMemOperand(array_pointer, |
| 1408 SharedFunctionInfo::kOffsetToPreviousLiterals)); | 1401 SharedFunctionInfo::kOffsetToPreviousLiterals)); |
| 1409 __ LoadP(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); | 1402 __ LoadP(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); |
| 1410 __ JumpIfSmi(temp, &gotta_call_runtime); | 1403 __ JumpIfSmi(temp, &gotta_call_runtime); |
| 1411 | 1404 |
| 1412 // Save the literals in the closure. | 1405 // Save the literals in the closure. |
| 1413 __ StoreP(temp, FieldMemOperand(closure, JSFunction::kLiteralsOffset), r0); | 1406 __ StoreP(temp, FieldMemOperand(closure, JSFunction::kLiteralsOffset), r0); |
| 1414 __ RecordWriteField(closure, JSFunction::kLiteralsOffset, temp, r6, | 1407 __ RecordWriteField(closure, JSFunction::kLiteralsOffset, temp, r6, |
| (...skipping 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2965 __ bkpt(0); | 2958 __ bkpt(0); |
| 2966 } | 2959 } |
| 2967 } | 2960 } |
| 2968 | 2961 |
| 2969 #undef __ | 2962 #undef __ |
| 2970 | 2963 |
| 2971 } // namespace internal | 2964 } // namespace internal |
| 2972 } // namespace v8 | 2965 } // namespace v8 |
| 2973 | 2966 |
| 2974 #endif // V8_TARGET_ARCH_S390 | 2967 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |