OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2445 // Preserve the return value on the stack and rely on the runtime | 2445 // Preserve the return value on the stack and rely on the runtime |
2446 // call to return the value in the same register. | 2446 // call to return the value in the same register. |
2447 __ push(rax); | 2447 __ push(rax); |
2448 __ CallRuntime(Runtime::kTraceExit, 1); | 2448 __ CallRuntime(Runtime::kTraceExit, 1); |
2449 } | 2449 } |
2450 if (NeedsEagerFrame()) { | 2450 if (NeedsEagerFrame()) { |
2451 __ movq(rsp, rbp); | 2451 __ movq(rsp, rbp); |
2452 __ pop(rbp); | 2452 __ pop(rbp); |
2453 } | 2453 } |
2454 if (info()->IsStub()) { | 2454 if (info()->IsStub()) { |
2455 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); | |
2456 __ Ret(0, r10); | 2455 __ Ret(0, r10); |
2457 } else { | 2456 } else { |
2458 __ Ret((GetParameterCount() + 1) * kPointerSize, rcx); | 2457 __ Ret((GetParameterCount() + 1) * kPointerSize, rcx); |
2459 } | 2458 } |
2460 } | 2459 } |
2461 | 2460 |
2462 | 2461 |
2463 void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) { | 2462 void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) { |
2464 Register result = ToRegister(instr->result()); | 2463 Register result = ToRegister(instr->result()); |
2465 __ LoadGlobalCell(result, instr->hydrogen()->cell()); | 2464 __ LoadGlobalCell(result, instr->hydrogen()->cell()); |
(...skipping 3073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5539 FixedArray::kHeaderSize - kPointerSize)); | 5538 FixedArray::kHeaderSize - kPointerSize)); |
5540 __ bind(&done); | 5539 __ bind(&done); |
5541 } | 5540 } |
5542 | 5541 |
5543 | 5542 |
5544 #undef __ | 5543 #undef __ |
5545 | 5544 |
5546 } } // namespace v8::internal | 5545 } } // namespace v8::internal |
5547 | 5546 |
5548 #endif // V8_TARGET_ARCH_X64 | 5547 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |