summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2014-12-17 11:55:20 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-12-17 11:55:21 +0000
commit4acdae34d7529dcd757cc62ef18b75021dbc2cb0 (patch)
treed418b4a488390d718144bf5a5a180d965d1d762e /compiler/optimizing/nodes.h
parent240016da1d6615b26c8342bdeb4bae381570ac47 (diff)
parent390f59f9bec64fd81b05e796dfaeb03ab6d4cc81 (diff)
Merge "Small optimization for recursive calls: avoid dex cache."
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r--compiler/optimizing/nodes.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h
index c963b70492..8ae83eb9a7 100644
--- a/compiler/optimizing/nodes.h
+++ b/compiler/optimizing/nodes.h
@@ -1630,19 +1630,23 @@ class HInvokeStaticOrDirect : public HInvoke {
Primitive::Type return_type,
uint32_t dex_pc,
uint32_t index_in_dex_cache,
+ bool is_recursive,
InvokeType invoke_type)
: HInvoke(arena, number_of_arguments, return_type, dex_pc),
index_in_dex_cache_(index_in_dex_cache),
- invoke_type_(invoke_type) {}
+ invoke_type_(invoke_type),
+ is_recursive_(is_recursive) {}
uint32_t GetIndexInDexCache() const { return index_in_dex_cache_; }
InvokeType GetInvokeType() const { return invoke_type_; }
+ bool GetIsRecursive() const { return is_recursive_; }
DECLARE_INSTRUCTION(InvokeStaticOrDirect);
private:
const uint32_t index_in_dex_cache_;
const InvokeType invoke_type_;
+ const bool is_recursive_;
DISALLOW_COPY_AND_ASSIGN(HInvokeStaticOrDirect);
};