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

Side by Side Diff: src/code-stubs.h

Issue 7172030: Revert "Merge arguments branch to bleeding merge." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/builtins.cc ('k') | src/codegen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 int MinorKey() { return 1; } 625 int MinorKey() { return 1; }
626 626
627 const char* GetName() { return "JSConstructEntryStub"; } 627 const char* GetName() { return "JSConstructEntryStub"; }
628 }; 628 };
629 629
630 630
631 class ArgumentsAccessStub: public CodeStub { 631 class ArgumentsAccessStub: public CodeStub {
632 public: 632 public:
633 enum Type { 633 enum Type {
634 READ_ELEMENT, 634 READ_ELEMENT,
635 NEW_NON_STRICT_FAST, 635 NEW_NON_STRICT,
636 NEW_NON_STRICT_SLOW,
637 NEW_STRICT 636 NEW_STRICT
638 }; 637 };
639 638
640 explicit ArgumentsAccessStub(Type type) : type_(type) { } 639 explicit ArgumentsAccessStub(Type type) : type_(type) { }
641 640
642 private: 641 private:
643 Type type_; 642 Type type_;
644 643
645 Major MajorKey() { return ArgumentsAccess; } 644 Major MajorKey() { return ArgumentsAccess; }
646 int MinorKey() { return type_; } 645 int MinorKey() { return type_; }
647 646
648 void Generate(MacroAssembler* masm); 647 void Generate(MacroAssembler* masm);
649 void GenerateReadElement(MacroAssembler* masm); 648 void GenerateReadElement(MacroAssembler* masm);
650 void GenerateNewStrict(MacroAssembler* masm); 649 void GenerateNewObject(MacroAssembler* masm);
651 void GenerateNewNonStrictFast(MacroAssembler* masm); 650
652 void GenerateNewNonStrictSlow(MacroAssembler* masm); 651 int GetArgumentsBoilerplateIndex() const {
652 return (type_ == NEW_STRICT)
653 ? Context::STRICT_MODE_ARGUMENTS_BOILERPLATE_INDEX
654 : Context::ARGUMENTS_BOILERPLATE_INDEX;
655 }
656
657 int GetArgumentsObjectSize() const {
658 if (type_ == NEW_STRICT)
659 return Heap::kArgumentsObjectSizeStrict;
660 else
661 return Heap::kArgumentsObjectSize;
662 }
653 663
654 const char* GetName() { return "ArgumentsAccessStub"; } 664 const char* GetName() { return "ArgumentsAccessStub"; }
655 665
656 #ifdef DEBUG 666 #ifdef DEBUG
657 void Print() { 667 void Print() {
658 PrintF("ArgumentsAccessStub (type %d)\n", type_); 668 PrintF("ArgumentsAccessStub (type %d)\n", type_);
659 } 669 }
660 #endif 670 #endif
661 }; 671 };
662 672
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 DECLARE_ARRAY_STUB_PRINT(KeyedStoreExternalArrayStub) 1007 DECLARE_ARRAY_STUB_PRINT(KeyedStoreExternalArrayStub)
998 1008
999 protected: 1009 protected:
1000 JSObject::ElementsKind elements_kind_; 1010 JSObject::ElementsKind elements_kind_;
1001 }; 1011 };
1002 1012
1003 1013
1004 } } // namespace v8::internal 1014 } } // namespace v8::internal
1005 1015
1006 #endif // V8_CODE_STUBS_H_ 1016 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698