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

Unified Diff: runtime/vm/intermediate_language.h

Issue 132163005: Version 1.1.0-dev.5.7 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 6 years, 11 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
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 31662)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -482,6 +482,7 @@
// Change the definition after use lists have been computed.
inline void BindTo(Definition* definition);
+ inline void BindToEnvironment(Definition* definition);
Value* Copy() { return new Value(definition_); }
@@ -1794,6 +1795,13 @@
}
+inline void Value::BindToEnvironment(Definition* def) {
+ RemoveFromUseList();
+ set_definition(def);
+ def->AddEnvUse(this);
+}
+
+
class PhiInstr : public Definition {
public:
PhiInstr(JoinEntryInstr* block, intptr_t num_inputs)
@@ -3419,8 +3427,10 @@
class DebugStepCheckInstr : public TemplateInstruction<0> {
public:
- explicit DebugStepCheckInstr(intptr_t token_pos)
- : token_pos_(token_pos) {
+ DebugStepCheckInstr(intptr_t token_pos,
+ PcDescriptors::Kind stub_kind)
+ : token_pos_(token_pos),
+ stub_kind_(stub_kind) {
}
DECLARE_INSTRUCTION(DebugStepCheck)
@@ -3434,6 +3444,7 @@
private:
const intptr_t token_pos_;
+ const PcDescriptors::Kind stub_kind_;
DISALLOW_COPY_AND_ASSIGN(DebugStepCheckInstr);
};
@@ -4305,19 +4316,19 @@
: offset_in_bytes_(offset_in_bytes), type_(type) {
ASSERT(type.IsZoneHandle()); // May be null if field is not an instance.
SetInputAt(kValuePos, value);
- SetInputAt(kDestPos, dest);
+ SetInputAt(kObjectPos, dest);
}
enum {
kValuePos = 0,
- kDestPos = 1
+ kObjectPos = 1
};
DECLARE_INSTRUCTION(StoreVMField)
virtual CompileType* ComputeInitialType() const;
Value* value() const { return inputs_[kValuePos]; }
- Value* dest() const { return inputs_[kDestPos]; }
+ Value* dest() const { return inputs_[kObjectPos]; }
intptr_t offset_in_bytes() const { return offset_in_bytes_; }
const AbstractType& type() const { return type_; }
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698