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

Side by Side Diff: src/objects.h

Issue 224903005: Reland "create a function call IC" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments. Created 6 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/log.cc ('k') | src/objects.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 5181 matching lines...) Expand 10 before | Expand all | Expand 10 after
5192 V(FUNCTION) \ 5192 V(FUNCTION) \
5193 V(OPTIMIZED_FUNCTION) \ 5193 V(OPTIMIZED_FUNCTION) \
5194 V(STUB) \ 5194 V(STUB) \
5195 V(HANDLER) \ 5195 V(HANDLER) \
5196 V(BUILTIN) \ 5196 V(BUILTIN) \
5197 V(REGEXP) 5197 V(REGEXP)
5198 5198
5199 #define IC_KIND_LIST(V) \ 5199 #define IC_KIND_LIST(V) \
5200 V(LOAD_IC) \ 5200 V(LOAD_IC) \
5201 V(KEYED_LOAD_IC) \ 5201 V(KEYED_LOAD_IC) \
5202 V(CALL_IC) \
5202 V(STORE_IC) \ 5203 V(STORE_IC) \
5203 V(KEYED_STORE_IC) \ 5204 V(KEYED_STORE_IC) \
5204 V(BINARY_OP_IC) \ 5205 V(BINARY_OP_IC) \
5205 V(COMPARE_IC) \ 5206 V(COMPARE_IC) \
5206 V(COMPARE_NIL_IC) \ 5207 V(COMPARE_NIL_IC) \
5207 V(TO_BOOLEAN_IC) 5208 V(TO_BOOLEAN_IC)
5208 5209
5209 #define CODE_KIND_LIST(V) \ 5210 #define CODE_KIND_LIST(V) \
5210 NON_IC_KIND_LIST(V) \ 5211 NON_IC_KIND_LIST(V) \
5211 IC_KIND_LIST(V) 5212 IC_KIND_LIST(V)
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
5301 inline StubType type(); // Only valid for monomorphic IC stubs. 5302 inline StubType type(); // Only valid for monomorphic IC stubs.
5302 5303
5303 // Testers for IC stub kinds. 5304 // Testers for IC stub kinds.
5304 inline bool is_inline_cache_stub(); 5305 inline bool is_inline_cache_stub();
5305 inline bool is_debug_stub(); 5306 inline bool is_debug_stub();
5306 inline bool is_handler() { return kind() == HANDLER; } 5307 inline bool is_handler() { return kind() == HANDLER; }
5307 inline bool is_load_stub() { return kind() == LOAD_IC; } 5308 inline bool is_load_stub() { return kind() == LOAD_IC; }
5308 inline bool is_keyed_load_stub() { return kind() == KEYED_LOAD_IC; } 5309 inline bool is_keyed_load_stub() { return kind() == KEYED_LOAD_IC; }
5309 inline bool is_store_stub() { return kind() == STORE_IC; } 5310 inline bool is_store_stub() { return kind() == STORE_IC; }
5310 inline bool is_keyed_store_stub() { return kind() == KEYED_STORE_IC; } 5311 inline bool is_keyed_store_stub() { return kind() == KEYED_STORE_IC; }
5312 inline bool is_call_stub() { return kind() == CALL_IC; }
5311 inline bool is_binary_op_stub() { return kind() == BINARY_OP_IC; } 5313 inline bool is_binary_op_stub() { return kind() == BINARY_OP_IC; }
5312 inline bool is_compare_ic_stub() { return kind() == COMPARE_IC; } 5314 inline bool is_compare_ic_stub() { return kind() == COMPARE_IC; }
5313 inline bool is_compare_nil_ic_stub() { return kind() == COMPARE_NIL_IC; } 5315 inline bool is_compare_nil_ic_stub() { return kind() == COMPARE_NIL_IC; }
5314 inline bool is_to_boolean_ic_stub() { return kind() == TO_BOOLEAN_IC; } 5316 inline bool is_to_boolean_ic_stub() { return kind() == TO_BOOLEAN_IC; }
5315 inline bool is_keyed_stub(); 5317 inline bool is_keyed_stub();
5316 inline bool is_optimized_code() { return kind() == OPTIMIZED_FUNCTION; } 5318 inline bool is_optimized_code() { return kind() == OPTIMIZED_FUNCTION; }
5317 5319
5318 inline void set_raw_kind_specific_flags1(int value); 5320 inline void set_raw_kind_specific_flags1(int value);
5319 inline void set_raw_kind_specific_flags2(int value); 5321 inline void set_raw_kind_specific_flags2(int value);
5320 5322
(...skipping 5505 matching lines...) Expand 10 before | Expand all | Expand 10 after
10826 } else { 10828 } else {
10827 value &= ~(1 << bit_position); 10829 value &= ~(1 << bit_position);
10828 } 10830 }
10829 return value; 10831 return value;
10830 } 10832 }
10831 }; 10833 };
10832 10834
10833 } } // namespace v8::internal 10835 } } // namespace v8::internal
10834 10836
10835 #endif // V8_OBJECTS_H_ 10837 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/log.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698