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 // Review notes: | 5 // Review notes: |
6 // | 6 // |
7 // - The use of macros in these inline functions may seem superfluous | 7 // - The use of macros in these inline functions may seem superfluous |
8 // but it is absolutely needed to make sure gcc generates optimal | 8 // but it is absolutely needed to make sure gcc generates optimal |
9 // code. gcc is not happy when attempting to inline too deep. | 9 // code. gcc is not happy when attempting to inline too deep. |
10 // | 10 // |
(...skipping 5154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5165 #define CASE(name) case name: return true; | 5165 #define CASE(name) case name: return true; |
5166 IC_KIND_LIST(CASE) | 5166 IC_KIND_LIST(CASE) |
5167 #undef CASE | 5167 #undef CASE |
5168 default: return false; | 5168 default: return false; |
5169 } | 5169 } |
5170 } | 5170 } |
5171 | 5171 |
5172 bool Code::is_debug_stub() { | 5172 bool Code::is_debug_stub() { |
5173 if (kind() != BUILTIN) return false; | 5173 if (kind() != BUILTIN) return false; |
5174 switch (builtin_index()) { | 5174 switch (builtin_index()) { |
5175 #define CASE_DEBUG_BUILTIN(name, kind, extra) case Builtins::k##name: | 5175 #define CASE_DEBUG_BUILTIN(name) case Builtins::k##name: |
5176 BUILTIN_LIST_DEBUG_A(CASE_DEBUG_BUILTIN) | 5176 BUILTIN_LIST_DBG(CASE_DEBUG_BUILTIN) |
5177 #undef CASE_DEBUG_BUILTIN | 5177 #undef CASE_DEBUG_BUILTIN |
5178 return true; | 5178 return true; |
5179 default: | 5179 default: |
5180 return false; | 5180 return false; |
5181 } | 5181 } |
5182 return false; | 5182 return false; |
5183 } | 5183 } |
5184 bool Code::is_handler() { return kind() == HANDLER; } | 5184 bool Code::is_handler() { return kind() == HANDLER; } |
5185 bool Code::is_call_stub() { return kind() == CALL_IC; } | 5185 bool Code::is_call_stub() { return kind() == CALL_IC; } |
5186 bool Code::is_binary_op_stub() { return kind() == BINARY_OP_IC; } | 5186 bool Code::is_binary_op_stub() { return kind() == BINARY_OP_IC; } |
(...skipping 2931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8118 #undef WRITE_INT64_FIELD | 8118 #undef WRITE_INT64_FIELD |
8119 #undef READ_BYTE_FIELD | 8119 #undef READ_BYTE_FIELD |
8120 #undef WRITE_BYTE_FIELD | 8120 #undef WRITE_BYTE_FIELD |
8121 #undef NOBARRIER_READ_BYTE_FIELD | 8121 #undef NOBARRIER_READ_BYTE_FIELD |
8122 #undef NOBARRIER_WRITE_BYTE_FIELD | 8122 #undef NOBARRIER_WRITE_BYTE_FIELD |
8123 | 8123 |
8124 } // namespace internal | 8124 } // namespace internal |
8125 } // namespace v8 | 8125 } // namespace v8 |
8126 | 8126 |
8127 #endif // V8_OBJECTS_INL_H_ | 8127 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |