diff src/share/vm/interpreter/rewriter.cpp @ 2181:d25d4ca69222

Merge.
author Thomas Wuerthinger <wuerthinger@ssw.jku.at>
date Wed, 16 Feb 2011 13:47:20 +0100
parents 06f017f7daa7 8012aa3ccede
children 2ab52cda08e5
line wrap: on
line diff
--- a/src/share/vm/interpreter/rewriter.cpp	Wed Feb 16 13:38:33 2011 +0100
+++ b/src/share/vm/interpreter/rewriter.cpp	Wed Feb 16 13:47:20 2011 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -221,7 +221,7 @@
       // call to calculate the length.
       bc_length = Bytecodes::length_for(c);
       if (bc_length == 0) {
-        bc_length = Bytecodes::length_at(bcp);
+        bc_length = Bytecodes::length_at(method, bcp);
 
         // length_at will put us at the bytecode after the one modified
         // by 'wide'. We don't currently examine any of the bytecodes
@@ -238,9 +238,9 @@
         case Bytecodes::_lookupswitch   : {
 #ifndef CC_INTERP
           if (!UseC1X) {
-            Bytecode_lookupswitch* bc = Bytecode_lookupswitch_at(bcp);
+            Bytecode_lookupswitch bc(method, bcp);
             (*bcp) = (
-              bc->number_of_pairs() < BinarySwitchThreshold
+              bc.number_of_pairs() < BinarySwitchThreshold
               ? Bytecodes::_fast_linearswitch
               : Bytecodes::_fast_binaryswitch
             );