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

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
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_;
+ DeoptReasonId deopt_reason_;
srdjan 2012/11/08 21:37:27 const
Florian Schneider 2012/11/08 22:03:00 Done.
intptr_t caller_fp_;
Isolate* isolate_;

Powered by Google App Engine
This is Rietveld 408576698