| 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 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1048   // Check function data field is actually a BytecodeArray object. | 1048   // Check function data field is actually a BytecodeArray object. | 
| 1049 | 1049 | 
| 1050   if (FLAG_debug_code) { | 1050   if (FLAG_debug_code) { | 
| 1051     __ TestIfSmi(kInterpreterBytecodeArrayRegister, r0); | 1051     __ TestIfSmi(kInterpreterBytecodeArrayRegister, r0); | 
| 1052     __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); | 1052     __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); | 
| 1053     __ CompareObjectType(kInterpreterBytecodeArrayRegister, r3, no_reg, | 1053     __ CompareObjectType(kInterpreterBytecodeArrayRegister, r3, no_reg, | 
| 1054                          BYTECODE_ARRAY_TYPE); | 1054                          BYTECODE_ARRAY_TYPE); | 
| 1055     __ Assert(eq, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); | 1055     __ Assert(eq, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); | 
| 1056   } | 1056   } | 
| 1057 | 1057 | 
|  | 1058   // Reset code age. | 
|  | 1059   __ mov(r8, Operand(BytecodeArray::kNoAgeBytecodeAge)); | 
|  | 1060   __ StoreByte(r8, FieldMemOperand(kInterpreterBytecodeArrayRegister, | 
|  | 1061                                    BytecodeArray::kBytecodeAgeOffset), | 
|  | 1062                r0); | 
|  | 1063 | 
| 1058   // Load initial bytecode offset. | 1064   // Load initial bytecode offset. | 
| 1059   __ mov(kInterpreterBytecodeOffsetRegister, | 1065   __ mov(kInterpreterBytecodeOffsetRegister, | 
| 1060          Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); | 1066          Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); | 
| 1061 | 1067 | 
| 1062   // Push new.target, bytecode array and Smi tagged bytecode array offset. | 1068   // Push new.target, bytecode array and Smi tagged bytecode array offset. | 
| 1063   __ SmiTag(r3, kInterpreterBytecodeOffsetRegister); | 1069   __ SmiTag(r3, kInterpreterBytecodeOffsetRegister); | 
| 1064   __ Push(r6, kInterpreterBytecodeArrayRegister, r3); | 1070   __ Push(r6, kInterpreterBytecodeArrayRegister, r3); | 
| 1065 | 1071 | 
| 1066   // Allocate the local and temporary register file on the stack. | 1072   // Allocate the local and temporary register file on the stack. | 
| 1067   { | 1073   { | 
| (...skipping 1878 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2946     __ CallRuntime(Runtime::kThrowStackOverflow); | 2952     __ CallRuntime(Runtime::kThrowStackOverflow); | 
| 2947     __ bkpt(0); | 2953     __ bkpt(0); | 
| 2948   } | 2954   } | 
| 2949 } | 2955 } | 
| 2950 | 2956 | 
| 2951 #undef __ | 2957 #undef __ | 
| 2952 }  // namespace internal | 2958 }  // namespace internal | 
| 2953 }  // namespace v8 | 2959 }  // namespace v8 | 
| 2954 | 2960 | 
| 2955 #endif  // V8_TARGET_ARCH_PPC | 2961 #endif  // V8_TARGET_ARCH_PPC | 
| OLD | NEW | 
|---|