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

Side by Side Diff: src/compiler.cc

Issue 23480031: Enable preaging of code objects when --optimize-for-size. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: bool -> enum Created 7 years, 1 month 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/compiler.h ('k') | src/factory.h » ('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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 Zone* zone) { 105 Zone* zone) {
106 isolate_ = isolate; 106 isolate_ = isolate;
107 function_ = NULL; 107 function_ = NULL;
108 scope_ = NULL; 108 scope_ = NULL;
109 global_scope_ = NULL; 109 global_scope_ = NULL;
110 extension_ = NULL; 110 extension_ = NULL;
111 pre_parse_data_ = NULL; 111 pre_parse_data_ = NULL;
112 zone_ = zone; 112 zone_ = zone;
113 deferred_handles_ = NULL; 113 deferred_handles_ = NULL;
114 code_stub_ = NULL; 114 code_stub_ = NULL;
115 prologue_offset_ = kPrologueOffsetNotSet; 115 prologue_offset_ = Code::kPrologueOffsetNotSet;
116 opt_count_ = shared_info().is_null() ? 0 : shared_info()->opt_count(); 116 opt_count_ = shared_info().is_null() ? 0 : shared_info()->opt_count();
117 no_frame_ranges_ = isolate->cpu_profiler()->is_profiling() 117 no_frame_ranges_ = isolate->cpu_profiler()->is_profiling()
118 ? new List<OffsetRange>(2) : NULL; 118 ? new List<OffsetRange>(2) : NULL;
119 for (int i = 0; i < DependentCode::kGroupCount; i++) { 119 for (int i = 0; i < DependentCode::kGroupCount; i++) {
120 dependencies_[i] = NULL; 120 dependencies_[i] = NULL;
121 } 121 }
122 if (mode == STUB) { 122 if (mode == STUB) {
123 mode_ = STUB; 123 mode_ = STUB;
124 return; 124 return;
125 } 125 }
(...skipping 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 AllowHandleDereference allow_deref; 1346 AllowHandleDereference allow_deref;
1347 bool tracing_on = info()->IsStub() 1347 bool tracing_on = info()->IsStub()
1348 ? FLAG_trace_hydrogen_stubs 1348 ? FLAG_trace_hydrogen_stubs
1349 : (FLAG_trace_hydrogen && 1349 : (FLAG_trace_hydrogen &&
1350 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); 1350 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter));
1351 return (tracing_on && 1351 return (tracing_on &&
1352 OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); 1352 OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL);
1353 } 1353 }
1354 1354
1355 } } // namespace v8::internal 1355 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler.h ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698