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

Issue 192513002: Checking for stack height equality between full codegen and hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 6 years, 7 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.cc ('k') | no next file » | 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 return length >= 0 && 711 return length >= 0 &&
712 length % DeoptimizationInputData::kDeoptEntrySize == 0; 712 length % DeoptimizationInputData::kDeoptEntrySize == 0;
713 } 713 }
714 714
715 715
716 bool Object::IsDeoptimizationOutputData() { 716 bool Object::IsDeoptimizationOutputData() {
717 if (!IsFixedArray()) return false; 717 if (!IsFixedArray()) return false;
718 // There's actually no way to see the difference between a fixed array and 718 // There's actually no way to see the difference between a fixed array and
719 // a deoptimization data array. Since this is used for asserts we can check 719 // a deoptimization data array. Since this is used for asserts we can check
720 // that the length is plausible though. 720 // that the length is plausible though.
721 if (FixedArray::cast(this)->length() % 2 != 0) return false; 721 return (FixedArray::cast(this)->length() %
722 return true; 722 DeoptimizationOutputData::kDeoptPointElementCount == 0);
723 } 723 }
724 724
725 725
726 bool Object::IsDependentCode() { 726 bool Object::IsDependentCode() {
727 if (!IsFixedArray()) return false; 727 if (!IsFixedArray()) return false;
728 // There's actually no way to see the difference between a fixed array and 728 // There's actually no way to see the difference between a fixed array and
729 // a dependent codes array. 729 // a dependent codes array.
730 return true; 730 return true;
731 } 731 }
732 732
(...skipping 6120 matching lines...) Expand 10 before | Expand all | Expand 10 after
6853 #undef READ_SHORT_FIELD 6853 #undef READ_SHORT_FIELD
6854 #undef WRITE_SHORT_FIELD 6854 #undef WRITE_SHORT_FIELD
6855 #undef READ_BYTE_FIELD 6855 #undef READ_BYTE_FIELD
6856 #undef WRITE_BYTE_FIELD 6856 #undef WRITE_BYTE_FIELD
6857 #undef NOBARRIER_READ_BYTE_FIELD 6857 #undef NOBARRIER_READ_BYTE_FIELD
6858 #undef NOBARRIER_WRITE_BYTE_FIELD 6858 #undef NOBARRIER_WRITE_BYTE_FIELD
6859 6859
6860 } } // namespace v8::internal 6860 } } // namespace v8::internal
6861 6861
6862 #endif // V8_OBJECTS_INL_H_ 6862 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698