Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index 6a7b6616df26be410f667c59aa04ab0a2da75b97..0ed37017b14dcd62e68e8d466f6f2b6282d4d93b 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -632,7 +632,8 @@ class ArgumentsAccessStub: public CodeStub { |
public: |
enum Type { |
READ_ELEMENT, |
- NEW_NON_STRICT, |
+ NEW_NON_STRICT_FAST, |
+ NEW_NON_STRICT_SLOW, |
NEW_STRICT |
}; |
@@ -646,20 +647,9 @@ class ArgumentsAccessStub: public CodeStub { |
void Generate(MacroAssembler* masm); |
void GenerateReadElement(MacroAssembler* masm); |
- void GenerateNewObject(MacroAssembler* masm); |
- |
- int GetArgumentsBoilerplateIndex() const { |
- return (type_ == NEW_STRICT) |
- ? Context::STRICT_MODE_ARGUMENTS_BOILERPLATE_INDEX |
- : Context::ARGUMENTS_BOILERPLATE_INDEX; |
- } |
- |
- int GetArgumentsObjectSize() const { |
- if (type_ == NEW_STRICT) |
- return Heap::kArgumentsObjectSizeStrict; |
- else |
- return Heap::kArgumentsObjectSize; |
- } |
+ void GenerateNewStrict(MacroAssembler* masm); |
+ void GenerateNewNonStrictFast(MacroAssembler* masm); |
+ void GenerateNewNonStrictSlow(MacroAssembler* masm); |
const char* GetName() { return "ArgumentsAccessStub"; } |