Refactor to StackValue
This commit is contained in:
parent
6c0fbd179a
commit
4ee673d5ff
4 changed files with 58 additions and 59 deletions
|
@ -1,7 +1,7 @@
|
|||
use std::collections::HashMap;
|
||||
|
||||
use crate::accessmasks::FieldAccessFlag;
|
||||
use crate::stackframe::Value;
|
||||
use crate::stackframe::StackValue;
|
||||
use crate::classfile::{ JavaClassFile, AbstractTypeDescription, MethodInfo };
|
||||
|
||||
#[derive(Debug)]
|
||||
|
@ -65,7 +65,7 @@ impl StaticArea {
|
|||
StaticField {
|
||||
name: field.name.clone(),
|
||||
type_description: field.descriptor.clone(),
|
||||
value: Value::default_for(field.descriptor),
|
||||
value: StackValue::default_for(field.descriptor),
|
||||
}
|
||||
)
|
||||
}
|
||||
|
@ -92,12 +92,11 @@ pub struct StaticObject {
|
|||
pub struct StaticField {
|
||||
pub name: String,
|
||||
pub type_description: AbstractTypeDescription,
|
||||
pub value: Value,
|
||||
pub value: StackValue,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct ObjectField {
|
||||
pub type_description: AbstractTypeDescription,
|
||||
pub value: Value,
|
||||
pub value: StackValue,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue