summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes.h
diff options
context:
space:
mode:
author Calin Juravle <calin@google.com> 2015-10-13 13:12:35 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-10-13 13:12:35 +0000
commitdf3456007702b0dea01ffd1adfa74244857712af (patch)
tree697f94b058e6905736f9a3a37044d94ad7941f74 /compiler/optimizing/nodes.h
parent46bf13350316475ce4b787e9cbd8774e87d3dde6 (diff)
parentc05aca78fad20901ae17902a3671ccfca9071758 (diff)
Merge "Revert "optimizing: propagate type information of arguments""
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r--compiler/optimizing/nodes.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h
index 224c635fd2..82909c41b6 100644
--- a/compiler/optimizing/nodes.h
+++ b/compiler/optimizing/nodes.h
@@ -3927,31 +3927,24 @@ class HXor : public HBinaryOperation {
// the calling convention.
class HParameterValue : public HExpression<0> {
public:
- HParameterValue(const DexFile& dex_file,
- uint16_t type_index,
- uint8_t index,
+ HParameterValue(uint8_t index,
Primitive::Type parameter_type,
bool is_this = false)
: HExpression(parameter_type, SideEffects::None(), kNoDexPc),
- dex_file_(dex_file),
- type_index_(type_index),
index_(index),
is_this_(is_this),
can_be_null_(!is_this) {}
- const DexFile& GetDexFile() const { return dex_file_; }
- uint16_t GetTypeIndex() const { return type_index_; }
uint8_t GetIndex() const { return index_; }
- bool IsThis() const { return is_this_; }
bool CanBeNull() const OVERRIDE { return can_be_null_; }
void SetCanBeNull(bool can_be_null) { can_be_null_ = can_be_null; }
+ bool IsThis() const { return is_this_; }
+
DECLARE_INSTRUCTION(ParameterValue);
private:
- const DexFile& dex_file_;
- const uint16_t type_index_;
// The index of this parameter in the parameters list. Must be less
// than HGraph::number_of_in_vregs_.
const uint8_t index_;