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 2884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2895 context()->native_context()->get(Context::ArrayMapIndex(kind)); | 2895 context()->native_context()->get(Context::ArrayMapIndex(kind)); |
2896 if (!initial_js_array_map->IsUndefined(this)) { | 2896 if (!initial_js_array_map->IsUndefined(this)) { |
2897 return Map::cast(initial_js_array_map); | 2897 return Map::cast(initial_js_array_map); |
2898 } | 2898 } |
2899 } | 2899 } |
2900 return nullptr; | 2900 return nullptr; |
2901 } | 2901 } |
2902 | 2902 |
2903 | 2903 |
2904 bool Isolate::use_crankshaft() const { | 2904 bool Isolate::use_crankshaft() const { |
2905 return FLAG_crankshaft && | 2905 return FLAG_opt && FLAG_crankshaft && !serializer_enabled_ && |
2906 !serializer_enabled_ && | |
2907 CpuFeatures::SupportsCrankshaft(); | 2906 CpuFeatures::SupportsCrankshaft(); |
2908 } | 2907 } |
2909 | 2908 |
2910 bool Isolate::NeedsSourcePositionsForProfiling() const { | 2909 bool Isolate::NeedsSourcePositionsForProfiling() const { |
2911 return FLAG_trace_deopt || FLAG_trace_turbo || FLAG_trace_turbo_graph || | 2910 return FLAG_trace_deopt || FLAG_trace_turbo || FLAG_trace_turbo_graph || |
2912 FLAG_turbo_profiling || FLAG_perf_prof || is_profiling() || | 2911 FLAG_turbo_profiling || FLAG_perf_prof || is_profiling() || |
2913 debug_->is_active() || logger_->is_logging(); | 2912 debug_->is_active() || logger_->is_logging(); |
2914 } | 2913 } |
2915 | 2914 |
2916 bool Isolate::IsArrayOrObjectPrototype(Object* object) { | 2915 bool Isolate::IsArrayOrObjectPrototype(Object* object) { |
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3648 // Then check whether this scope intercepts. | 3647 // Then check whether this scope intercepts. |
3649 if ((flag & intercept_mask_)) { | 3648 if ((flag & intercept_mask_)) { |
3650 intercepted_flags_ |= flag; | 3649 intercepted_flags_ |= flag; |
3651 return true; | 3650 return true; |
3652 } | 3651 } |
3653 return false; | 3652 return false; |
3654 } | 3653 } |
3655 | 3654 |
3656 } // namespace internal | 3655 } // namespace internal |
3657 } // namespace v8 | 3656 } // namespace v8 |
OLD | NEW |