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

Side by Side Diff: runtime/vm/code_generator.cc

Issue 1714743002: VM: Separate precompilation-specific code, make flags const. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/code_generator.h" 5 #include "vm/code_generator.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 #include "vm/ast.h" 8 #include "vm/ast.h"
9 #include "vm/code_patcher.h" 9 #include "vm/code_patcher.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 DEFINE_FLAG(bool, trace_osr, false, "Trace attempts at on-stack replacement."); 75 DEFINE_FLAG(bool, trace_osr, false, "Trace attempts at on-stack replacement.");
76 76
77 DEFINE_FLAG(int, stacktrace_every, 0, 77 DEFINE_FLAG(int, stacktrace_every, 0,
78 "Compute debugger stacktrace on every N stack overflow checks"); 78 "Compute debugger stacktrace on every N stack overflow checks");
79 DEFINE_FLAG(charp, stacktrace_filter, NULL, 79 DEFINE_FLAG(charp, stacktrace_filter, NULL,
80 "Compute stacktrace in named function on stack overflow checks"); 80 "Compute stacktrace in named function on stack overflow checks");
81 DEFINE_FLAG(int, deoptimize_every, 0, 81 DEFINE_FLAG(int, deoptimize_every, 0,
82 "Deoptimize on every N stack overflow checks"); 82 "Deoptimize on every N stack overflow checks");
83 DEFINE_FLAG(charp, deoptimize_filter, NULL, 83 DEFINE_FLAG(charp, deoptimize_filter, NULL,
84 "Deoptimize in named function on stack overflow checks"); 84 "Deoptimize in named function on stack overflow checks");
85 DEFINE_FLAG(bool, lazy_dispatchers, true, "Lazily generate dispatchers");
86 85
87 #ifdef DEBUG 86 #ifdef DEBUG
88 DEFINE_FLAG(charp, gc_at_instance_allocation, NULL, 87 DEFINE_FLAG(charp, gc_at_instance_allocation, NULL,
89 "Perform a GC before allocation of instances of " 88 "Perform a GC before allocation of instances of "
90 "the specified class"); 89 "the specified class");
91 #endif 90 #endif
92 91
93 DEFINE_RUNTIME_ENTRY(TraceFunctionEntry, 1) { 92 DEFINE_RUNTIME_ENTRY(TraceFunctionEntry, 1) {
94 const Function& function = Function::CheckedHandle(arguments.ArgAt(0)); 93 const Function& function = Function::CheckedHandle(arguments.ArgAt(0));
95 const String& function_name = String::Handle(function.name()); 94 const String& function_name = String::Handle(function.name());
(...skipping 1814 matching lines...) Expand 10 before | Expand all | Expand 10 after
1910 const intptr_t elm_size = old_data.ElementSizeInBytes(); 1909 const intptr_t elm_size = old_data.ElementSizeInBytes();
1911 const TypedData& new_data = 1910 const TypedData& new_data =
1912 TypedData::Handle(TypedData::New(cid, new_size, Heap::kOld)); 1911 TypedData::Handle(TypedData::New(cid, new_size, Heap::kOld));
1913 TypedData::Copy(new_data, 0, old_data, 0, old_size * elm_size); 1912 TypedData::Copy(new_data, 0, old_data, 0, old_size * elm_size);
1914 typed_data_cell.SetAt(0, new_data); 1913 typed_data_cell.SetAt(0, new_data);
1915 arguments.SetReturn(new_data); 1914 arguments.SetReturn(new_data);
1916 } 1915 }
1917 1916
1918 1917
1919 } // namespace dart 1918 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698