| OLD | NEW |
| 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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 void GenerateReadElement(MacroAssembler* masm); | 675 void GenerateReadElement(MacroAssembler* masm); |
| 676 void GenerateNewObject(MacroAssembler* masm); | 676 void GenerateNewObject(MacroAssembler* masm); |
| 677 | 677 |
| 678 int GetArgumentsBoilerplateIndex() const { | 678 int GetArgumentsBoilerplateIndex() const { |
| 679 return (type_ == NEW_STRICT) | 679 return (type_ == NEW_STRICT) |
| 680 ? Context::STRICT_MODE_ARGUMENTS_BOILERPLATE_INDEX | 680 ? Context::STRICT_MODE_ARGUMENTS_BOILERPLATE_INDEX |
| 681 : Context::ARGUMENTS_BOILERPLATE_INDEX; | 681 : Context::ARGUMENTS_BOILERPLATE_INDEX; |
| 682 } | 682 } |
| 683 | 683 |
| 684 int GetArgumentsObjectSize() const { | 684 int GetArgumentsObjectSize() const { |
| 685 return (type_ == NEW_STRICT) | 685 if (type_ == NEW_STRICT) |
| 686 ? Heap::kArgumentsObjectSizeStrict | 686 return Heap::kArgumentsObjectSizeStrict; |
| 687 : Heap::kArgumentsObjectSize; | 687 else |
| 688 return Heap::kArgumentsObjectSize; |
| 688 } | 689 } |
| 689 | 690 |
| 690 const char* GetName() { return "ArgumentsAccessStub"; } | 691 const char* GetName() { return "ArgumentsAccessStub"; } |
| 691 | 692 |
| 692 #ifdef DEBUG | 693 #ifdef DEBUG |
| 693 void Print() { | 694 void Print() { |
| 694 PrintF("ArgumentsAccessStub (type %d)\n", type_); | 695 PrintF("ArgumentsAccessStub (type %d)\n", type_); |
| 695 } | 696 } |
| 696 #endif | 697 #endif |
| 697 }; | 698 }; |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 private: | 953 private: |
| 953 MacroAssembler* masm_; | 954 MacroAssembler* masm_; |
| 954 bool previous_allow_; | 955 bool previous_allow_; |
| 955 | 956 |
| 956 DISALLOW_COPY_AND_ASSIGN(AllowStubCallsScope); | 957 DISALLOW_COPY_AND_ASSIGN(AllowStubCallsScope); |
| 957 }; | 958 }; |
| 958 | 959 |
| 959 } } // namespace v8::internal | 960 } } // namespace v8::internal |
| 960 | 961 |
| 961 #endif // V8_CODE_STUBS_H_ | 962 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |