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

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

Issue 8050010: 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: Fixed missing comment 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 2959 matching lines...) Expand 10 before | Expand all | Expand 10 after
2970 2970
2971 2971
2972 void Code::set_has_debug_break_slots(bool value) { 2972 void Code::set_has_debug_break_slots(bool value) {
2973 ASSERT(kind() == FUNCTION); 2973 ASSERT(kind() == FUNCTION);
2974 byte flags = READ_BYTE_FIELD(this, kFullCodeFlags); 2974 byte flags = READ_BYTE_FIELD(this, kFullCodeFlags);
2975 flags = FullCodeFlagsHasDebugBreakSlotsField::update(flags, value); 2975 flags = FullCodeFlagsHasDebugBreakSlotsField::update(flags, value);
2976 WRITE_BYTE_FIELD(this, kFullCodeFlags, flags); 2976 WRITE_BYTE_FIELD(this, kFullCodeFlags, flags);
2977 } 2977 }
2978 2978
2979 2979
2980 bool Code::is_compiled_optimizable() {
2981 ASSERT(kind() == FUNCTION);
2982 byte flags = READ_BYTE_FIELD(this, kFullCodeFlags);
2983 return FullCodeFlagsIsCompiledOptimizable::decode(flags);
2984 }
2985
2986
2987 void Code::set_compiled_optimizable(bool value) {
2988 ASSERT(kind() == FUNCTION);
2989 byte flags = READ_BYTE_FIELD(this, kFullCodeFlags);
2990 flags = FullCodeFlagsIsCompiledOptimizable::update(flags, value);
2991 WRITE_BYTE_FIELD(this, kFullCodeFlags, flags);
2992 }
2993
2994
2980 int Code::allow_osr_at_loop_nesting_level() { 2995 int Code::allow_osr_at_loop_nesting_level() {
2981 ASSERT(kind() == FUNCTION); 2996 ASSERT(kind() == FUNCTION);
2982 return READ_BYTE_FIELD(this, kAllowOSRAtLoopNestingLevelOffset); 2997 return READ_BYTE_FIELD(this, kAllowOSRAtLoopNestingLevelOffset);
2983 } 2998 }
2984 2999
2985 3000
2986 void Code::set_allow_osr_at_loop_nesting_level(int level) { 3001 void Code::set_allow_osr_at_loop_nesting_level(int level) {
2987 ASSERT(kind() == FUNCTION); 3002 ASSERT(kind() == FUNCTION);
2988 ASSERT(level >= 0 && level <= kMaxLoopNestingMarker); 3003 ASSERT(level >= 0 && level <= kMaxLoopNestingMarker);
2989 WRITE_BYTE_FIELD(this, kAllowOSRAtLoopNestingLevelOffset, level); 3004 WRITE_BYTE_FIELD(this, kAllowOSRAtLoopNestingLevelOffset, level);
(...skipping 1655 matching lines...) Expand 10 before | Expand all | Expand 10 after
4645 #undef WRITE_INT_FIELD 4660 #undef WRITE_INT_FIELD
4646 #undef READ_SHORT_FIELD 4661 #undef READ_SHORT_FIELD
4647 #undef WRITE_SHORT_FIELD 4662 #undef WRITE_SHORT_FIELD
4648 #undef READ_BYTE_FIELD 4663 #undef READ_BYTE_FIELD
4649 #undef WRITE_BYTE_FIELD 4664 #undef WRITE_BYTE_FIELD
4650 4665
4651 4666
4652 } } // namespace v8::internal 4667 } } // namespace v8::internal
4653 4668
4654 #endif // V8_OBJECTS_INL_H_ 4669 #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