1 // Copyright 2020 the V8 project authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "src/objects/code-kind.h" 6 7 namespace v8 { 8 namespace internal { 9 CodeKindToString(CodeKind kind)10const char* CodeKindToString(CodeKind kind) { 11 switch (kind) { 12 #define CASE(name) \ 13 case CodeKind::name: \ 14 return #name; 15 CODE_KIND_LIST(CASE) 16 #undef CASE 17 } 18 UNREACHABLE(); 19 } 20 21 } // namespace internal 22 } // namespace v8 23