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

Side by Side Diff: src/objects.h

Issue 172523002: Create a function call IC (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 6 years, 9 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
« src/ic.cc ('K') | « src/log.cc ('k') | src/objects-inl.h » ('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 5121 matching lines...) Expand 10 before | Expand all | Expand 10 after
5132 V(FUNCTION) \ 5132 V(FUNCTION) \
5133 V(OPTIMIZED_FUNCTION) \ 5133 V(OPTIMIZED_FUNCTION) \
5134 V(STUB) \ 5134 V(STUB) \
5135 V(HANDLER) \ 5135 V(HANDLER) \
5136 V(BUILTIN) \ 5136 V(BUILTIN) \
5137 V(REGEXP) 5137 V(REGEXP)
5138 5138
5139 #define IC_KIND_LIST(V) \ 5139 #define IC_KIND_LIST(V) \
5140 V(LOAD_IC) \ 5140 V(LOAD_IC) \
5141 V(KEYED_LOAD_IC) \ 5141 V(KEYED_LOAD_IC) \
5142 V(CALL_IC) \
5142 V(STORE_IC) \ 5143 V(STORE_IC) \
5143 V(KEYED_STORE_IC) \ 5144 V(KEYED_STORE_IC) \
5144 V(BINARY_OP_IC) \ 5145 V(BINARY_OP_IC) \
5145 V(COMPARE_IC) \ 5146 V(COMPARE_IC) \
5146 V(COMPARE_NIL_IC) \ 5147 V(COMPARE_NIL_IC) \
5147 V(TO_BOOLEAN_IC) 5148 V(TO_BOOLEAN_IC)
5148 5149
5149 #define CODE_KIND_LIST(V) \ 5150 #define CODE_KIND_LIST(V) \
5150 NON_IC_KIND_LIST(V) \ 5151 NON_IC_KIND_LIST(V) \
5151 IC_KIND_LIST(V) 5152 IC_KIND_LIST(V)
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
5242 inline StubType type(); // Only valid for monomorphic IC stubs. 5243 inline StubType type(); // Only valid for monomorphic IC stubs.
5243 5244
5244 // Testers for IC stub kinds. 5245 // Testers for IC stub kinds.
5245 inline bool is_inline_cache_stub(); 5246 inline bool is_inline_cache_stub();
5246 inline bool is_debug_stub(); 5247 inline bool is_debug_stub();
5247 inline bool is_handler() { return kind() == HANDLER; } 5248 inline bool is_handler() { return kind() == HANDLER; }
5248 inline bool is_load_stub() { return kind() == LOAD_IC; } 5249 inline bool is_load_stub() { return kind() == LOAD_IC; }
5249 inline bool is_keyed_load_stub() { return kind() == KEYED_LOAD_IC; } 5250 inline bool is_keyed_load_stub() { return kind() == KEYED_LOAD_IC; }
5250 inline bool is_store_stub() { return kind() == STORE_IC; } 5251 inline bool is_store_stub() { return kind() == STORE_IC; }
5251 inline bool is_keyed_store_stub() { return kind() == KEYED_STORE_IC; } 5252 inline bool is_keyed_store_stub() { return kind() == KEYED_STORE_IC; }
5253 inline bool is_call_stub() { return kind() == CALL_IC; }
5252 inline bool is_binary_op_stub() { return kind() == BINARY_OP_IC; } 5254 inline bool is_binary_op_stub() { return kind() == BINARY_OP_IC; }
5253 inline bool is_compare_ic_stub() { return kind() == COMPARE_IC; } 5255 inline bool is_compare_ic_stub() { return kind() == COMPARE_IC; }
5254 inline bool is_compare_nil_ic_stub() { return kind() == COMPARE_NIL_IC; } 5256 inline bool is_compare_nil_ic_stub() { return kind() == COMPARE_NIL_IC; }
5255 inline bool is_to_boolean_ic_stub() { return kind() == TO_BOOLEAN_IC; } 5257 inline bool is_to_boolean_ic_stub() { return kind() == TO_BOOLEAN_IC; }
5256 inline bool is_keyed_stub(); 5258 inline bool is_keyed_stub();
5257 inline bool is_optimized_code() { return kind() == OPTIMIZED_FUNCTION; } 5259 inline bool is_optimized_code() { return kind() == OPTIMIZED_FUNCTION; }
5258 5260
5259 inline void set_raw_kind_specific_flags1(int value); 5261 inline void set_raw_kind_specific_flags1(int value);
5260 inline void set_raw_kind_specific_flags2(int value); 5262 inline void set_raw_kind_specific_flags2(int value);
5261 5263
(...skipping 5515 matching lines...) Expand 10 before | Expand all | Expand 10 after
10777 } else { 10779 } else {
10778 value &= ~(1 << bit_position); 10780 value &= ~(1 << bit_position);
10779 } 10781 }
10780 return value; 10782 return value;
10781 } 10783 }
10782 }; 10784 };
10783 10785
10784 } } // namespace v8::internal 10786 } } // namespace v8::internal
10785 10787
10786 #endif // V8_OBJECTS_H_ 10788 #endif // V8_OBJECTS_H_
OLDNEW
« src/ic.cc ('K') | « src/log.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698