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

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

Issue 8337009: Reapply "Support for precise stepping in functions compiled before debugging was started (step 2)" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Correct default value Created 9 years, 2 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/utils.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 2964 matching lines...) Expand 10 before | Expand all | Expand 10 after
2975 2975
2976 2976
2977 void Code::set_has_debug_break_slots(bool value) { 2977 void Code::set_has_debug_break_slots(bool value) {
2978 ASSERT(kind() == FUNCTION); 2978 ASSERT(kind() == FUNCTION);
2979 byte flags = READ_BYTE_FIELD(this, kFullCodeFlags); 2979 byte flags = READ_BYTE_FIELD(this, kFullCodeFlags);
2980 flags = FullCodeFlagsHasDebugBreakSlotsField::update(flags, value); 2980 flags = FullCodeFlagsHasDebugBreakSlotsField::update(flags, value);
2981 WRITE_BYTE_FIELD(this, kFullCodeFlags, flags); 2981 WRITE_BYTE_FIELD(this, kFullCodeFlags, flags);
2982 } 2982 }
2983 2983
2984 2984
2985 bool Code::is_compiled_optimizable() {
2986 ASSERT(kind() == FUNCTION);
2987 byte flags = READ_BYTE_FIELD(this, kFullCodeFlags);
2988 return FullCodeFlagsIsCompiledOptimizable::decode(flags);
2989 }
2990
2991
2992 void Code::set_compiled_optimizable(bool value) {
2993 ASSERT(kind() == FUNCTION);
2994 byte flags = READ_BYTE_FIELD(this, kFullCodeFlags);
2995 flags = FullCodeFlagsIsCompiledOptimizable::update(flags, value);
2996 WRITE_BYTE_FIELD(this, kFullCodeFlags, flags);
2997 }
2998
2999
2985 int Code::allow_osr_at_loop_nesting_level() { 3000 int Code::allow_osr_at_loop_nesting_level() {
2986 ASSERT(kind() == FUNCTION); 3001 ASSERT(kind() == FUNCTION);
2987 return READ_BYTE_FIELD(this, kAllowOSRAtLoopNestingLevelOffset); 3002 return READ_BYTE_FIELD(this, kAllowOSRAtLoopNestingLevelOffset);
2988 } 3003 }
2989 3004
2990 3005
2991 void Code::set_allow_osr_at_loop_nesting_level(int level) { 3006 void Code::set_allow_osr_at_loop_nesting_level(int level) {
2992 ASSERT(kind() == FUNCTION); 3007 ASSERT(kind() == FUNCTION);
2993 ASSERT(level >= 0 && level <= kMaxLoopNestingMarker); 3008 ASSERT(level >= 0 && level <= kMaxLoopNestingMarker);
2994 WRITE_BYTE_FIELD(this, kAllowOSRAtLoopNestingLevelOffset, level); 3009 WRITE_BYTE_FIELD(this, kAllowOSRAtLoopNestingLevelOffset, level);
(...skipping 1673 matching lines...) Expand 10 before | Expand all | Expand 10 after
4668 #undef WRITE_INT_FIELD 4683 #undef WRITE_INT_FIELD
4669 #undef READ_SHORT_FIELD 4684 #undef READ_SHORT_FIELD
4670 #undef WRITE_SHORT_FIELD 4685 #undef WRITE_SHORT_FIELD
4671 #undef READ_BYTE_FIELD 4686 #undef READ_BYTE_FIELD
4672 #undef WRITE_BYTE_FIELD 4687 #undef WRITE_BYTE_FIELD
4673 4688
4674 4689
4675 } } // namespace v8::internal 4690 } } // namespace v8::internal
4676 4691
4677 #endif // V8_OBJECTS_INL_H_ 4692 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698