| Index: src/code-stubs.h
|
| ===================================================================
|
| --- src/code-stubs.h (revision 12502)
|
| +++ src/code-stubs.h (working copy)
|
| @@ -375,7 +375,7 @@
|
| class FastCloneShallowArrayStub : public CodeStub {
|
| public:
|
| // Maximum length of copied elements array.
|
| - static const int kMaximumClonedLength = 8;
|
| + static int MaximumClonedLength();
|
|
|
| enum Mode {
|
| CLONE_ELEMENTS,
|
| @@ -388,7 +388,7 @@
|
| : mode_(mode),
|
| length_((mode == COPY_ON_WRITE_ELEMENTS) ? 0 : length) {
|
| ASSERT_GE(length_, 0);
|
| - ASSERT_LE(length_, kMaximumClonedLength);
|
| + ASSERT_LE(length_, MaximumClonedLength());
|
| }
|
|
|
| void Generate(MacroAssembler* masm);
|
| @@ -408,11 +408,11 @@
|
| class FastCloneShallowObjectStub : public CodeStub {
|
| public:
|
| // Maximum number of properties in copied object.
|
| - static const int kMaximumClonedProperties = 6;
|
| + static int MaximumClonedProperties();
|
|
|
| explicit FastCloneShallowObjectStub(int length) : length_(length) {
|
| ASSERT_GE(length_, 0);
|
| - ASSERT_LE(length_, kMaximumClonedProperties);
|
| + ASSERT_LE(length_, MaximumClonedProperties());
|
| }
|
|
|
| void Generate(MacroAssembler* masm);
|
|
|