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

Side by Side Diff: src/objects-inl.h

Issue 2145413002: [builtins] unify builtins list. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix typos Created 4 years, 5 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
« no previous file with comments | « src/external-reference-table.cc ('k') | no next file » | 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 // 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
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
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_
OLDNEW
« no previous file with comments | « src/external-reference-table.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698