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

Unified Diff: src/lithium.h

Issue 1110573002: Allow TurboFan to compile more methods. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler.cc ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/lithium.h
diff --git a/src/lithium.h b/src/lithium.h
index 895b194e35839e63f1265a38ac230e7585102c7b..f5868823d12af6c8ed0c801687b617a801e122c6 100644
--- a/src/lithium.h
+++ b/src/lithium.h
@@ -252,6 +252,17 @@ class LUnallocated : public LOperand {
DCHECK(basic_policy() == EXTENDED_POLICY);
return LifetimeField::decode(value_) == USED_AT_START;
}
+
+ static bool TooManyParameters(int num_parameters) {
+ const int parameter_limit = -LUnallocated::kMinFixedSlotIndex;
+ return num_parameters + 1 > parameter_limit;
+ }
+
+ static bool TooManyParametersOrStackSlots(int num_parameters,
+ int num_stack_slots) {
+ const int locals_limit = LUnallocated::kMaxFixedSlotIndex;
+ return num_parameters + 1 + num_stack_slots > locals_limit;
+ }
};
« no previous file with comments | « src/compiler.cc ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698