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 #include "src/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
7 #include "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
10 #include "src/ppc/macro-assembler-ppc.h" | 10 #include "src/ppc/macro-assembler-ppc.h" |
(...skipping 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1370 } | 1370 } |
1371 } | 1371 } |
1372 __ LeaveFrame(StackFrame::MANUAL); | 1372 __ LeaveFrame(StackFrame::MANUAL); |
1373 __ Ret(); | 1373 __ Ret(); |
1374 } else if (descriptor->IsJSFunctionCall() || needs_frame_) { | 1374 } else if (descriptor->IsJSFunctionCall() || needs_frame_) { |
1375 // Canonicalize JSFunction return sites for now. | 1375 // Canonicalize JSFunction return sites for now. |
1376 if (return_label_.is_bound()) { | 1376 if (return_label_.is_bound()) { |
1377 __ b(&return_label_); | 1377 __ b(&return_label_); |
1378 } else { | 1378 } else { |
1379 __ bind(&return_label_); | 1379 __ bind(&return_label_); |
1380 int pop_count = descriptor->IsJSFunctionCall() | 1380 int pop_count = static_cast<int>(descriptor->StackParameterCount()); |
1381 ? static_cast<int>(descriptor->JSParameterCount()) | |
1382 : (info()->IsStub() | |
1383 ? info()->code_stub()->GetStackParameterCount() | |
1384 : 0); | |
1385 __ LeaveFrame(StackFrame::MANUAL, pop_count * kPointerSize); | 1381 __ LeaveFrame(StackFrame::MANUAL, pop_count * kPointerSize); |
1386 __ Ret(); | 1382 __ Ret(); |
1387 } | 1383 } |
1388 } else { | 1384 } else { |
1389 __ Ret(); | 1385 __ Ret(); |
1390 } | 1386 } |
1391 } | 1387 } |
1392 | 1388 |
1393 | 1389 |
1394 void CodeGenerator::AssembleMove(InstructionOperand* source, | 1390 void CodeGenerator::AssembleMove(InstructionOperand* source, |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1589 } | 1585 } |
1590 } | 1586 } |
1591 } | 1587 } |
1592 } | 1588 } |
1593 | 1589 |
1594 #undef __ | 1590 #undef __ |
1595 | 1591 |
1596 } // namespace compiler | 1592 } // namespace compiler |
1597 } // namespace internal | 1593 } // namespace internal |
1598 } // namespace v8 | 1594 } // namespace v8 |
OLD | NEW |