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

Side by Side Diff: src/objects.cc

Issue 17571016: Cleanup Code::Kind2String(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 10332 matching lines...) Expand 10 before | Expand all | Expand 10 after
10343 return; 10343 return;
10344 } 10344 }
10345 } 10345 }
10346 } 10346 }
10347 } 10347 }
10348 10348
10349 10349
10350 // Identify kind of code. 10350 // Identify kind of code.
10351 const char* Code::Kind2String(Kind kind) { 10351 const char* Code::Kind2String(Kind kind) {
10352 switch (kind) { 10352 switch (kind) {
10353 case FUNCTION: return "FUNCTION"; 10353 #define CASE(name) case name: return #name;
10354 case OPTIMIZED_FUNCTION: return "OPTIMIZED_FUNCTION"; 10354 CODE_KIND_LIST(CASE)
10355 case STUB: return "STUB"; 10355 #undef CASE
10356 case BUILTIN: return "BUILTIN";
10357 case LOAD_IC: return "LOAD_IC";
10358 case KEYED_LOAD_IC: return "KEYED_LOAD_IC";
10359 case STORE_IC: return "STORE_IC";
10360 case KEYED_STORE_IC: return "KEYED_STORE_IC";
10361 case CALL_IC: return "CALL_IC";
10362 case KEYED_CALL_IC: return "KEYED_CALL_IC";
10363 case UNARY_OP_IC: return "UNARY_OP_IC";
10364 case BINARY_OP_IC: return "BINARY_OP_IC";
10365 case COMPARE_IC: return "COMPARE_IC";
10366 case COMPARE_NIL_IC: return "COMPARE_NIL_IC";
10367 case TO_BOOLEAN_IC: return "TO_BOOLEAN_IC";
10368 case REGEXP: return "REGEXP";
10369 } 10356 }
10370 UNREACHABLE(); 10357 UNREACHABLE();
10371 return NULL; 10358 return NULL;
10372 } 10359 }
10373 10360
10374 10361
10375 #ifdef ENABLE_DISASSEMBLER 10362 #ifdef ENABLE_DISASSEMBLER
10376 10363
10377 void DeoptimizationInputData::DeoptimizationInputDataPrint(FILE* out) { 10364 void DeoptimizationInputData::DeoptimizationInputDataPrint(FILE* out) {
10378 disasm::NameConverter converter; 10365 disasm::NameConverter converter;
(...skipping 5388 matching lines...) Expand 10 before | Expand all | Expand 10 after
15767 return static_cast<Type*>(type_raw()); 15754 return static_cast<Type*>(type_raw());
15768 } 15755 }
15769 15756
15770 15757
15771 void PropertyCell::set_type(Type* type, WriteBarrierMode ignored) { 15758 void PropertyCell::set_type(Type* type, WriteBarrierMode ignored) {
15772 set_type_raw(type, ignored); 15759 set_type_raw(type, ignored);
15773 } 15760 }
15774 15761
15775 15762
15776 } } // namespace v8::internal 15763 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698