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

Side by Side Diff: src/objects.h

Issue 11640041: Refactoring only: Extracted method to print deopt location. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years 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/deoptimizer.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 4510 matching lines...) Expand 10 before | Expand all | Expand 10 after
4521 kCodeAgeCount = kAfterLastCodeAge - 1 4521 kCodeAgeCount = kAfterLastCodeAge - 1
4522 }; 4522 };
4523 #undef DECLARE_CODE_AGE_ENUM 4523 #undef DECLARE_CODE_AGE_ENUM
4524 4524
4525 // Code aging 4525 // Code aging
4526 static void MakeCodeAgeSequenceYoung(byte* sequence); 4526 static void MakeCodeAgeSequenceYoung(byte* sequence);
4527 void MakeOlder(MarkingParity); 4527 void MakeOlder(MarkingParity);
4528 static bool IsYoungSequence(byte* sequence); 4528 static bool IsYoungSequence(byte* sequence);
4529 bool IsOld(); 4529 bool IsOld();
4530 4530
4531 void PrintDeoptLocation(int bailout_id);
4532
4531 // Max loop nesting marker used to postpose OSR. We don't take loop 4533 // Max loop nesting marker used to postpose OSR. We don't take loop
4532 // nesting that is deeper than 5 levels into account. 4534 // nesting that is deeper than 5 levels into account.
4533 static const int kMaxLoopNestingMarker = 6; 4535 static const int kMaxLoopNestingMarker = 6;
4534 4536
4535 // Layout description. 4537 // Layout description.
4536 static const int kInstructionSizeOffset = HeapObject::kHeaderSize; 4538 static const int kInstructionSizeOffset = HeapObject::kHeaderSize;
4537 static const int kRelocationInfoOffset = kInstructionSizeOffset + kIntSize; 4539 static const int kRelocationInfoOffset = kInstructionSizeOffset + kIntSize;
4538 static const int kHandlerTableOffset = kRelocationInfoOffset + kPointerSize; 4540 static const int kHandlerTableOffset = kRelocationInfoOffset + kPointerSize;
4539 static const int kDeoptimizationDataOffset = 4541 static const int kDeoptimizationDataOffset =
4540 kHandlerTableOffset + kPointerSize; 4542 kHandlerTableOffset + kPointerSize;
(...skipping 4343 matching lines...) Expand 10 before | Expand all | Expand 10 after
8884 } else { 8886 } else {
8885 value &= ~(1 << bit_position); 8887 value &= ~(1 << bit_position);
8886 } 8888 }
8887 return value; 8889 return value;
8888 } 8890 }
8889 }; 8891 };
8890 8892
8891 } } // namespace v8::internal 8893 } } // namespace v8::internal
8892 8894
8893 #endif // V8_OBJECTS_H_ 8895 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698