| 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 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1178   __ addi(ip, ip, Operand(Code::kHeaderSize - kHeapObjectTag)); | 1178   __ addi(ip, ip, Operand(Code::kHeaderSize - kHeapObjectTag)); | 
| 1179   __ Jump(ip); | 1179   __ Jump(ip); | 
| 1180 } | 1180 } | 
| 1181 | 1181 | 
| 1182 | 1182 | 
| 1183 static void Generate_InterpreterNotifyDeoptimizedHelper( | 1183 static void Generate_InterpreterNotifyDeoptimizedHelper( | 
| 1184     MacroAssembler* masm, Deoptimizer::BailoutType type) { | 1184     MacroAssembler* masm, Deoptimizer::BailoutType type) { | 
| 1185   // Enter an internal frame. | 1185   // Enter an internal frame. | 
| 1186   { | 1186   { | 
| 1187     FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); | 1187     FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); | 
| 1188     // Save accumulator register and pass the deoptimization type to | 1188 | 
| 1189     // the runtime system. | 1189     // Pass the deoptimization type to the runtime system. | 
| 1190     __ LoadSmiLiteral(r4, Smi::FromInt(static_cast<int>(type))); | 1190     __ LoadSmiLiteral(r4, Smi::FromInt(static_cast<int>(type))); | 
| 1191     __ Push(kInterpreterAccumulatorRegister, r4); | 1191     __ Push(kInterpreterAccumulatorRegister, r4); | 
| 1192     __ CallRuntime(Runtime::kNotifyDeoptimized); | 1192     __ CallRuntime(Runtime::kNotifyDeoptimized); | 
| 1193     __ pop(kInterpreterAccumulatorRegister);  // Restore accumulator register. | 1193     __ pop(kInterpreterAccumulatorRegister);  // Restore accumulator register. | 
| 1194     // Tear down internal frame. | 1194     // Tear down internal frame. | 
| 1195   } | 1195   } | 
| 1196 | 1196 | 
| 1197   // Drop state (we don't use these for interpreter deopts). | 1197   // Drop state (we don't use these for interpreter deopts). | 
| 1198   __ Drop(1); | 1198   __ Drop(1); | 
| 1199 | 1199 | 
| (...skipping 1547 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2747     __ bkpt(0); | 2747     __ bkpt(0); | 
| 2748   } | 2748   } | 
| 2749 } | 2749 } | 
| 2750 | 2750 | 
| 2751 | 2751 | 
| 2752 #undef __ | 2752 #undef __ | 
| 2753 }  // namespace internal | 2753 }  // namespace internal | 
| 2754 }  // namespace v8 | 2754 }  // namespace v8 | 
| 2755 | 2755 | 
| 2756 #endif  // V8_TARGET_ARCH_PPC | 2756 #endif  // V8_TARGET_ARCH_PPC | 
| OLD | NEW | 
|---|