summaryrefslogtreecommitdiff
path: root/src/compiled_method.cc
diff options
context:
space:
mode:
author Ian Rogers <irogers@google.com> 2011-11-13 20:13:17 -0800
committer Ian Rogers <irogers@google.com> 2011-11-14 09:27:23 -0800
commit169c9a7f46776b235d0a37d5e0ff27682deffe06 (patch)
tree9bd38fe9508e827089d546f04b0b42020eef821e /src/compiled_method.cc
parent0571d357843c53e042f370f5f2c2e9aa3fe803a9 (diff)
Remove the use of Method from jni_compiler
Change-Id: Ibf1c72a806e7f1ba7a2d83960c3d57f41937d336
Diffstat (limited to 'src/compiled_method.cc')
-rw-r--r--src/compiled_method.cc18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/compiled_method.cc b/src/compiled_method.cc
index 500a62bd82..4e21a9109b 100644
--- a/src/compiled_method.cc
+++ b/src/compiled_method.cc
@@ -10,7 +10,9 @@ CompiledMethod::CompiledMethod(InstructionSet instruction_set,
const uint32_t core_spill_mask,
const uint32_t fp_spill_mask,
std::vector<uint32_t>& mapping_table,
- std::vector<uint16_t>& vmap_table) {
+ std::vector<uint16_t>& vmap_table)
+ : instruction_set_(instruction_set), frame_size_in_bytes_(frame_size_in_bytes),
+ core_spill_mask_(core_spill_mask), fp_spill_mask_(fp_spill_mask) {
CHECK_NE(short_code.size(), 0U);
CHECK_GE(vmap_table.size(), 1U); // should always contain an entry for LR
@@ -33,11 +35,7 @@ CompiledMethod::CompiledMethod(InstructionSet instruction_set,
DCHECK_EQ(vmap_table.size() + 1, length_prefixed_vmap_table.size());
DCHECK_EQ(vmap_table.size(), length_prefixed_vmap_table[0]);
- instruction_set_ = instruction_set;
code_ = byte_code;
- frame_size_in_bytes_ = frame_size_in_bytes;
- core_spill_mask_ = core_spill_mask;
- fp_spill_mask_ = fp_spill_mask;
mapping_table_ = length_prefixed_mapping_table;
vmap_table_ = length_prefixed_vmap_table;
@@ -48,14 +46,10 @@ CompiledMethod::CompiledMethod(InstructionSet instruction_set,
std::vector<uint8_t>& code,
const size_t frame_size_in_bytes,
const uint32_t core_spill_mask,
- const uint32_t fp_spill_mask) {
+ const uint32_t fp_spill_mask)
+ : instruction_set_(instruction_set), code_(code), frame_size_in_bytes_(frame_size_in_bytes),
+ core_spill_mask_(core_spill_mask), fp_spill_mask_(fp_spill_mask) {
CHECK_NE(code.size(), 0U);
-
- instruction_set_ = instruction_set;
- code_ = code;
- frame_size_in_bytes_ = frame_size_in_bytes;
- core_spill_mask_ = core_spill_mask;
- fp_spill_mask_ = fp_spill_mask;
}
CompiledMethod::~CompiledMethod() {}