equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2018, 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. |
482 // containing bci. |
482 // containing bci. |
483 int t = bci; |
483 int t = bci; |
484 while (block == NULL && t > 0) { |
484 while (block == NULL && t > 0) { |
485 block = _block_map->at(--t); |
485 block = _block_map->at(--t); |
486 } |
486 } |
487 assert( block != NULL, "invalid bytecode index; must be instruction index" ); |
487 guarantee(block != NULL, "invalid bytecode index; must be instruction index"); |
488 assert(bci >= block->start_bci() && bci < block->limit_bci(), "block must contain bci."); |
488 assert(bci >= block->start_bci() && bci < block->limit_bci(), "block must contain bci."); |
489 |
489 |
490 answer = block->get_liveness_at(method(), bci); |
490 answer = block->get_liveness_at(method(), bci); |
491 |
491 |
492 if (is_entry && method()->is_synchronized() && !method()->is_static()) { |
492 if (is_entry && method()->is_synchronized() && !method()->is_static()) { |