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

Side by Side Diff: src/ic.h

Issue 13886013: Add infrastructure to automatucally generate IC miss stubs (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review feedback Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ic.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 // 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 /* Utilities for IC stubs. */ \ 52 /* Utilities for IC stubs. */ \
53 ICU(StoreCallbackProperty) \ 53 ICU(StoreCallbackProperty) \
54 ICU(LoadPropertyWithInterceptorOnly) \ 54 ICU(LoadPropertyWithInterceptorOnly) \
55 ICU(LoadPropertyWithInterceptorForLoad) \ 55 ICU(LoadPropertyWithInterceptorForLoad) \
56 ICU(LoadPropertyWithInterceptorForCall) \ 56 ICU(LoadPropertyWithInterceptorForCall) \
57 ICU(KeyedLoadPropertyWithInterceptor) \ 57 ICU(KeyedLoadPropertyWithInterceptor) \
58 ICU(StoreInterceptorProperty) \ 58 ICU(StoreInterceptorProperty) \
59 ICU(UnaryOp_Patch) \ 59 ICU(UnaryOp_Patch) \
60 ICU(BinaryOp_Patch) \ 60 ICU(BinaryOp_Patch) \
61 ICU(CompareIC_Miss) \ 61 ICU(CompareIC_Miss) \
62 ICU(Unreachable) \
62 ICU(ToBoolean_Patch) 63 ICU(ToBoolean_Patch)
63 // 64 //
64 // IC is the base class for LoadIC, StoreIC, CallIC, KeyedLoadIC, 65 // IC is the base class for LoadIC, StoreIC, CallIC, KeyedLoadIC,
65 // and KeyedStoreIC. 66 // and KeyedStoreIC.
66 // 67 //
67 class IC { 68 class IC {
68 public: 69 public:
69 // The ids for utility called from the generated code. 70 // The ids for utility called from the generated code.
70 enum UtilityId { 71 enum UtilityId {
71 #define CONST_NAME(name) k##name, 72 #define CONST_NAME(name) k##name,
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 // Helper for BinaryOpIC and CompareIC. 787 // Helper for BinaryOpIC and CompareIC.
787 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; 788 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK };
788 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); 789 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check);
789 790
790 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedLoadIC_MissFromStubFailure); 791 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedLoadIC_MissFromStubFailure);
791 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedStoreIC_MissFromStubFailure); 792 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedStoreIC_MissFromStubFailure);
792 793
793 } } // namespace v8::internal 794 } } // namespace v8::internal
794 795
795 #endif // V8_IC_H_ 796 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698