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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 FeedbackSlot slot); | 476 FeedbackSlot slot); |
477 | 477 |
478 void EmitSetHomeObjectAccumulator(Expression* initializer, int offset, | 478 void EmitSetHomeObjectAccumulator(Expression* initializer, int offset, |
479 FeedbackSlot slot); | 479 FeedbackSlot slot); |
480 | 480 |
481 // Platform-specific code for loading a slot to a register. | 481 // Platform-specific code for loading a slot to a register. |
482 void EmitLoadSlot(Register destination, FeedbackSlot slot); | 482 void EmitLoadSlot(Register destination, FeedbackSlot slot); |
483 // Platform-specific code for pushing a slot to the stack. | 483 // Platform-specific code for pushing a slot to the stack. |
484 void EmitPushSlot(FeedbackSlot slot); | 484 void EmitPushSlot(FeedbackSlot slot); |
485 | 485 |
486 void CallIC(Handle<Code> code, | 486 void CallIC(Handle<Code> code); |
487 TypeFeedbackId id = TypeFeedbackId::None()); | |
488 | 487 |
489 void CallLoadIC(FeedbackSlot slot, Handle<Object> name); | 488 void CallLoadIC(FeedbackSlot slot, Handle<Object> name); |
490 enum StoreICKind { kStoreNamed, kStoreOwn, kStoreGlobal }; | 489 enum StoreICKind { kStoreNamed, kStoreOwn, kStoreGlobal }; |
491 void CallStoreIC(FeedbackSlot slot, Handle<Object> name, | 490 void CallStoreIC(FeedbackSlot slot, Handle<Object> name, |
492 StoreICKind store_ic_kind = kStoreNamed); | 491 StoreICKind store_ic_kind = kStoreNamed); |
493 void CallKeyedStoreIC(FeedbackSlot slot); | 492 void CallKeyedStoreIC(FeedbackSlot slot); |
494 | 493 |
495 void SetFunctionPosition(FunctionLiteral* fun); | 494 void SetFunctionPosition(FunctionLiteral* fun); |
496 void SetReturnPosition(FunctionLiteral* fun); | 495 void SetReturnPosition(FunctionLiteral* fun); |
497 | 496 |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
860 Address start_; | 859 Address start_; |
861 Address instruction_start_; | 860 Address instruction_start_; |
862 uint32_t length_; | 861 uint32_t length_; |
863 }; | 862 }; |
864 | 863 |
865 | 864 |
866 } // namespace internal | 865 } // namespace internal |
867 } // namespace v8 | 866 } // namespace v8 |
868 | 867 |
869 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 868 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
OLD | NEW |