Mercurial > hg > graal-jvmci-8
comparison src/share/vm/c1x/c1x_Compiler.cpp @ 2674:6ab73784566a
* BlockBegin.predecessors changed to List<BlockEnd>
* Node: add input/successor with given back edge index, allows for explicit ordering of predecessors/usages
* Graphviz: PDF output, option to omit FrameStates
* runscimark.sh: forward additional options to JVM
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Fri, 13 May 2011 15:18:41 +0200 |
parents | d7c0775d7e72 |
children | d90bf514d647 |
comparison
equal
deleted
inserted
replaced
2673:98447ab8bd83 | 2674:6ab73784566a |
---|---|
51 Runtime1::initialize(THREAD->get_buffer_blob()); | 51 Runtime1::initialize(THREAD->get_buffer_blob()); |
52 | 52 |
53 JNIEnv *env = ((JavaThread *) Thread::current())->jni_environment(); | 53 JNIEnv *env = ((JavaThread *) Thread::current())->jni_environment(); |
54 jclass klass = env->FindClass("com/oracle/graal/runtime/VMEntriesNative"); | 54 jclass klass = env->FindClass("com/oracle/graal/runtime/VMEntriesNative"); |
55 if (klass == NULL) { | 55 if (klass == NULL) { |
56 fatal("c1x VMEntries class not found"); | 56 tty->print_cr("c1x VMEntries class not found"); |
57 vm_abort(false); | |
57 } | 58 } |
58 env->RegisterNatives(klass, VMEntries_methods, VMEntries_methods_count()); | 59 env->RegisterNatives(klass, VMEntries_methods, VMEntries_methods_count()); |
59 | 60 |
60 { | 61 { |
61 VM_ENTRY_MARK; | 62 VM_ENTRY_MARK; |
70 VMExits::setDefaultOptions(); | 71 VMExits::setDefaultOptions(); |
71 for (int i = 0; i < Arguments::num_c1x_args(); ++i) { | 72 for (int i = 0; i < Arguments::num_c1x_args(); ++i) { |
72 const char* arg = Arguments::c1x_args_array()[i]; | 73 const char* arg = Arguments::c1x_args_array()[i]; |
73 Handle option = java_lang_String::create_from_str(arg, THREAD); | 74 Handle option = java_lang_String::create_from_str(arg, THREAD); |
74 jboolean result = VMExits::setOption(option); | 75 jboolean result = VMExits::setOption(option); |
75 if (!result) fatal("Invalid option for C1X!"); | 76 if (!result) { |
77 tty->print_cr("Invalid option for C1X!"); | |
78 vm_abort(false); | |
79 } | |
76 } | 80 } |
77 | 81 |
78 VMExits::initializeCompiler(); | 82 VMExits::initializeCompiler(); |
79 } | 83 } |
80 } | 84 } |