Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index ae113f5729a58d26bcdfeffff0ee5011a2570954..a3bba6eae658e5a775abcfc4c9dfc2c7d739767d 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -386,7 +386,8 @@ class FastCloneShallowArrayStub : public CodeStub { |
CLONE_ELEMENTS, |
CLONE_DOUBLE_ELEMENTS, |
COPY_ON_WRITE_ELEMENTS, |
- CLONE_ANY_ELEMENTS |
+ CLONE_ANY_ELEMENTS, |
+ CLONE_ANY_ELEMENTS_WITH_ALLOCATION_INFO |
danno
2012/12/26 10:32:01
Add LAST_CLONE_MODE = CLONE_ANY_ELEMENTS_WITH_ALLO
mvstanton
2013/01/03 14:40:43
Done.
|
}; |
FastCloneShallowArrayStub(Mode mode, int length) |
@@ -404,8 +405,9 @@ class FastCloneShallowArrayStub : public CodeStub { |
Major MajorKey() { return FastCloneShallowArray; } |
int MinorKey() { |
- ASSERT(mode_ == 0 || mode_ == 1 || mode_ == 2 || mode_ == 3); |
- return length_ * 4 + mode_; |
+ ASSERT(mode_ == 0 || mode_ == 1 || mode_ == 2 || mode_ == 3 || |
danno
2012/12/26 10:32:01
While you're here, how about adding a constant
con
mvstanton
2013/01/03 14:40:43
Done.
|
+ mode_ == 4); |
+ return length_ * 5 + mode_; |
danno
2012/12/26 10:32:01
return length_ * kFastCloneModeCount + mode_;
mvstanton
2013/01/03 14:40:43
Done.
|
} |
}; |