| 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/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 | 167 |
| 168 if (!shared_info_.is_null()) { | 168 if (!shared_info_.is_null()) { |
| 169 DCHECK(strict_mode() == SLOPPY); | 169 DCHECK(strict_mode() == SLOPPY); |
| 170 SetStrictMode(shared_info_->strict_mode()); | 170 SetStrictMode(shared_info_->strict_mode()); |
| 171 } | 171 } |
| 172 set_bailout_reason(kUnknown); | 172 set_bailout_reason(kUnknown); |
| 173 | 173 |
| 174 if (!shared_info().is_null() && shared_info()->is_compiled()) { | 174 if (!shared_info().is_null() && shared_info()->is_compiled()) { |
| 175 // We should initialize the CompilationInfo feedback vector from the | 175 // We should initialize the CompilationInfo feedback vector from the |
| 176 // passed in shared info, rather than creating a new one. | 176 // passed in shared info, rather than creating a new one. |
| 177 feedback_vector_ = Handle<FixedArray>(shared_info()->feedback_vector(), | 177 feedback_vector_ = |
| 178 isolate); | 178 Handle<TypeFeedbackVector>(shared_info()->feedback_vector(), isolate); |
| 179 } | 179 } |
| 180 } | 180 } |
| 181 | 181 |
| 182 | 182 |
| 183 CompilationInfo::~CompilationInfo() { | 183 CompilationInfo::~CompilationInfo() { |
| 184 delete deferred_handles_; | 184 delete deferred_handles_; |
| 185 delete no_frame_ranges_; | 185 delete no_frame_ranges_; |
| 186 if (ast_value_factory_owned_) delete ast_value_factory_; | 186 if (ast_value_factory_owned_) delete ast_value_factory_; |
| 187 #ifdef DEBUG | 187 #ifdef DEBUG |
| 188 // Check that no dependent maps have been added or added dependent maps have | 188 // Check that no dependent maps have been added or added dependent maps have |
| (...skipping 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1421 AllowHandleDereference allow_deref; | 1421 AllowHandleDereference allow_deref; |
| 1422 bool tracing_on = info()->IsStub() | 1422 bool tracing_on = info()->IsStub() |
| 1423 ? FLAG_trace_hydrogen_stubs | 1423 ? FLAG_trace_hydrogen_stubs |
| 1424 : (FLAG_trace_hydrogen && | 1424 : (FLAG_trace_hydrogen && |
| 1425 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); | 1425 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); |
| 1426 return (tracing_on && | 1426 return (tracing_on && |
| 1427 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); | 1427 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); |
| 1428 } | 1428 } |
| 1429 | 1429 |
| 1430 } } // namespace v8::internal | 1430 } } // namespace v8::internal |
| OLD | NEW |