comparison src/share/vm/opto/graphKit.hpp @ 6057:8f972594effc

6924259: Remove String.count/String.offset Summary: Allow a version of String class that doesn't have count and offset fields. Reviewed-by: never, coleenp
author kvn
date Mon, 14 May 2012 09:36:00 -0700
parents 286c498ae0d4
children 1d7922586cf6
comparison
equal deleted inserted replaced
6054:56d1af561395 6057:8f972594effc
1 /* 1 /*
2 * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
779 Node* slow_test = NULL, 779 Node* slow_test = NULL,
780 Node* *return_size_val = NULL); 780 Node* *return_size_val = NULL);
781 Node* new_array(Node* klass_node, Node* count_val, int nargs, 781 Node* new_array(Node* klass_node, Node* count_val, int nargs,
782 Node* *return_size_val = NULL); 782 Node* *return_size_val = NULL);
783 783
784 // java.lang.String helpers
785 Node* load_String_offset(Node* ctrl, Node* str);
786 Node* load_String_length(Node* ctrl, Node* str);
787 Node* load_String_value(Node* ctrl, Node* str);
788 void store_String_offset(Node* ctrl, Node* str, Node* value);
789 void store_String_length(Node* ctrl, Node* str, Node* value);
790 void store_String_value(Node* ctrl, Node* str, Node* value);
791
784 // Handy for making control flow 792 // Handy for making control flow
785 IfNode* create_and_map_if(Node* ctrl, Node* tst, float prob, float cnt) { 793 IfNode* create_and_map_if(Node* ctrl, Node* tst, float prob, float cnt) {
786 IfNode* iff = new (C, 2) IfNode(ctrl, tst, prob, cnt);// New IfNode's 794 IfNode* iff = new (C, 2) IfNode(ctrl, tst, prob, cnt);// New IfNode's
787 _gvn.set_type(iff, iff->Value(&_gvn)); // Value may be known at parse-time 795 _gvn.set_type(iff, iff->Value(&_gvn)); // Value may be known at parse-time
788 // Place 'if' on worklist if it will be in graph 796 // Place 'if' on worklist if it will be in graph