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

Side by Side Diff: src/compiler.h

Issue 419503002: Flag for serialization when compiling code stubs if --serialize-toplevel. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: change test case slightly Created 6 years, 4 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/code-stubs-hydrogen.cc ('k') | test/cctest/cctest.status » ('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 // 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 #ifndef V8_COMPILER_H_ 5 #ifndef V8_COMPILER_H_
6 #define V8_COMPILER_H_ 6 #define V8_COMPILER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/zone.h" 10 #include "src/zone.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 void MarkAsDebug() { 178 void MarkAsDebug() {
179 flags_ |= IsDebug::encode(true); 179 flags_ |= IsDebug::encode(true);
180 } 180 }
181 181
182 bool is_debug() const { 182 bool is_debug() const {
183 return IsDebug::decode(flags_); 183 return IsDebug::decode(flags_);
184 } 184 }
185 185
186 void PrepareForSerializing() { 186 void PrepareForSerializing() {
187 ASSERT(!is_lazy());
188 flags_ |= PrepareForSerializing::encode(true); 187 flags_ |= PrepareForSerializing::encode(true);
189 } 188 }
190 189
191 bool will_serialize() const { return PrepareForSerializing::decode(flags_); } 190 bool will_serialize() const { return PrepareForSerializing::decode(flags_); }
192 191
193 bool IsCodePreAgingActive() const { 192 bool IsCodePreAgingActive() const {
194 return FLAG_optimize_for_size && FLAG_age_code && !will_serialize() && 193 return FLAG_optimize_for_size && FLAG_age_code && !will_serialize() &&
195 !is_debug(); 194 !is_debug();
196 } 195 }
197 196
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 Zone zone_; 736 Zone zone_;
738 unsigned info_zone_start_allocation_size_; 737 unsigned info_zone_start_allocation_size_;
739 base::ElapsedTimer timer_; 738 base::ElapsedTimer timer_;
740 739
741 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 740 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
742 }; 741 };
743 742
744 } } // namespace v8::internal 743 } } // namespace v8::internal
745 744
746 #endif // V8_COMPILER_H_ 745 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | test/cctest/cctest.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698