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_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include "allocation.h" | 8 #include "allocation.h" |
9 #include "assert-scope.h" | 9 #include "assert-scope.h" |
10 #include "builtins.h" | 10 #include "builtins.h" |
(...skipping 5312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5323 V(FUNCTION) \ | 5323 V(FUNCTION) \ |
5324 V(OPTIMIZED_FUNCTION) \ | 5324 V(OPTIMIZED_FUNCTION) \ |
5325 V(STUB) \ | 5325 V(STUB) \ |
5326 V(HANDLER) \ | 5326 V(HANDLER) \ |
5327 V(BUILTIN) \ | 5327 V(BUILTIN) \ |
5328 V(REGEXP) | 5328 V(REGEXP) |
5329 | 5329 |
5330 #define IC_KIND_LIST(V) \ | 5330 #define IC_KIND_LIST(V) \ |
5331 V(LOAD_IC) \ | 5331 V(LOAD_IC) \ |
5332 V(KEYED_LOAD_IC) \ | 5332 V(KEYED_LOAD_IC) \ |
| 5333 V(CALL_IC) \ |
5333 V(STORE_IC) \ | 5334 V(STORE_IC) \ |
5334 V(KEYED_STORE_IC) \ | 5335 V(KEYED_STORE_IC) \ |
5335 V(BINARY_OP_IC) \ | 5336 V(BINARY_OP_IC) \ |
5336 V(COMPARE_IC) \ | 5337 V(COMPARE_IC) \ |
5337 V(COMPARE_NIL_IC) \ | 5338 V(COMPARE_NIL_IC) \ |
5338 V(TO_BOOLEAN_IC) | 5339 V(TO_BOOLEAN_IC) |
5339 | 5340 |
5340 #define CODE_KIND_LIST(V) \ | 5341 #define CODE_KIND_LIST(V) \ |
5341 NON_IC_KIND_LIST(V) \ | 5342 NON_IC_KIND_LIST(V) \ |
5342 IC_KIND_LIST(V) | 5343 IC_KIND_LIST(V) |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5432 inline StubType type(); // Only valid for monomorphic IC stubs. | 5433 inline StubType type(); // Only valid for monomorphic IC stubs. |
5433 | 5434 |
5434 // Testers for IC stub kinds. | 5435 // Testers for IC stub kinds. |
5435 inline bool is_inline_cache_stub(); | 5436 inline bool is_inline_cache_stub(); |
5436 inline bool is_debug_stub(); | 5437 inline bool is_debug_stub(); |
5437 inline bool is_handler() { return kind() == HANDLER; } | 5438 inline bool is_handler() { return kind() == HANDLER; } |
5438 inline bool is_load_stub() { return kind() == LOAD_IC; } | 5439 inline bool is_load_stub() { return kind() == LOAD_IC; } |
5439 inline bool is_keyed_load_stub() { return kind() == KEYED_LOAD_IC; } | 5440 inline bool is_keyed_load_stub() { return kind() == KEYED_LOAD_IC; } |
5440 inline bool is_store_stub() { return kind() == STORE_IC; } | 5441 inline bool is_store_stub() { return kind() == STORE_IC; } |
5441 inline bool is_keyed_store_stub() { return kind() == KEYED_STORE_IC; } | 5442 inline bool is_keyed_store_stub() { return kind() == KEYED_STORE_IC; } |
| 5443 inline bool is_call_stub() { return kind() == CALL_IC; } |
5442 inline bool is_binary_op_stub() { return kind() == BINARY_OP_IC; } | 5444 inline bool is_binary_op_stub() { return kind() == BINARY_OP_IC; } |
5443 inline bool is_compare_ic_stub() { return kind() == COMPARE_IC; } | 5445 inline bool is_compare_ic_stub() { return kind() == COMPARE_IC; } |
5444 inline bool is_compare_nil_ic_stub() { return kind() == COMPARE_NIL_IC; } | 5446 inline bool is_compare_nil_ic_stub() { return kind() == COMPARE_NIL_IC; } |
5445 inline bool is_to_boolean_ic_stub() { return kind() == TO_BOOLEAN_IC; } | 5447 inline bool is_to_boolean_ic_stub() { return kind() == TO_BOOLEAN_IC; } |
5446 inline bool is_keyed_stub(); | 5448 inline bool is_keyed_stub(); |
5447 inline bool is_optimized_code() { return kind() == OPTIMIZED_FUNCTION; } | 5449 inline bool is_optimized_code() { return kind() == OPTIMIZED_FUNCTION; } |
5448 inline bool is_weak_stub(); | 5450 inline bool is_weak_stub(); |
5449 inline void mark_as_weak_stub(); | 5451 inline void mark_as_weak_stub(); |
5450 inline bool is_invalidated_weak_stub(); | 5452 inline bool is_invalidated_weak_stub(); |
5451 inline void mark_as_invalidated_weak_stub(); | 5453 inline void mark_as_invalidated_weak_stub(); |
(...skipping 5721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11173 } else { | 11175 } else { |
11174 value &= ~(1 << bit_position); | 11176 value &= ~(1 << bit_position); |
11175 } | 11177 } |
11176 return value; | 11178 return value; |
11177 } | 11179 } |
11178 }; | 11180 }; |
11179 | 11181 |
11180 } } // namespace v8::internal | 11182 } } // namespace v8::internal |
11181 | 11183 |
11182 #endif // V8_OBJECTS_H_ | 11184 #endif // V8_OBJECTS_H_ |
OLD | NEW |