Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: src/isolate.cc

Issue 2662263003: Merged: Fix --noopt to not optimize (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compilation-info.cc ('k') | src/v8.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2883 matching lines...) Expand 10 before | Expand all | Expand 10 after
2894 context()->native_context()->get(Context::ArrayMapIndex(kind)); 2894 context()->native_context()->get(Context::ArrayMapIndex(kind));
2895 if (!initial_js_array_map->IsUndefined(this)) { 2895 if (!initial_js_array_map->IsUndefined(this)) {
2896 return Map::cast(initial_js_array_map); 2896 return Map::cast(initial_js_array_map);
2897 } 2897 }
2898 } 2898 }
2899 return nullptr; 2899 return nullptr;
2900 } 2900 }
2901 2901
2902 2902
2903 bool Isolate::use_crankshaft() const { 2903 bool Isolate::use_crankshaft() const {
2904 return FLAG_crankshaft && 2904 return FLAG_opt && FLAG_crankshaft && !serializer_enabled_ &&
2905 !serializer_enabled_ &&
2906 CpuFeatures::SupportsCrankshaft(); 2905 CpuFeatures::SupportsCrankshaft();
2907 } 2906 }
2908 2907
2909 bool Isolate::NeedsSourcePositionsForProfiling() const { 2908 bool Isolate::NeedsSourcePositionsForProfiling() const {
2910 return FLAG_trace_deopt || FLAG_trace_turbo || FLAG_trace_turbo_graph || 2909 return FLAG_trace_deopt || FLAG_trace_turbo || FLAG_trace_turbo_graph ||
2911 FLAG_turbo_profiling || FLAG_perf_prof || is_profiling() || 2910 FLAG_turbo_profiling || FLAG_perf_prof || is_profiling() ||
2912 debug_->is_active() || logger_->is_logging(); 2911 debug_->is_active() || logger_->is_logging();
2913 } 2912 }
2914 2913
2915 bool Isolate::IsArrayOrObjectPrototype(Object* object) { 2914 bool Isolate::IsArrayOrObjectPrototype(Object* object) {
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
3665 // Then check whether this scope intercepts. 3664 // Then check whether this scope intercepts.
3666 if ((flag & intercept_mask_)) { 3665 if ((flag & intercept_mask_)) {
3667 intercepted_flags_ |= flag; 3666 intercepted_flags_ |= flag;
3668 return true; 3667 return true;
3669 } 3668 }
3670 return false; 3669 return false;
3671 } 3670 }
3672 3671
3673 } // namespace internal 3672 } // namespace internal
3674 } // namespace v8 3673 } // namespace v8
OLDNEW
« no previous file with comments | « src/compilation-info.cc ('k') | src/v8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698