comparison src/cpu/x86/vm/templateTable_x86_32.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 85f13cdfbc1d
children 2338d41fbd81
comparison
equal deleted inserted replaced
1303:c047da02984c 1304:76c1d7d13ec5
1 /* 1 /*
2 * Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved. 2 * Copyright 1997-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.
2913 if (load_receiver) { 2913 if (load_receiver) {
2914 __ movl(recv, flags); 2914 __ movl(recv, flags);
2915 __ andl(recv, 0xFF); 2915 __ andl(recv, 0xFF);
2916 // recv count is 0 based? 2916 // recv count is 0 based?
2917 Address recv_addr(rsp, recv, Interpreter::stackElementScale(), -Interpreter::expr_offset_in_bytes(1)); 2917 Address recv_addr(rsp, recv, Interpreter::stackElementScale(), -Interpreter::expr_offset_in_bytes(1));
2918 if (is_invokedynamic) { 2918 __ movptr(recv, recv_addr);
2919 __ lea(recv, recv_addr); 2919 __ verify_oop(recv);
2920 } else {
2921 __ movptr(recv, recv_addr);
2922 __ verify_oop(recv);
2923 }
2924 } 2920 }
2925 2921
2926 // do null check if needed 2922 // do null check if needed
2927 if (receiver_null_check) { 2923 if (receiver_null_check) {
2928 __ null_check(recv); 2924 __ null_check(recv);