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

Unified Diff: runtime/vm/intermediate_language.h

Issue 513213002: Generate some intrinsics using our IR. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: addressed latest comments Created 6 years, 3 months 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/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 39909)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -1909,12 +1909,15 @@
class ParameterInstr : public Definition {
public:
- ParameterInstr(intptr_t index, BlockEntryInstr* block)
- : index_(index), block_(block) { }
+ ParameterInstr(intptr_t index,
+ BlockEntryInstr* block,
+ Register base_reg = FPREG)
+ : index_(index), base_reg_(base_reg), block_(block) { }
DECLARE_INSTRUCTION(Parameter)
intptr_t index() const { return index_; }
+ Register base_reg() const { return base_reg_; }
// Get the block entry for that instruction.
virtual BlockEntryInstr* GetBlock() const { return block_; }
@@ -1947,6 +1950,7 @@
virtual void RawSetInputAt(intptr_t i, Value* value) { UNREACHABLE(); }
const intptr_t index_;
+ const Register base_reg_;
BlockEntryInstr* block_;
DISALLOW_COPY_AND_ASSIGN(ParameterInstr);
@@ -7675,7 +7679,6 @@
public:
CheckSmiInstr(Value* value, intptr_t original_deopt_id, intptr_t token_pos)
: token_pos_(token_pos) {
- ASSERT(original_deopt_id != Isolate::kNoDeoptId);
SetInputAt(0, value);
deopt_id_ = original_deopt_id;
}

Powered by Google App Engine
This is Rietveld 408576698