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

Side by Side Diff: src/lithium.h

Issue 11438042: Allow lazy compilation (and thus optimisation) of functions inside eval. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments 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/contexts.h ('k') | src/parser.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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 : public BitField<Lifetime, kLifetimeShift, kLifetimeWidth> { 149 : public BitField<Lifetime, kLifetimeShift, kLifetimeWidth> {
150 }; 150 };
151 151
152 class VirtualRegisterField 152 class VirtualRegisterField
153 : public BitField<unsigned, 153 : public BitField<unsigned,
154 kVirtualRegisterShift, 154 kVirtualRegisterShift,
155 kVirtualRegisterWidth> { 155 kVirtualRegisterWidth> {
156 }; 156 };
157 157
158 static const int kMaxVirtualRegisters = 1 << kVirtualRegisterWidth; 158 static const int kMaxVirtualRegisters = 1 << kVirtualRegisterWidth;
159 static const int kMaxFixedIndex = (1 << kFixedIndexWidth) - 1; 159 static const int kMaxFixedIndex = (1 << (kFixedIndexWidth - 1)) - 1;
160 static const int kMinFixedIndex = -(1 << kFixedIndexWidth); 160 static const int kMinFixedIndex = -(1 << (kFixedIndexWidth - 1));
161 161
162 bool HasAnyPolicy() const { 162 bool HasAnyPolicy() const {
163 return policy() == ANY; 163 return policy() == ANY;
164 } 164 }
165 bool HasFixedPolicy() const { 165 bool HasFixedPolicy() const {
166 return policy() == FIXED_REGISTER || 166 return policy() == FIXED_REGISTER ||
167 policy() == FIXED_DOUBLE_REGISTER || 167 policy() == FIXED_DOUBLE_REGISTER ||
168 policy() == FIXED_SLOT; 168 policy() == FIXED_SLOT;
169 } 169 }
170 bool HasRegisterPolicy() const { 170 bool HasRegisterPolicy() const {
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 ZoneList<Handle<JSFunction> > inlined_closures_; 703 ZoneList<Handle<JSFunction> > inlined_closures_;
704 }; 704 };
705 705
706 706
707 int ElementsKindToShiftSize(ElementsKind elements_kind); 707 int ElementsKindToShiftSize(ElementsKind elements_kind);
708 708
709 709
710 } } // namespace v8::internal 710 } } // namespace v8::internal
711 711
712 #endif // V8_LITHIUM_H_ 712 #endif // V8_LITHIUM_H_
OLDNEW
« no previous file with comments | « src/contexts.h ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698