equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 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. |
115 // make sure all code is in code buffer |
115 // make sure all code is in code buffer |
116 (*_masm)->flush(); |
116 (*_masm)->flush(); |
117 |
117 |
118 |
118 |
119 // commit Codelet |
119 // commit Codelet |
120 AbstractInterpreter::code()->commit((*_masm)->code()->pure_code_size()); |
120 AbstractInterpreter::code()->commit((*_masm)->code()->pure_insts_size()); |
121 // make sure nobody can use _masm outside a CodeletMark lifespan |
121 // make sure nobody can use _masm outside a CodeletMark lifespan |
122 *_masm = NULL; |
122 *_masm = NULL; |
123 } |
123 } |
124 }; |
124 }; |
125 |
125 |