comparison src/cpu/x86/vm/templateTable_x86_64.cpp @ 1304:76c1d7d13ec5

6932091: JSR 292 x86 code cleanup Summary: Some code cleanups found during the JSR 292 SPARC port. Reviewed-by: kvn, never
author twisti
date Thu, 18 Mar 2010 09:56:51 +0100
parents 455df1b81409
children 2338d41fbd81
comparison
equal deleted inserted replaced
1303:c047da02984c 1304:76c1d7d13ec5
1 /* 1 /*
2 * Copyright 2003-2009 Sun Microsystems, Inc. All Rights Reserved. 2 * Copyright 2003-2010 Sun Microsystems, Inc. All Rights Reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
2858 if (load_receiver) { 2858 if (load_receiver) {
2859 __ movl(recv, flags); 2859 __ movl(recv, flags);
2860 __ andl(recv, 0xFF); 2860 __ andl(recv, 0xFF);
2861 if (TaggedStackInterpreter) __ shll(recv, 1); // index*2 2861 if (TaggedStackInterpreter) __ shll(recv, 1); // index*2
2862 Address recv_addr(rsp, recv, Address::times_8, -Interpreter::expr_offset_in_bytes(1)); 2862 Address recv_addr(rsp, recv, Address::times_8, -Interpreter::expr_offset_in_bytes(1));
2863 if (is_invokedynamic) { 2863 __ movptr(recv, recv_addr);
2864 __ lea(recv, recv_addr); 2864 __ verify_oop(recv);
2865 } else {
2866 __ movptr(recv, recv_addr);
2867 __ verify_oop(recv);
2868 }
2869 } 2865 }
2870 2866
2871 // do null check if needed 2867 // do null check if needed
2872 if (receiver_null_check) { 2868 if (receiver_null_check) {
2873 __ null_check(recv); 2869 __ null_check(recv);