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

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

Issue 1226123010: Represent implicit 'this' binding by 'super' in AST. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments. Created 5 years, 5 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
« no previous file with comments | « src/compiler/ast-loop-assignment-analyzer.cc ('k') | src/ia32/full-codegen-ia32.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_FULL_CODEGEN_H_ 5 #ifndef V8_FULL_CODEGEN_H_
6 #define V8_FULL_CODEGEN_H_ 6 #define V8_FULL_CODEGEN_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 } 637 }
638 638
639 // Adds the [[HomeObject]] to |initializer| if it is a FunctionLiteral. 639 // Adds the [[HomeObject]] to |initializer| if it is a FunctionLiteral.
640 // The value of the initializer is expected to be at the top of the stack. 640 // The value of the initializer is expected to be at the top of the stack.
641 // |offset| is the offset in the stack where the home object can be found. 641 // |offset| is the offset in the stack where the home object can be found.
642 void EmitSetHomeObjectIfNeeded( 642 void EmitSetHomeObjectIfNeeded(
643 Expression* initializer, int offset, 643 Expression* initializer, int offset,
644 FeedbackVectorICSlot slot = FeedbackVectorICSlot::Invalid()); 644 FeedbackVectorICSlot slot = FeedbackVectorICSlot::Invalid());
645 645
646 void EmitLoadSuperConstructor(SuperCallReference* super_call_ref); 646 void EmitLoadSuperConstructor(SuperCallReference* super_call_ref);
647 void EmitInitializeThisAfterSuper(
648 SuperCallReference* super_call_ref,
649 FeedbackVectorICSlot slot = FeedbackVectorICSlot::Invalid());
650 647
651 void CallIC(Handle<Code> code, 648 void CallIC(Handle<Code> code,
652 TypeFeedbackId id = TypeFeedbackId::None()); 649 TypeFeedbackId id = TypeFeedbackId::None());
653 650
654 // Inside typeof reference errors are never thrown. 651 // Inside typeof reference errors are never thrown.
655 void CallLoadIC(TypeofMode typeof_mode, LanguageMode language_mode = SLOPPY, 652 void CallLoadIC(TypeofMode typeof_mode, LanguageMode language_mode = SLOPPY,
656 TypeFeedbackId id = TypeFeedbackId::None()); 653 TypeFeedbackId id = TypeFeedbackId::None());
657 void CallStoreIC(TypeFeedbackId id = TypeFeedbackId::None()); 654 void CallStoreIC(TypeFeedbackId id = TypeFeedbackId::None());
658 655
659 void SetFunctionPosition(FunctionLiteral* fun); 656 void SetFunctionPosition(FunctionLiteral* fun);
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 1081
1085 Address start_; 1082 Address start_;
1086 Address instruction_start_; 1083 Address instruction_start_;
1087 uint32_t length_; 1084 uint32_t length_;
1088 }; 1085 };
1089 1086
1090 1087
1091 } } // namespace v8::internal 1088 } } // namespace v8::internal
1092 1089
1093 #endif // V8_FULL_CODEGEN_H_ 1090 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/compiler/ast-loop-assignment-analyzer.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698