OLD | NEW |
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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/compiler.h" | 7 #include "src/compiler.h" |
8 | 8 |
9 #include "src/ast-numbering.h" | 9 #include "src/ast-numbering.h" |
10 #include "src/ast-this-access-visitor.h" | 10 #include "src/ast-this-access-visitor.h" |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 178 |
179 if (isolate_->debug()->is_active()) MarkAsDebug(); | 179 if (isolate_->debug()->is_active()) MarkAsDebug(); |
180 if (FLAG_context_specialization) MarkAsContextSpecializing(); | 180 if (FLAG_context_specialization) MarkAsContextSpecializing(); |
181 if (FLAG_turbo_inlining) MarkAsInliningEnabled(); | 181 if (FLAG_turbo_inlining) MarkAsInliningEnabled(); |
182 if (FLAG_turbo_types) MarkAsTypingEnabled(); | 182 if (FLAG_turbo_types) MarkAsTypingEnabled(); |
183 | 183 |
184 if (!shared_info_.is_null()) { | 184 if (!shared_info_.is_null()) { |
185 DCHECK(strict_mode() == SLOPPY); | 185 DCHECK(strict_mode() == SLOPPY); |
186 SetStrictMode(shared_info_->strict_mode()); | 186 SetStrictMode(shared_info_->strict_mode()); |
187 } | 187 } |
188 bailout_reason_ = kUnknown; | 188 bailout_reason_ = kNoReason; |
189 | 189 |
190 if (!shared_info().is_null() && shared_info()->is_compiled()) { | 190 if (!shared_info().is_null() && shared_info()->is_compiled()) { |
191 // We should initialize the CompilationInfo feedback vector from the | 191 // We should initialize the CompilationInfo feedback vector from the |
192 // passed in shared info, rather than creating a new one. | 192 // passed in shared info, rather than creating a new one. |
193 feedback_vector_ = | 193 feedback_vector_ = |
194 Handle<TypeFeedbackVector>(shared_info()->feedback_vector(), isolate); | 194 Handle<TypeFeedbackVector>(shared_info()->feedback_vector(), isolate); |
195 } | 195 } |
196 } | 196 } |
197 | 197 |
198 | 198 |
(...skipping 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1578 AllowHandleDereference allow_deref; | 1578 AllowHandleDereference allow_deref; |
1579 bool tracing_on = info()->IsStub() | 1579 bool tracing_on = info()->IsStub() |
1580 ? FLAG_trace_hydrogen_stubs | 1580 ? FLAG_trace_hydrogen_stubs |
1581 : (FLAG_trace_hydrogen && | 1581 : (FLAG_trace_hydrogen && |
1582 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); | 1582 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); |
1583 return (tracing_on && | 1583 return (tracing_on && |
1584 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); | 1584 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); |
1585 } | 1585 } |
1586 | 1586 |
1587 } } // namespace v8::internal | 1587 } } // namespace v8::internal |
OLD | NEW |