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-inl.h

Issue 9845019: Port count-based profiler to x64 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 8 years, 8 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/objects.h ('k') | src/runtime.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 3042 matching lines...) Expand 10 before | Expand all | Expand 10 after
3053 3053
3054 3054
3055 void Code::set_compiled_optimizable(bool value) { 3055 void Code::set_compiled_optimizable(bool value) {
3056 ASSERT(kind() == FUNCTION); 3056 ASSERT(kind() == FUNCTION);
3057 byte flags = READ_BYTE_FIELD(this, kFullCodeFlags); 3057 byte flags = READ_BYTE_FIELD(this, kFullCodeFlags);
3058 flags = FullCodeFlagsIsCompiledOptimizable::update(flags, value); 3058 flags = FullCodeFlagsIsCompiledOptimizable::update(flags, value);
3059 WRITE_BYTE_FIELD(this, kFullCodeFlags, flags); 3059 WRITE_BYTE_FIELD(this, kFullCodeFlags, flags);
3060 } 3060 }
3061 3061
3062 3062
3063 bool Code::has_self_optimization_header() {
3064 ASSERT(kind() == FUNCTION);
3065 byte flags = READ_BYTE_FIELD(this, kFullCodeFlags);
3066 return FullCodeFlagsHasSelfOptimizationHeader::decode(flags);
3067 }
3068
3069
3070 void Code::set_self_optimization_header(bool value) {
3071 ASSERT(kind() == FUNCTION);
3072 byte flags = READ_BYTE_FIELD(this, kFullCodeFlags);
3073 flags = FullCodeFlagsHasSelfOptimizationHeader::update(flags, value);
3074 WRITE_BYTE_FIELD(this, kFullCodeFlags, flags);
3075 }
3076
3077
3078 int Code::allow_osr_at_loop_nesting_level() { 3063 int Code::allow_osr_at_loop_nesting_level() {
3079 ASSERT(kind() == FUNCTION); 3064 ASSERT(kind() == FUNCTION);
3080 return READ_BYTE_FIELD(this, kAllowOSRAtLoopNestingLevelOffset); 3065 return READ_BYTE_FIELD(this, kAllowOSRAtLoopNestingLevelOffset);
3081 } 3066 }
3082 3067
3083 3068
3084 void Code::set_allow_osr_at_loop_nesting_level(int level) { 3069 void Code::set_allow_osr_at_loop_nesting_level(int level) {
3085 ASSERT(kind() == FUNCTION); 3070 ASSERT(kind() == FUNCTION);
3086 ASSERT(level >= 0 && level <= kMaxLoopNestingMarker); 3071 ASSERT(level >= 0 && level <= kMaxLoopNestingMarker);
3087 WRITE_BYTE_FIELD(this, kAllowOSRAtLoopNestingLevelOffset, level); 3072 WRITE_BYTE_FIELD(this, kAllowOSRAtLoopNestingLevelOffset, level);
(...skipping 1840 matching lines...) Expand 10 before | Expand all | Expand 10 after
4928 #undef WRITE_UINT32_FIELD 4913 #undef WRITE_UINT32_FIELD
4929 #undef READ_SHORT_FIELD 4914 #undef READ_SHORT_FIELD
4930 #undef WRITE_SHORT_FIELD 4915 #undef WRITE_SHORT_FIELD
4931 #undef READ_BYTE_FIELD 4916 #undef READ_BYTE_FIELD
4932 #undef WRITE_BYTE_FIELD 4917 #undef WRITE_BYTE_FIELD
4933 4918
4934 4919
4935 } } // namespace v8::internal 4920 } } // namespace v8::internal
4936 4921
4937 #endif // V8_OBJECTS_INL_H_ 4922 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698