Mercurial > hg > graal-jvmci-8
comparison src/share/vm/opto/compile.cpp @ 9060:cc32ccaaf47f
8003310: Enable -Wunused-function when compiling with gcc
Summary: Add the -Wunused-function flag and remove a number of unused functions.
Reviewed-by: dholmes, coleenp, kvn
author | mikael |
---|---|
date | Thu, 04 Apr 2013 10:01:26 -0700 |
parents | b7c2c5b2572c |
children | 8373c19be854 |
comparison
equal
deleted
inserted
replaced
9059:17bf4d428955 | 9060:cc32ccaaf47f |
---|---|
2324 int get_double_count() const { return _double_count; } | 2324 int get_double_count() const { return _double_count; } |
2325 int get_java_call_count() const { return _java_call_count; } | 2325 int get_java_call_count() const { return _java_call_count; } |
2326 int get_inner_loop_count() const { return _inner_loop_count; } | 2326 int get_inner_loop_count() const { return _inner_loop_count; } |
2327 }; | 2327 }; |
2328 | 2328 |
2329 #ifdef ASSERT | |
2329 static bool oop_offset_is_sane(const TypeInstPtr* tp) { | 2330 static bool oop_offset_is_sane(const TypeInstPtr* tp) { |
2330 ciInstanceKlass *k = tp->klass()->as_instance_klass(); | 2331 ciInstanceKlass *k = tp->klass()->as_instance_klass(); |
2331 // Make sure the offset goes inside the instance layout. | 2332 // Make sure the offset goes inside the instance layout. |
2332 return k->contains_field_offset(tp->offset()); | 2333 return k->contains_field_offset(tp->offset()); |
2333 // Note that OffsetBot and OffsetTop are very negative. | 2334 // Note that OffsetBot and OffsetTop are very negative. |
2334 } | 2335 } |
2336 #endif | |
2335 | 2337 |
2336 // Eliminate trivially redundant StoreCMs and accumulate their | 2338 // Eliminate trivially redundant StoreCMs and accumulate their |
2337 // precedence edges. | 2339 // precedence edges. |
2338 void Compile::eliminate_redundant_card_marks(Node* n) { | 2340 void Compile::eliminate_redundant_card_marks(Node* n) { |
2339 assert(n->Opcode() == Op_StoreCM, "expected StoreCM"); | 2341 assert(n->Opcode() == Op_StoreCM, "expected StoreCM"); |