Mercurial > hg > truffle
comparison src/share/vm/ci/ciTypeFlow.cpp @ 1579:e9ff18c4ace7
Merge
author | jrose |
---|---|
date | Wed, 02 Jun 2010 22:45:42 -0700 |
parents | c18cbe5936b8 ab102d5d923e |
children | b918d354830a |
comparison
equal
deleted
inserted
replaced
1562:dfe27f03244a | 1579:e9ff18c4ace7 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. 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. |
2130 bool ciTypeFlow::can_trap(ciBytecodeStream& str) { | 2130 bool ciTypeFlow::can_trap(ciBytecodeStream& str) { |
2131 // Cf. GenerateOopMap::do_exception_edge. | 2131 // Cf. GenerateOopMap::do_exception_edge. |
2132 if (!Bytecodes::can_trap(str.cur_bc())) return false; | 2132 if (!Bytecodes::can_trap(str.cur_bc())) return false; |
2133 | 2133 |
2134 switch (str.cur_bc()) { | 2134 switch (str.cur_bc()) { |
2135 // %%% FIXME: ldc of Class can generate an exception | |
2135 case Bytecodes::_ldc: | 2136 case Bytecodes::_ldc: |
2136 case Bytecodes::_ldc_w: | 2137 case Bytecodes::_ldc_w: |
2137 case Bytecodes::_ldc2_w: | 2138 case Bytecodes::_ldc2_w: |
2138 case Bytecodes::_aload_0: | 2139 case Bytecodes::_aload_0: |
2139 // These bytecodes can trap for rewriting. We need to assume that | 2140 // These bytecodes can trap for rewriting. We need to assume that |