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

Side by Side Diff: src/objects.h

Issue 16901014: CPUProfiler: Simplify logging part of CreateCodeEvent functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: comments addressed Created 7 years, 6 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 | « src/log-utils.cc ('k') | src/objects.cc » ('j') | 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 // 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 4436 matching lines...) Expand 10 before | Expand all | Expand 10 after
4447 V(LOAD_IC) \ 4447 V(LOAD_IC) \
4448 V(KEYED_LOAD_IC) \ 4448 V(KEYED_LOAD_IC) \
4449 V(CALL_IC) \ 4449 V(CALL_IC) \
4450 V(KEYED_CALL_IC) \ 4450 V(KEYED_CALL_IC) \
4451 V(STORE_IC) \ 4451 V(STORE_IC) \
4452 V(KEYED_STORE_IC) \ 4452 V(KEYED_STORE_IC) \
4453 V(UNARY_OP_IC) \ 4453 V(UNARY_OP_IC) \
4454 V(BINARY_OP_IC) \ 4454 V(BINARY_OP_IC) \
4455 V(COMPARE_IC) \ 4455 V(COMPARE_IC) \
4456 V(COMPARE_NIL_IC) \ 4456 V(COMPARE_NIL_IC) \
4457 V(TO_BOOLEAN_IC) 4457 V(TO_BOOLEAN_IC) \
4458 V(REGEXP)
4459
4458 4460
4459 enum Kind { 4461 enum Kind {
4460 #define DEFINE_CODE_KIND_ENUM(name) name, 4462 #define DEFINE_CODE_KIND_ENUM(name) name,
4461 CODE_KIND_LIST(DEFINE_CODE_KIND_ENUM) 4463 CODE_KIND_LIST(DEFINE_CODE_KIND_ENUM)
4462 #undef DEFINE_CODE_KIND_ENUM 4464 #undef DEFINE_CODE_KIND_ENUM
4463 4465
4464 // Pseudo-kinds. 4466 // Pseudo-kinds.
4465 LAST_CODE_KIND = TO_BOOLEAN_IC, 4467 LAST_CODE_KIND = TO_BOOLEAN_IC,
4466 REGEXP = BUILTIN,
4467 FIRST_IC_KIND = LOAD_IC, 4468 FIRST_IC_KIND = LOAD_IC,
4468 LAST_IC_KIND = TO_BOOLEAN_IC 4469 LAST_IC_KIND = TO_BOOLEAN_IC
4469 }; 4470 };
4470 4471
4471 // No more than 16 kinds. The value is currently encoded in four bits in 4472 // No more than 16 kinds. The value is currently encoded in four bits in
4472 // Flags. 4473 // Flags.
4473 STATIC_ASSERT(LAST_CODE_KIND < 16); 4474 STATIC_ASSERT(LAST_CODE_KIND < 16);
4474 4475
4475 static const char* Kind2String(Kind kind); 4476 static const char* Kind2String(Kind kind);
4476 4477
(...skipping 5250 matching lines...) Expand 10 before | Expand all | Expand 10 after
9727 } else { 9728 } else {
9728 value &= ~(1 << bit_position); 9729 value &= ~(1 << bit_position);
9729 } 9730 }
9730 return value; 9731 return value;
9731 } 9732 }
9732 }; 9733 };
9733 9734
9734 } } // namespace v8::internal 9735 } } // namespace v8::internal
9735 9736
9736 #endif // V8_OBJECTS_H_ 9737 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/log-utils.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698