comparison src/share/vm/opto/parse.hpp @ 6131:8f6ce6f1049b

7170463: C2 should recognize "obj.getClass() == A.class" code pattern Summary: optimize this code pattern obj.getClass() == A.class. Reviewed-by: jrose, kvn Contributed-by: Krystal Mok <sajia@taobao.com>
author kvn
date Fri, 25 May 2012 07:53:11 -0700
parents f6f3bb0ee072
children 1d7922586cf6
comparison
equal deleted inserted replaced
6088:7089278210e2 6131:8f6ce6f1049b
525 void do_ifnull(BoolTest::mask btest, Node* c); 525 void do_ifnull(BoolTest::mask btest, Node* c);
526 void do_if(BoolTest::mask btest, Node* c); 526 void do_if(BoolTest::mask btest, Node* c);
527 int repush_if_args(); 527 int repush_if_args();
528 void adjust_map_after_if(BoolTest::mask btest, Node* c, float prob, 528 void adjust_map_after_if(BoolTest::mask btest, Node* c, float prob,
529 Block* path, Block* other_path); 529 Block* path, Block* other_path);
530 void sharpen_type_after_if(BoolTest::mask btest,
531 Node* con, const Type* tcon,
532 Node* val, const Type* tval);
530 IfNode* jump_if_fork_int(Node* a, Node* b, BoolTest::mask mask); 533 IfNode* jump_if_fork_int(Node* a, Node* b, BoolTest::mask mask);
531 Node* jump_if_join(Node* iffalse, Node* iftrue); 534 Node* jump_if_join(Node* iffalse, Node* iftrue);
532 void jump_if_true_fork(IfNode *ifNode, int dest_bci_if_true, int prof_table_index); 535 void jump_if_true_fork(IfNode *ifNode, int dest_bci_if_true, int prof_table_index);
533 void jump_if_false_fork(IfNode *ifNode, int dest_bci_if_false, int prof_table_index); 536 void jump_if_false_fork(IfNode *ifNode, int dest_bci_if_false, int prof_table_index);
534 void jump_if_always_fork(int dest_bci_if_true, int prof_table_index); 537 void jump_if_always_fork(int dest_bci_if_true, int prof_table_index);