OLD | NEW |
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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 } | 205 } |
206 } | 206 } |
207 | 207 |
208 | 208 |
209 Code::Flags CompilationInfo::flags() const { | 209 Code::Flags CompilationInfo::flags() const { |
210 if (IsStub()) { | 210 if (IsStub()) { |
211 return Code::ComputeFlags(code_stub()->GetCodeKind(), | 211 return Code::ComputeFlags(code_stub()->GetCodeKind(), |
212 code_stub()->GetICState(), | 212 code_stub()->GetICState(), |
213 code_stub()->GetExtraICState(), | 213 code_stub()->GetExtraICState(), |
214 code_stub()->GetStubType(), | 214 code_stub()->GetStubType(), |
215 code_stub()->GetStubFlags()); | 215 code_stub()->GetHandlerKind()); |
216 } else { | 216 } else { |
217 return Code::ComputeFlags(Code::OPTIMIZED_FUNCTION); | 217 return Code::ComputeFlags(Code::OPTIMIZED_FUNCTION); |
218 } | 218 } |
219 } | 219 } |
220 | 220 |
221 | 221 |
222 // Disable optimization for the rest of the compilation pipeline. | 222 // Disable optimization for the rest of the compilation pipeline. |
223 void CompilationInfo::DisableOptimization() { | 223 void CompilationInfo::DisableOptimization() { |
224 bool is_optimizable_closure = | 224 bool is_optimizable_closure = |
225 FLAG_optimize_closures && | 225 FLAG_optimize_closures && |
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1291 AllowHandleDereference allow_deref; | 1291 AllowHandleDereference allow_deref; |
1292 bool tracing_on = info()->IsStub() | 1292 bool tracing_on = info()->IsStub() |
1293 ? FLAG_trace_hydrogen_stubs | 1293 ? FLAG_trace_hydrogen_stubs |
1294 : (FLAG_trace_hydrogen && | 1294 : (FLAG_trace_hydrogen && |
1295 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); | 1295 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); |
1296 return (tracing_on && | 1296 return (tracing_on && |
1297 OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); | 1297 OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); |
1298 } | 1298 } |
1299 | 1299 |
1300 } } // namespace v8::internal | 1300 } } // namespace v8::internal |
OLD | NEW |