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

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

Issue 2256983002: Temporary fix for OOM in precompilation with very large methods. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 | « runtime/vm/flag_list.h ('k') | runtime/vm/redundancy_elimination.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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/become.h" 10 #include "vm/become.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "vm/timeline.h" 44 #include "vm/timeline.h"
45 #include "vm/timer.h" 45 #include "vm/timer.h"
46 #include "vm/type_table.h" 46 #include "vm/type_table.h"
47 #include "vm/unicode.h" 47 #include "vm/unicode.h"
48 #include "vm/weak_code.h" 48 #include "vm/weak_code.h"
49 49
50 namespace dart { 50 namespace dart {
51 51
52 DEFINE_FLAG(int, huge_method_cutoff_in_code_size, 200000, 52 DEFINE_FLAG(int, huge_method_cutoff_in_code_size, 200000,
53 "Huge method cutoff in unoptimized code size (in bytes)."); 53 "Huge method cutoff in unoptimized code size (in bytes).");
54 DEFINE_FLAG(int, huge_method_cutoff_in_tokens, 20000,
55 "Huge method cutoff in tokens: Disables optimizations for huge methods.");
56 DEFINE_FLAG(bool, overlap_type_arguments, true, 54 DEFINE_FLAG(bool, overlap_type_arguments, true,
57 "When possible, partially or fully overlap the type arguments of a type " 55 "When possible, partially or fully overlap the type arguments of a type "
58 "with the type arguments of its super type."); 56 "with the type arguments of its super type.");
59 DEFINE_FLAG(bool, show_internal_names, false, 57 DEFINE_FLAG(bool, show_internal_names, false,
60 "Show names of internal classes (e.g. \"OneByteString\") in error messages " 58 "Show names of internal classes (e.g. \"OneByteString\") in error messages "
61 "instead of showing the corresponding interface names (e.g. \"String\")"); 59 "instead of showing the corresponding interface names (e.g. \"String\")");
62 DEFINE_FLAG(bool, use_lib_cache, true, "Use library name cache"); 60 DEFINE_FLAG(bool, use_lib_cache, true, "Use library name cache");
63 DEFINE_FLAG(bool, use_exp_cache, true, "Use library exported name cache"); 61 DEFINE_FLAG(bool, use_exp_cache, true, "Use library exported name cache");
64 DEFINE_FLAG(bool, ignore_patch_signature_mismatch, false, 62 DEFINE_FLAG(bool, ignore_patch_signature_mismatch, false,
65 "Ignore patch file member signature mismatch."); 63 "Ignore patch file member signature mismatch.");
(...skipping 22657 matching lines...) Expand 10 before | Expand all | Expand 10 after
22723 return UserTag::null(); 22721 return UserTag::null();
22724 } 22722 }
22725 22723
22726 22724
22727 const char* UserTag::ToCString() const { 22725 const char* UserTag::ToCString() const {
22728 const String& tag_label = String::Handle(label()); 22726 const String& tag_label = String::Handle(label());
22729 return tag_label.ToCString(); 22727 return tag_label.ToCString();
22730 } 22728 }
22731 22729
22732 } // namespace dart 22730 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flag_list.h ('k') | runtime/vm/redundancy_elimination.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698