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

Side by Side Diff: src/x64/codegen-x64.h

Issue 340037: Support for calls on named and keyed properties of the form:... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 1 month 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/ia32/fast-codegen-ia32.cc ('k') | src/x64/codegen-x64.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 }; 626 };
627 627
628 628
629 // ------------------------------------------------------------------------- 629 // -------------------------------------------------------------------------
630 // Code stubs 630 // Code stubs
631 // 631 //
632 // These independent code objects are created once, and used multiple 632 // These independent code objects are created once, and used multiple
633 // times by generated code to perform common tasks, often the slow 633 // times by generated code to perform common tasks, often the slow
634 // case of a JavaScript operation. They are all subclasses of CodeStub, 634 // case of a JavaScript operation. They are all subclasses of CodeStub,
635 // which is declared in code-stubs.h. 635 // which is declared in code-stubs.h.
636 class CallFunctionStub: public CodeStub {
637 public:
638 CallFunctionStub(int argc, InLoopFlag in_loop)
639 : argc_(argc), in_loop_(in_loop) { }
640
641 void Generate(MacroAssembler* masm);
642
643 private:
644 int argc_;
645 InLoopFlag in_loop_;
646
647 #ifdef DEBUG
648 void Print() { PrintF("CallFunctionStub (args %d)\n", argc_); }
649 #endif
650
651 Major MajorKey() { return CallFunction; }
652 int MinorKey() { return argc_; }
653 InLoopFlag InLoop() { return in_loop_; }
654 };
636 655
637 656
638 class ToBooleanStub: public CodeStub { 657 class ToBooleanStub: public CodeStub {
639 public: 658 public:
640 ToBooleanStub() { } 659 ToBooleanStub() { }
641 660
642 void Generate(MacroAssembler* masm); 661 void Generate(MacroAssembler* masm);
643 662
644 private: 663 private:
645 Major MajorKey() { return ToBoolean; } 664 Major MajorKey() { return ToBoolean; }
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 void SetArgsReversed() { args_reversed_ = true; } 753 void SetArgsReversed() { args_reversed_ = true; }
735 bool HasSmiCodeInStub() { return (flags_ & NO_SMI_CODE_IN_STUB) == 0; } 754 bool HasSmiCodeInStub() { return (flags_ & NO_SMI_CODE_IN_STUB) == 0; }
736 bool HasArgumentsInRegisters() { return args_in_registers_; } 755 bool HasArgumentsInRegisters() { return args_in_registers_; }
737 bool HasArgumentsReversed() { return args_reversed_; } 756 bool HasArgumentsReversed() { return args_reversed_; }
738 }; 757 };
739 758
740 759
741 } } // namespace v8::internal 760 } } // namespace v8::internal
742 761
743 #endif // V8_X64_CODEGEN_X64_H_ 762 #endif // V8_X64_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/ia32/fast-codegen-ia32.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698