| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| 126 mode_ = isolate->use_crankshaft() ? mode : NONOPT; | 126 mode_ = mode; |
| 127 abort_due_to_dependency_ = false; | 127 abort_due_to_dependency_ = false; |
| 128 if (script_->type()->value() == Script::TYPE_NATIVE) { | 128 if (script_->type()->value() == Script::TYPE_NATIVE) { |
| 129 MarkAsNative(); | 129 MarkAsNative(); |
| 130 } | 130 } |
| 131 if (!shared_info_.is_null()) { | 131 if (!shared_info_.is_null()) { |
| 132 ASSERT(language_mode() == CLASSIC_MODE); | 132 ASSERT(language_mode() == CLASSIC_MODE); |
| 133 SetLanguageMode(shared_info_->language_mode()); | 133 SetLanguageMode(shared_info_->language_mode()); |
| 134 } | 134 } |
| 135 set_bailout_reason(kUnknown); | 135 set_bailout_reason(kUnknown); |
| 136 } | 136 } |
| (...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |