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

Unified Diff: src/code-stubs.h

Issue 12613004: To fully support hydrogen code stubs which accept a variable number of arguments, (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: The start environment for a hydrogen stub is initialized twice (fixed). Created 7 years, 9 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/arm/lithium-codegen-arm.cc ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.h
diff --git a/src/code-stubs.h b/src/code-stubs.h
index 9c8225ea459d449fa6809a13253425671e3af984..f7fcfeb97a40924bf182b666bee0b93c49ca781c 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -270,6 +270,13 @@ struct CodeStubInterfaceDescriptor {
int extra_expression_stack_count_;
Register* register_params_;
Address deoptimization_handler_;
+
+ int environment_length() const {
+ if (stack_parameter_count_ != NULL) {
+ return register_param_count_ + 1;
+ }
+ return register_param_count_;
+ }
};
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698