Mercurial > hg > truffle
comparison src/share/vm/opto/runtime.cpp @ 2177:3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
Summary: move symbols from permgen into C heap and reference count them
Reviewed-by: never, acorn, jmasa, stefank
author | coleenp |
---|---|
date | Thu, 27 Jan 2011 16:11:27 -0800 |
parents | f95d63e2154a |
children | b92c45f2bc75 |
comparison
equal
deleted
inserted
replaced
2176:27e4ea99855d | 2177:3582bf76420e |
---|---|
475 } | 475 } |
476 | 476 |
477 const TypeFunc *OptoRuntime::uncommon_trap_Type() { | 477 const TypeFunc *OptoRuntime::uncommon_trap_Type() { |
478 // create input type (domain) | 478 // create input type (domain) |
479 const Type **fields = TypeTuple::fields(1); | 479 const Type **fields = TypeTuple::fields(1); |
480 // symbolOop name of class to be loaded | 480 // Symbol* name of class to be loaded |
481 fields[TypeFunc::Parms+0] = TypeInt::INT; | 481 fields[TypeFunc::Parms+0] = TypeInt::INT; |
482 const TypeTuple *domain = TypeTuple::make(TypeFunc::Parms+1, fields); | 482 const TypeTuple *domain = TypeTuple::make(TypeFunc::Parms+1, fields); |
483 | 483 |
484 // create result type (range) | 484 // create result type (range) |
485 fields = TypeTuple::fields(0); | 485 fields = TypeTuple::fields(0); |
584 } | 584 } |
585 | 585 |
586 const TypeFunc *OptoRuntime::Math_D_D_Type() { | 586 const TypeFunc *OptoRuntime::Math_D_D_Type() { |
587 // create input type (domain) | 587 // create input type (domain) |
588 const Type **fields = TypeTuple::fields(2); | 588 const Type **fields = TypeTuple::fields(2); |
589 // symbolOop name of class to be loaded | 589 // Symbol* name of class to be loaded |
590 fields[TypeFunc::Parms+0] = Type::DOUBLE; | 590 fields[TypeFunc::Parms+0] = Type::DOUBLE; |
591 fields[TypeFunc::Parms+1] = Type::HALF; | 591 fields[TypeFunc::Parms+1] = Type::HALF; |
592 const TypeTuple *domain = TypeTuple::make(TypeFunc::Parms+2, fields); | 592 const TypeTuple *domain = TypeTuple::make(TypeFunc::Parms+2, fields); |
593 | 593 |
594 // create result type (range) | 594 // create result type (range) |