< prev index next >

src/hotspot/share/interpreter/interpreter.cpp

Print this page
@@ -48,12 +48,13 @@
  
  
  //------------------------------------------------------------------------------
  // Implementation of InterpreterCodelet
  
- void InterpreterCodelet::initialize(const char* description, Bytecodes::Code bytecode) {
+ void InterpreterCodelet::initialize(const char* description, Kind kind, Bytecodes::Code bytecode) {
    _description = description;
+   _kind        = kind;
    _bytecode    = bytecode;
  #ifndef PRODUCT
    AsmRemarks* arp = new(&_asm_remarks) AsmRemarks();
    DbgStrings* dsp = new(&_dbg_strings) DbgStrings();
    postcond(arp == &_asm_remarks);

@@ -84,18 +85,19 @@
  
  void InterpreterCodelet::print() const { print_on(tty); }
  
  CodeletMark::CodeletMark(InterpreterMacroAssembler*& masm,
                           const char* description,
+                          InterpreterCodelet::Kind kind,
                           Bytecodes::Code bytecode) :
    _clet((InterpreterCodelet*)AbstractInterpreter::code()->request(codelet_size())),
    _cb(_clet->code_begin(), _clet->code_size()) {
    // Request all space (add some slack for Codelet data).
    assert(_clet != NULL, "we checked not enough space already");
  
    // Initialize Codelet attributes.
-   _clet->initialize(description, bytecode);
+   _clet->initialize(description, kind, bytecode);
    // Create assembler for code generation.
    masm = new InterpreterMacroAssembler(&_cb);
    _masm = &masm;
  }
  
< prev index next >