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

Side by Side Diff: src/hydrogen.h

Issue 10162001: Replaced the --limit-inling flag by three separate flags and bumped hard limits. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « src/flag-definitions.h ('k') | src/hydrogen.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 861
862 // Forward declarations for inner scope classes. 862 // Forward declarations for inner scope classes.
863 class SubgraphScope; 863 class SubgraphScope;
864 864
865 static const InlineFunctionGenerator kInlineFunctionGenerators[]; 865 static const InlineFunctionGenerator kInlineFunctionGenerators[];
866 866
867 static const int kMaxCallPolymorphism = 4; 867 static const int kMaxCallPolymorphism = 4;
868 static const int kMaxLoadPolymorphism = 4; 868 static const int kMaxLoadPolymorphism = 4;
869 static const int kMaxStorePolymorphism = 4; 869 static const int kMaxStorePolymorphism = 4;
870 870
871 static const int kMaxInlinedNodes = 196;
872 static const int kMaxInlinedSize = 196;
873 static const int kMaxSourceSize = 600;
874
875 // Even in the 'unlimited' case we have to have some limit in order not to 871 // Even in the 'unlimited' case we have to have some limit in order not to
876 // overflow the stack. 872 // overflow the stack.
877 static const int kUnlimitedMaxInlinedNodes = 1000; 873 static const int kUnlimitedMaxInlinedSourceSize = 100000;
878 static const int kUnlimitedMaxInlinedSize = 1000; 874 static const int kUnlimitedMaxInlinedNodes = 10000;
879 static const int kUnlimitedMaxSourceSize = 600; 875 static const int kUnlimitedMaxInlinedNodesCumulative = 10000;
880 876
881 // Simple accessors. 877 // Simple accessors.
882 void set_function_state(FunctionState* state) { function_state_ = state; } 878 void set_function_state(FunctionState* state) { function_state_ = state; }
883 879
884 AstContext* ast_context() const { return ast_context_; } 880 AstContext* ast_context() const { return ast_context_; }
885 void set_ast_context(AstContext* context) { ast_context_ = context; } 881 void set_ast_context(AstContext* context) { ast_context_ = context; }
886 882
887 // Accessors forwarded to the function state. 883 // Accessors forwarded to the function state.
888 CompilationInfo* info() const { 884 CompilationInfo* info() const {
889 return function_state()->compilation_info(); 885 return function_state()->compilation_info();
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
1412 const char* filename_; 1408 const char* filename_;
1413 HeapStringAllocator string_allocator_; 1409 HeapStringAllocator string_allocator_;
1414 StringStream trace_; 1410 StringStream trace_;
1415 int indent_; 1411 int indent_;
1416 }; 1412 };
1417 1413
1418 1414
1419 } } // namespace v8::internal 1415 } } // namespace v8::internal
1420 1416
1421 #endif // V8_HYDROGEN_H_ 1417 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698