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

Side by Side Diff: src/lithium.h

Issue 7231008: Fix an overflow in on-stack replacement spill-slot allocation for Crankshaft. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 6 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/ia32/lithium-ia32.cc ('k') | src/x64/lithium-x64.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 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 : public BitField<Lifetime, kLifetimeShift, kLifetimeWidth> { 137 : public BitField<Lifetime, kLifetimeShift, kLifetimeWidth> {
138 }; 138 };
139 139
140 class VirtualRegisterField 140 class VirtualRegisterField
141 : public BitField<unsigned, 141 : public BitField<unsigned,
142 kVirtualRegisterShift, 142 kVirtualRegisterShift,
143 kVirtualRegisterWidth> { 143 kVirtualRegisterWidth> {
144 }; 144 };
145 145
146 static const int kMaxVirtualRegisters = 1 << (kVirtualRegisterWidth + 1); 146 static const int kMaxVirtualRegisters = 1 << (kVirtualRegisterWidth + 1);
147 static const int kMaxFixedIndices = 128; 147 static const int kMaxFixedIndex = 63;
148 static const int kMinFixedIndex = -64;
148 149
149 bool HasIgnorePolicy() const { return policy() == IGNORE; } 150 bool HasIgnorePolicy() const { return policy() == IGNORE; }
150 bool HasNoPolicy() const { return policy() == NONE; } 151 bool HasNoPolicy() const { return policy() == NONE; }
151 bool HasAnyPolicy() const { 152 bool HasAnyPolicy() const {
152 return policy() == ANY; 153 return policy() == ANY;
153 } 154 }
154 bool HasFixedPolicy() const { 155 bool HasFixedPolicy() const {
155 return policy() == FIXED_REGISTER || 156 return policy() == FIXED_REGISTER ||
156 policy() == FIXED_DOUBLE_REGISTER || 157 policy() == FIXED_DOUBLE_REGISTER ||
157 policy() == FIXED_SLOT; 158 policy() == FIXED_SLOT;
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 ShallowIterator current_iterator_; 585 ShallowIterator current_iterator_;
585 }; 586 };
586 587
587 588
588 int ElementsKindToShiftSize(JSObject::ElementsKind elements_kind); 589 int ElementsKindToShiftSize(JSObject::ElementsKind elements_kind);
589 590
590 591
591 } } // namespace v8::internal 592 } } // namespace v8::internal
592 593
593 #endif // V8_LITHIUM_H_ 594 #endif // V8_LITHIUM_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698