| Index: runtime/vm/flow_graph_compiler_ia32.cc
|
| ===================================================================
|
| --- runtime/vm/flow_graph_compiler_ia32.cc (revision 13110)
|
| +++ runtime/vm/flow_graph_compiler_ia32.cc (working copy)
|
| @@ -22,8 +22,19 @@
|
| DECLARE_FLAG(bool, print_scopes);
|
| DECLARE_FLAG(bool, reject_named_argument_as_positional);
|
| DECLARE_FLAG(bool, trace_functions);
|
| +DECLARE_FLAG(bool, use_sse41);
|
| +DEFINE_FLAG(bool, trap_on_deoptimization, false, "Trap on deoptimization.");
|
| +DEFINE_FLAG(bool, unbox_mints, true, "Optimize 64-bit integer arithmetic.");
|
|
|
|
|
| +bool FlowGraphCompiler::SupportsUnboxedMints() {
|
| + // Support unboxed mints when SSE 4.1 is available.
|
| + return FLAG_unbox_mints
|
| + && CPUFeatures::sse4_1_supported()
|
| + && FLAG_use_sse41;
|
| +}
|
| +
|
| +
|
| void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler,
|
| intptr_t stub_ix) {
|
| // Calls do not need stubs, they share a deoptimization trampoline.
|
| @@ -32,6 +43,7 @@
|
| #define __ assem->
|
| __ Comment("Deopt stub for id %"Pd"", deopt_id());
|
| __ Bind(entry_label());
|
| + if (FLAG_trap_on_deoptimization) __ int3();
|
|
|
| ASSERT(deoptimization_env() != NULL);
|
|
|
|
|