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/isolate.h" | 5 #include "src/isolate.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include <fstream> // NOLINT(readability/streams) | 9 #include <fstream> // NOLINT(readability/streams) |
10 #include <sstream> | 10 #include <sstream> |
(...skipping 2800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2811 | 2811 |
2812 | 2812 |
2813 bool Isolate::use_crankshaft() const { | 2813 bool Isolate::use_crankshaft() const { |
2814 return FLAG_crankshaft && | 2814 return FLAG_crankshaft && |
2815 !serializer_enabled_ && | 2815 !serializer_enabled_ && |
2816 CpuFeatures::SupportsCrankshaft(); | 2816 CpuFeatures::SupportsCrankshaft(); |
2817 } | 2817 } |
2818 | 2818 |
2819 bool Isolate::NeedsSourcePositionsForProfiling() const { | 2819 bool Isolate::NeedsSourcePositionsForProfiling() const { |
2820 return FLAG_trace_deopt || FLAG_trace_turbo || FLAG_trace_turbo_graph || | 2820 return FLAG_trace_deopt || FLAG_trace_turbo || FLAG_trace_turbo_graph || |
2821 FLAG_turbo_profiling || is_profiling() || debug_->is_active() || | 2821 FLAG_turbo_profiling || FLAG_perf_prof || is_profiling() || |
2822 logger_->is_logging(); | 2822 debug_->is_active() || logger_->is_logging(); |
2823 } | 2823 } |
2824 | 2824 |
2825 bool Isolate::IsArrayOrObjectPrototype(Object* object) { | 2825 bool Isolate::IsArrayOrObjectPrototype(Object* object) { |
2826 Object* context = heap()->native_contexts_list(); | 2826 Object* context = heap()->native_contexts_list(); |
2827 while (!context->IsUndefined(this)) { | 2827 while (!context->IsUndefined(this)) { |
2828 Context* current_context = Context::cast(context); | 2828 Context* current_context = Context::cast(context); |
2829 if (current_context->initial_object_prototype() == object || | 2829 if (current_context->initial_object_prototype() == object || |
2830 current_context->initial_array_prototype() == object) { | 2830 current_context->initial_array_prototype() == object) { |
2831 return true; | 2831 return true; |
2832 } | 2832 } |
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3553 // Then check whether this scope intercepts. | 3553 // Then check whether this scope intercepts. |
3554 if ((flag & intercept_mask_)) { | 3554 if ((flag & intercept_mask_)) { |
3555 intercepted_flags_ |= flag; | 3555 intercepted_flags_ |= flag; |
3556 return true; | 3556 return true; |
3557 } | 3557 } |
3558 return false; | 3558 return false; |
3559 } | 3559 } |
3560 | 3560 |
3561 } // namespace internal | 3561 } // namespace internal |
3562 } // namespace v8 | 3562 } // namespace v8 |
OLD | NEW |