Mercurial > hg > truffle
comparison src/share/vm/interpreter/templateInterpreter.cpp @ 6725:da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
Summary: Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes
Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland
Contributed-by: jmasa <jon.masamitsu@oracle.com>, stefank <stefan.karlsson@oracle.com>, mgerdin <mikael.gerdin@oracle.com>, never <tom.rodriguez@oracle.com>
author | coleenp |
---|---|
date | Sat, 01 Sep 2012 13:25:18 -0400 |
parents | 1d7922586cf6 |
children | a3e2f723f2a5 |
comparison
equal
deleted
inserted
replaced
6724:36d1d483d5d6 | 6725:da91efe96a93 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2012, 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. |
508 if (tos_out == ilgl) tos_out = t->tos_out(); | 508 if (tos_out == ilgl) tos_out = t->tos_out(); |
509 // compute bytecode size | 509 // compute bytecode size |
510 assert(step > 0, "just checkin'"); | 510 assert(step > 0, "just checkin'"); |
511 // setup stuff for dispatching next bytecode | 511 // setup stuff for dispatching next bytecode |
512 if (ProfileInterpreter && VerifyDataPointer | 512 if (ProfileInterpreter && VerifyDataPointer |
513 && methodDataOopDesc::bytecode_has_profile(t->bytecode())) { | 513 && MethodData::bytecode_has_profile(t->bytecode())) { |
514 __ verify_method_data_pointer(); | 514 __ verify_method_data_pointer(); |
515 } | 515 } |
516 __ dispatch_prolog(tos_out, step); | 516 __ dispatch_prolog(tos_out, step); |
517 } | 517 } |
518 // generate template | 518 // generate template |
586 | 586 |
587 //------------------------------------------------------------------------------------------------------------------------ | 587 //------------------------------------------------------------------------------------------------------------------------ |
588 // Deoptimization support | 588 // Deoptimization support |
589 | 589 |
590 // If deoptimization happens, this function returns the point of next bytecode to continue execution | 590 // If deoptimization happens, this function returns the point of next bytecode to continue execution |
591 address TemplateInterpreter::deopt_continue_after_entry(methodOop method, address bcp, int callee_parameters, bool is_top_frame) { | 591 address TemplateInterpreter::deopt_continue_after_entry(Method* method, address bcp, int callee_parameters, bool is_top_frame) { |
592 return AbstractInterpreter::deopt_continue_after_entry(method, bcp, callee_parameters, is_top_frame); | 592 return AbstractInterpreter::deopt_continue_after_entry(method, bcp, callee_parameters, is_top_frame); |
593 } | 593 } |
594 | 594 |
595 // If deoptimization happens, this function returns the point where the interpreter reexecutes | 595 // If deoptimization happens, this function returns the point where the interpreter reexecutes |
596 // the bytecode. | 596 // the bytecode. |
597 // Note: Bytecodes::_athrow (C1 only) and Bytecodes::_return are the special cases | 597 // Note: Bytecodes::_athrow (C1 only) and Bytecodes::_return are the special cases |
598 // that do not return "Interpreter::deopt_entry(vtos, 0)" | 598 // that do not return "Interpreter::deopt_entry(vtos, 0)" |
599 address TemplateInterpreter::deopt_reexecute_entry(methodOop method, address bcp) { | 599 address TemplateInterpreter::deopt_reexecute_entry(Method* method, address bcp) { |
600 assert(method->contains(bcp), "just checkin'"); | 600 assert(method->contains(bcp), "just checkin'"); |
601 Bytecodes::Code code = Bytecodes::java_code_at(method, bcp); | 601 Bytecodes::Code code = Bytecodes::java_code_at(method, bcp); |
602 if (code == Bytecodes::_return) { | 602 if (code == Bytecodes::_return) { |
603 // This is used for deopt during registration of finalizers | 603 // This is used for deopt during registration of finalizers |
604 // during Object.<init>. We simply need to resume execution at | 604 // during Object.<init>. We simply need to resume execution at |