Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1776)

Unified Diff: runtime/vm/code_generator.cc

Issue 11363141: Improve smi shift operations and avoid repeated deoptimizations. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/code_generator.h ('k') | runtime/vm/deopt_instructions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_generator.cc
===================================================================
--- runtime/vm/code_generator.cc (revision 14704)
+++ runtime/vm/code_generator.cc (working copy)
@@ -1753,7 +1753,8 @@
static intptr_t DeoptimizeWithDeoptInfo(const Code& code,
const DeoptInfo& deopt_info,
- const StackFrame& caller_frame) {
+ const StackFrame& caller_frame,
+ DeoptReasonId deopt_reason) {
const intptr_t len = deopt_info.TranslationLength();
GrowableArray<DeoptInstr*> deopt_instructions(len);
const Array& deopt_table = Array::Handle(code.deopt_info_array());
@@ -1772,7 +1773,8 @@
DeoptimizationContext deopt_context(start,
to_frame_size,
Array::Handle(code.object_table()),
- num_args);
+ num_args,
+ deopt_reason);
for (intptr_t to_index = len - 1; to_index >= 0; to_index--) {
deopt_instructions[to_index]->Execute(&deopt_context, to_index);
}
@@ -1817,7 +1819,8 @@
ASSERT(!deopt_info.IsNull());
const intptr_t caller_fp =
- DeoptimizeWithDeoptInfo(optimized_code, deopt_info, *caller_frame);
+ DeoptimizeWithDeoptInfo(optimized_code, deopt_info, *caller_frame,
+ deopt_reason);
isolate->SetDeoptFrameCopy(NULL, 0);
isolate->set_deopt_cpu_registers_copy(NULL);
« no previous file with comments | « runtime/vm/code_generator.h ('k') | runtime/vm/deopt_instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698