| Index: src/code-stubs.h
|
| diff --git a/src/code-stubs.h b/src/code-stubs.h
|
| index 9480fc4b1da26c84edf0deda689d272950e95e7b..53d4d214da8befababfb25fd9b3650c86005ec4e 100644
|
| --- a/src/code-stubs.h
|
| +++ b/src/code-stubs.h
|
| @@ -62,6 +62,7 @@ namespace internal {
|
| V(StackCheck) \
|
| V(FastNewClosure) \
|
| V(FastNewContext) \
|
| + V(FastNewBlockContext) \
|
| V(FastCloneShallowArray) \
|
| V(RevertToNumber) \
|
| V(ToBoolean) \
|
| @@ -336,7 +337,7 @@ class FastNewContextStub : public CodeStub {
|
| static const int kMaximumSlots = 64;
|
|
|
| explicit FastNewContextStub(int slots) : slots_(slots) {
|
| - ASSERT(slots_ > 0 && slots <= kMaximumSlots);
|
| + ASSERT(slots_ > 0 && slots_ <= kMaximumSlots);
|
| }
|
|
|
| void Generate(MacroAssembler* masm);
|
| @@ -349,6 +350,24 @@ class FastNewContextStub : public CodeStub {
|
| };
|
|
|
|
|
| +class FastNewBlockContextStub : public CodeStub {
|
| + public:
|
| + static const int kMaximumSlots = 64;
|
| +
|
| + explicit FastNewBlockContextStub(int slots) : slots_(slots) {
|
| + ASSERT(slots_ > 0 && slots_ <= kMaximumSlots);
|
| + }
|
| +
|
| + void Generate(MacroAssembler* masm);
|
| +
|
| + private:
|
| + int slots_;
|
| +
|
| + Major MajorKey() { return FastNewBlockContext; }
|
| + int MinorKey() { return slots_; }
|
| +};
|
| +
|
| +
|
| class FastCloneShallowArrayStub : public CodeStub {
|
| public:
|
| // Maximum length of copied elements array.
|
|
|