OLD | NEW |
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_FULL_CODEGEN_H_ | 5 #ifndef V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
10 #include "src/ast/ast.h" | 10 #include "src/ast/ast.h" |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 FeedbackVectorSlot slot); | 614 FeedbackVectorSlot slot); |
615 | 615 |
616 // Platform-specific code for loading a slot to a register. | 616 // Platform-specific code for loading a slot to a register. |
617 void EmitLoadSlot(Register destination, FeedbackVectorSlot slot); | 617 void EmitLoadSlot(Register destination, FeedbackVectorSlot slot); |
618 // Platform-specific code for pushing a slot to the stack. | 618 // Platform-specific code for pushing a slot to the stack. |
619 void EmitPushSlot(FeedbackVectorSlot slot); | 619 void EmitPushSlot(FeedbackVectorSlot slot); |
620 | 620 |
621 void CallIC(Handle<Code> code, | 621 void CallIC(Handle<Code> code, |
622 TypeFeedbackId id = TypeFeedbackId::None()); | 622 TypeFeedbackId id = TypeFeedbackId::None()); |
623 | 623 |
624 void CallLoadIC(TypeFeedbackId id = TypeFeedbackId::None()); | 624 void CallLoadIC(FeedbackVectorSlot slot, Handle<Object> name, |
625 // Inside typeof reference errors are never thrown. | 625 TypeFeedbackId id = TypeFeedbackId::None()); |
626 void CallLoadGlobalIC(TypeofMode typeof_mode, | |
627 TypeFeedbackId id = TypeFeedbackId::None()); | |
628 void CallStoreIC(FeedbackVectorSlot slot, Handle<Object> name, | 626 void CallStoreIC(FeedbackVectorSlot slot, Handle<Object> name, |
629 TypeFeedbackId id = TypeFeedbackId::None()); | 627 TypeFeedbackId id = TypeFeedbackId::None()); |
630 void CallKeyedStoreIC(FeedbackVectorSlot slot); | 628 void CallKeyedStoreIC(FeedbackVectorSlot slot); |
631 | 629 |
632 void SetFunctionPosition(FunctionLiteral* fun); | 630 void SetFunctionPosition(FunctionLiteral* fun); |
633 void SetReturnPosition(FunctionLiteral* fun); | 631 void SetReturnPosition(FunctionLiteral* fun); |
634 | 632 |
635 enum InsertBreak { INSERT_BREAK, SKIP_BREAK }; | 633 enum InsertBreak { INSERT_BREAK, SKIP_BREAK }; |
636 | 634 |
637 // During stepping we want to be able to break at each statement, but not at | 635 // During stepping we want to be able to break at each statement, but not at |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1027 Address start_; | 1025 Address start_; |
1028 Address instruction_start_; | 1026 Address instruction_start_; |
1029 uint32_t length_; | 1027 uint32_t length_; |
1030 }; | 1028 }; |
1031 | 1029 |
1032 | 1030 |
1033 } // namespace internal | 1031 } // namespace internal |
1034 } // namespace v8 | 1032 } // namespace v8 |
1035 | 1033 |
1036 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 1034 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
OLD | NEW |