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

Unified Diff: vm/intermediate_language.h

Issue 10827209: Unify class ids and snapshot object ids list so that we don't have disparate and sometimes confusin… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 4 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 | « vm/il_printer.cc ('k') | vm/intermediate_language_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/intermediate_language.h
===================================================================
--- vm/intermediate_language.h (revision 10409)
+++ vm/intermediate_language.h (working copy)
@@ -629,7 +629,7 @@
: ComparisonComp(kind, left, right),
token_pos_(token_pos),
try_index_(try_index),
- receiver_class_id_(kObject) {
+ receiver_class_id_(kObjectCid) {
ASSERT((kind == Token::kEQ) || (kind == Token::kNE));
}
@@ -663,7 +663,7 @@
: ComparisonComp(kind, left, right),
token_pos_(token_pos),
try_index_(try_index),
- operands_class_id_(kObject) {
+ operands_class_id_(kObjectCid) {
ASSERT(Token::IsRelationalOperator(kind));
}
@@ -950,7 +950,7 @@
Value* index)
: token_pos_(token_pos),
try_index_(try_index),
- receiver_type_(kIllegalObjectKind) {
+ receiver_type_(kIllegalCid) {
ASSERT(array != NULL);
ASSERT(index != NULL);
inputs_[0] = array;
@@ -964,11 +964,11 @@
Value* array() const { return inputs_[0]; }
Value* index() const { return inputs_[1]; }
- void set_receiver_type(ObjectKind receiver_type) {
+ void set_receiver_type(intptr_t receiver_type) {
receiver_type_ = receiver_type;
}
- ObjectKind receiver_type() const {
+ intptr_t receiver_type() const {
return receiver_type_;
}
@@ -977,7 +977,7 @@
private:
const intptr_t token_pos_;
const intptr_t try_index_;
- ObjectKind receiver_type_;
+ intptr_t receiver_type_;
DISALLOW_COPY_AND_ASSIGN(LoadIndexedComp);
};
@@ -994,7 +994,7 @@
Value* value)
: token_pos_(token_pos),
try_index_(try_index),
- receiver_type_(kIllegalObjectKind) {
+ receiver_type_(kIllegalCid) {
inputs_[0] = array;
inputs_[1] = index;
inputs_[2] = value;
@@ -1008,11 +1008,11 @@
Value* index() const { return inputs_[1]; }
Value* value() const { return inputs_[2]; }
- void set_receiver_type(ObjectKind receiver_type) {
+ void set_receiver_type(intptr_t receiver_type) {
receiver_type_ = receiver_type;
}
- ObjectKind receiver_type() const {
+ intptr_t receiver_type() const {
return receiver_type_;
}
@@ -1021,7 +1021,7 @@
private:
const intptr_t token_pos_;
const intptr_t try_index_;
- ObjectKind receiver_type_;
+ intptr_t receiver_type_;
DISALLOW_COPY_AND_ASSIGN(StoreIndexedComp);
};
@@ -1650,7 +1650,7 @@
class ToDoubleComp : public TemplateComputation<1> {
public:
ToDoubleComp(Value* value,
- ObjectKind from,
+ intptr_t from,
InstanceCallComp* instance_call)
: from_(from), instance_call_(instance_call) {
ASSERT(value != NULL);
@@ -1658,7 +1658,7 @@
}
Value* value() const { return inputs_[0]; }
- ObjectKind from() const { return from_; }
+ intptr_t from() const { return from_; }
InstanceCallComp* instance_call() const { return instance_call_; }
@@ -1669,7 +1669,7 @@
virtual bool CanDeoptimize() const { return true; }
private:
- const ObjectKind from_;
+ const intptr_t from_;
InstanceCallComp* instance_call_;
DISALLOW_COPY_AND_ASSIGN(ToDoubleComp);
« no previous file with comments | « vm/il_printer.cc ('k') | vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698