OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1643 | 1643 |
1644 void LCodeGen::DoReturn(LReturn* instr) { | 1644 void LCodeGen::DoReturn(LReturn* instr) { |
1645 if (FLAG_trace) { | 1645 if (FLAG_trace) { |
1646 // Preserve the return value on the stack and rely on the runtime | 1646 // Preserve the return value on the stack and rely on the runtime |
1647 // call to return the value in the same register. | 1647 // call to return the value in the same register. |
1648 __ push(rax); | 1648 __ push(rax); |
1649 __ CallRuntime(Runtime::kTraceExit, 1); | 1649 __ CallRuntime(Runtime::kTraceExit, 1); |
1650 } | 1650 } |
1651 __ movq(rsp, rbp); | 1651 __ movq(rsp, rbp); |
1652 __ pop(rbp); | 1652 __ pop(rbp); |
1653 __ ret((ParameterCount() + 1) * kPointerSize); | 1653 __ Ret((ParameterCount() + 1) * kPointerSize, rcx); |
1654 } | 1654 } |
1655 | 1655 |
1656 | 1656 |
1657 void LCodeGen::DoLoadGlobal(LLoadGlobal* instr) { | 1657 void LCodeGen::DoLoadGlobal(LLoadGlobal* instr) { |
1658 Register result = ToRegister(instr->result()); | 1658 Register result = ToRegister(instr->result()); |
1659 if (result.is(rax)) { | 1659 if (result.is(rax)) { |
1660 __ load_rax(instr->hydrogen()->cell().location(), | 1660 __ load_rax(instr->hydrogen()->cell().location(), |
1661 RelocInfo::GLOBAL_PROPERTY_CELL); | 1661 RelocInfo::GLOBAL_PROPERTY_CELL); |
1662 } else { | 1662 } else { |
1663 __ movq(result, instr->hydrogen()->cell(), RelocInfo::GLOBAL_PROPERTY_CELL); | 1663 __ movq(result, instr->hydrogen()->cell(), RelocInfo::GLOBAL_PROPERTY_CELL); |
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2572 | 2572 |
2573 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { | 2573 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { |
2574 Abort("Unimplemented: %s", "DoOsrEntry"); | 2574 Abort("Unimplemented: %s", "DoOsrEntry"); |
2575 } | 2575 } |
2576 | 2576 |
2577 #undef __ | 2577 #undef __ |
2578 | 2578 |
2579 } } // namespace v8::internal | 2579 } } // namespace v8::internal |
2580 | 2580 |
2581 #endif // V8_TARGET_ARCH_X64 | 2581 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |