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

Unified Diff: runtime/vm/deopt_instructions.h

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.cc ('k') | runtime/vm/deopt_instructions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/deopt_instructions.h
===================================================================
--- runtime/vm/deopt_instructions.h (revision 14704)
+++ runtime/vm/deopt_instructions.h (working copy)
@@ -7,6 +7,7 @@
#include "vm/allocation.h"
#include "vm/assembler.h"
+#include "vm/code_generator.h"
#include "vm/growable_array.h"
#include "vm/object.h"
@@ -24,7 +25,8 @@
DeoptimizationContext(intptr_t* to_frame_start,
intptr_t to_frame_size,
const Array& object_table,
- intptr_t num_args);
+ intptr_t num_args,
+ DeoptReasonId deopt_reason);
intptr_t* GetFromFrameAddressAt(intptr_t index) const {
ASSERT((0 <= index) && (index < from_frame_size_));
@@ -62,6 +64,8 @@
intptr_t from_frame_size() const { return from_frame_size_; }
+ DeoptReasonId deopt_reason() const { return deopt_reason_; }
+
private:
const Array& object_table_;
intptr_t* to_frame_;
@@ -71,6 +75,7 @@
intptr_t* registers_copy_;
double* xmm_registers_copy_;
const intptr_t num_args_;
+ const DeoptReasonId deopt_reason_;
intptr_t caller_fp_;
Isolate* isolate_;
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/deopt_instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698