| 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 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1383 Register array_pointer = r8; | 1383 Register array_pointer = r8; |
| 1384 | 1384 |
| 1385 // Does the native context match? | 1385 // Does the native context match? |
| 1386 __ SmiToPtrArrayOffset(array_pointer, index); | 1386 __ SmiToPtrArrayOffset(array_pointer, index); |
| 1387 __ add(array_pointer, map, array_pointer); | 1387 __ add(array_pointer, map, array_pointer); |
| 1388 __ LoadP(temp, FieldMemOperand(array_pointer, | 1388 __ LoadP(temp, FieldMemOperand(array_pointer, |
| 1389 SharedFunctionInfo::kOffsetToPreviousContext)); | 1389 SharedFunctionInfo::kOffsetToPreviousContext)); |
| 1390 __ LoadP(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); | 1390 __ LoadP(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); |
| 1391 __ cmp(temp, native_context); | 1391 __ cmp(temp, native_context); |
| 1392 __ bne(&loop_bottom); | 1392 __ bne(&loop_bottom); |
| 1393 // OSR id set to none? | |
| 1394 __ LoadP(temp, | |
| 1395 FieldMemOperand(array_pointer, | |
| 1396 SharedFunctionInfo::kOffsetToPreviousOsrAstId)); | |
| 1397 const int bailout_id = BailoutId::None().ToInt(); | |
| 1398 __ CmpSmiLiteral(temp, Smi::FromInt(bailout_id), r0); | |
| 1399 __ bne(&loop_bottom); | |
| 1400 // Literals available? | 1393 // Literals available? |
| 1401 __ LoadP(temp, | 1394 __ LoadP(temp, |
| 1402 FieldMemOperand(array_pointer, | 1395 FieldMemOperand(array_pointer, |
| 1403 SharedFunctionInfo::kOffsetToPreviousLiterals)); | 1396 SharedFunctionInfo::kOffsetToPreviousLiterals)); |
| 1404 __ LoadP(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); | 1397 __ LoadP(temp, FieldMemOperand(temp, WeakCell::kValueOffset)); |
| 1405 __ JumpIfSmi(temp, &gotta_call_runtime); | 1398 __ JumpIfSmi(temp, &gotta_call_runtime); |
| 1406 | 1399 |
| 1407 // Save the literals in the closure. | 1400 // Save the literals in the closure. |
| 1408 __ StoreP(temp, FieldMemOperand(closure, JSFunction::kLiteralsOffset), r0); | 1401 __ StoreP(temp, FieldMemOperand(closure, JSFunction::kLiteralsOffset), r0); |
| 1409 __ RecordWriteField(closure, JSFunction::kLiteralsOffset, temp, r7, | 1402 __ RecordWriteField(closure, JSFunction::kLiteralsOffset, temp, r7, |
| (...skipping 1542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2952 __ CallRuntime(Runtime::kThrowStackOverflow); | 2945 __ CallRuntime(Runtime::kThrowStackOverflow); |
| 2953 __ bkpt(0); | 2946 __ bkpt(0); |
| 2954 } | 2947 } |
| 2955 } | 2948 } |
| 2956 | 2949 |
| 2957 #undef __ | 2950 #undef __ |
| 2958 } // namespace internal | 2951 } // namespace internal |
| 2959 } // namespace v8 | 2952 } // namespace v8 |
| 2960 | 2953 |
| 2961 #endif // V8_TARGET_ARCH_PPC | 2954 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |