| Index: runtime/vm/code_generator.cc
|
| ===================================================================
|
| --- runtime/vm/code_generator.cc (revision 23031)
|
| +++ runtime/vm/code_generator.cc (working copy)
|
| @@ -38,11 +38,13 @@
|
| "Trace IC miss in optimized code");
|
| DEFINE_FLAG(bool, trace_patching, false, "Trace patching of code.");
|
| DEFINE_FLAG(bool, trace_runtime_calls, false, "Trace runtime calls");
|
| -#if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64)
|
| +#if defined(TARGET_ARCH_IA32) || \
|
| + defined(TARGET_ARCH_X64) || \
|
| + defined(TARGET_ARCH_ARM)
|
| DEFINE_FLAG(int, optimization_counter_threshold, 3000,
|
| "Function's usage-counter value before it is optimized, -1 means never");
|
| #else
|
| -// TODO(regis): Enable optimization on ARM and MIPS.
|
| +// TODO(regis): Enable optimization on MIPS.
|
| DEFINE_FLAG(int, optimization_counter_threshold, -1,
|
| "Function's usage-counter value before it is optimized, -1 means never");
|
| #endif
|
| @@ -1469,6 +1471,7 @@
|
|
|
| // Copy saved registers into the isolate buffer.
|
| static void CopySavedRegisters(uword saved_registers_address) {
|
| + ASSERT(sizeof(fpu_register_t) == kFpuRegisterSize);
|
| fpu_register_t* fpu_registers_copy =
|
| new fpu_register_t[kNumberOfFpuRegisters];
|
| ASSERT(fpu_registers_copy != NULL);
|
| @@ -1479,6 +1482,7 @@
|
| }
|
| Isolate::Current()->set_deopt_fpu_registers_copy(fpu_registers_copy);
|
|
|
| + ASSERT(sizeof(intptr_t) == kWordSize);
|
| intptr_t* cpu_registers_copy = new intptr_t[kNumberOfCpuRegisters];
|
| ASSERT(cpu_registers_copy != NULL);
|
| for (intptr_t i = 0; i < kNumberOfCpuRegisters; i++) {
|
| @@ -1727,6 +1731,7 @@
|
| String& line_string = String::Handle(script.GetLine(line));
|
| OS::PrintErr(" Function: %s\n", top_function.ToFullyQualifiedCString());
|
| OS::PrintErr(" Line %"Pd": '%s'\n", line, line_string.ToCString());
|
| + OS::PrintErr(" Deopt args: %"Pd"\n", deopt_arguments);
|
| }
|
| }
|
|
|
|
|