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 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1377 | 1377 |
1378 void LCodeGen::DoReturn(LReturn* instr) { | 1378 void LCodeGen::DoReturn(LReturn* instr) { |
1379 if (FLAG_trace) { | 1379 if (FLAG_trace) { |
1380 // Preserve the return value on the stack and rely on the runtime | 1380 // Preserve the return value on the stack and rely on the runtime |
1381 // call to return the value in the same register. | 1381 // call to return the value in the same register. |
1382 __ push(rax); | 1382 __ push(rax); |
1383 __ CallRuntime(Runtime::kTraceExit, 1); | 1383 __ CallRuntime(Runtime::kTraceExit, 1); |
1384 } | 1384 } |
1385 __ movq(rsp, rbp); | 1385 __ movq(rsp, rbp); |
1386 __ pop(rbp); | 1386 __ pop(rbp); |
1387 __ ret((ParameterCount() + 1) * kPointerSize); | 1387 __ Ret((ParameterCount() + 1) * kPointerSize, rcx); |
1388 } | 1388 } |
1389 | 1389 |
1390 | 1390 |
1391 void LCodeGen::DoLoadGlobal(LLoadGlobal* instr) { | 1391 void LCodeGen::DoLoadGlobal(LLoadGlobal* instr) { |
1392 Register result = ToRegister(instr->result()); | 1392 Register result = ToRegister(instr->result()); |
1393 if (result.is(rax)) { | 1393 if (result.is(rax)) { |
1394 __ load_rax(instr->hydrogen()->cell().location(), | 1394 __ load_rax(instr->hydrogen()->cell().location(), |
1395 RelocInfo::GLOBAL_PROPERTY_CELL); | 1395 RelocInfo::GLOBAL_PROPERTY_CELL); |
1396 } else { | 1396 } else { |
1397 __ movq(result, instr->hydrogen()->cell(), RelocInfo::GLOBAL_PROPERTY_CELL); | 1397 __ movq(result, instr->hydrogen()->cell(), RelocInfo::GLOBAL_PROPERTY_CELL); |
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2006 | 2006 |
2007 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { | 2007 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { |
2008 Abort("Unimplemented: %s", "DoOsrEntry"); | 2008 Abort("Unimplemented: %s", "DoOsrEntry"); |
2009 } | 2009 } |
2010 | 2010 |
2011 #undef __ | 2011 #undef __ |
2012 | 2012 |
2013 } } // namespace v8::internal | 2013 } } // namespace v8::internal |
2014 | 2014 |
2015 #endif // V8_TARGET_ARCH_X64 | 2015 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |