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

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

Issue 8098020: 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: 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 2978 matching lines...) Expand 10 before | Expand all | Expand 10 after
2989 2989
2990 2990
2991 void Code::set_has_debug_break_slots(bool value) { 2991 void Code::set_has_debug_break_slots(bool value) {
2992 ASSERT(kind() == FUNCTION); 2992 ASSERT(kind() == FUNCTION);
2993 byte flags = READ_BYTE_FIELD(this, kFullCodeFlags); 2993 byte flags = READ_BYTE_FIELD(this, kFullCodeFlags);
2994 flags = FullCodeFlagsHasDebugBreakSlotsField::update(flags, value); 2994 flags = FullCodeFlagsHasDebugBreakSlotsField::update(flags, value);
2995 WRITE_BYTE_FIELD(this, kFullCodeFlags, flags); 2995 WRITE_BYTE_FIELD(this, kFullCodeFlags, flags);
2996 } 2996 }
2997 2997
2998 2998
2999 bool Code::is_compiled_optimizable() {
3000 ASSERT(kind() == FUNCTION);
3001 byte flags = READ_BYTE_FIELD(this, kFullCodeFlags);
3002 return FullCodeFlagsIsCompiledOptimizable::decode(flags);
3003 }
3004
3005
3006 void Code::set_compiled_optimizable(bool value) {
3007 ASSERT(kind() == FUNCTION);
3008 byte flags = READ_BYTE_FIELD(this, kFullCodeFlags);
3009 flags = FullCodeFlagsIsCompiledOptimizable::update(flags, value);
3010 WRITE_BYTE_FIELD(this, kFullCodeFlags, flags);
3011 }
3012
3013
2999 int Code::allow_osr_at_loop_nesting_level() { 3014 int Code::allow_osr_at_loop_nesting_level() {
3000 ASSERT(kind() == FUNCTION); 3015 ASSERT(kind() == FUNCTION);
3001 return READ_BYTE_FIELD(this, kAllowOSRAtLoopNestingLevelOffset); 3016 return READ_BYTE_FIELD(this, kAllowOSRAtLoopNestingLevelOffset);
3002 } 3017 }
3003 3018
3004 3019
3005 void Code::set_allow_osr_at_loop_nesting_level(int level) { 3020 void Code::set_allow_osr_at_loop_nesting_level(int level) {
3006 ASSERT(kind() == FUNCTION); 3021 ASSERT(kind() == FUNCTION);
3007 ASSERT(level >= 0 && level <= kMaxLoopNestingMarker); 3022 ASSERT(level >= 0 && level <= kMaxLoopNestingMarker);
3008 WRITE_BYTE_FIELD(this, kAllowOSRAtLoopNestingLevelOffset, level); 3023 WRITE_BYTE_FIELD(this, kAllowOSRAtLoopNestingLevelOffset, level);
(...skipping 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after
4677 #undef WRITE_INT_FIELD 4692 #undef WRITE_INT_FIELD
4678 #undef READ_SHORT_FIELD 4693 #undef READ_SHORT_FIELD
4679 #undef WRITE_SHORT_FIELD 4694 #undef WRITE_SHORT_FIELD
4680 #undef READ_BYTE_FIELD 4695 #undef READ_BYTE_FIELD
4681 #undef WRITE_BYTE_FIELD 4696 #undef WRITE_BYTE_FIELD
4682 4697
4683 4698
4684 } } // namespace v8::internal 4699 } } // namespace v8::internal
4685 4700
4686 #endif // V8_OBJECTS_INL_H_ 4701 #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