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

Unified Diff: src/code-stubs.h

Issue 12093089: Support pass-through of stub caller arguments (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix bugs Created 7 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 side-by-side diff with in-line comments
Download patch
Index: src/code-stubs.h
diff --git a/src/code-stubs.h b/src/code-stubs.h
index dde0cc29b08296e764288f94da6b0deb198ef409..6c48a2ab590b2af8813603c5406b5f03c3c7e6d0 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -253,8 +253,12 @@ class PlatformCodeStub : public CodeStub {
struct CodeStubInterfaceDescriptor {
CodeStubInterfaceDescriptor()
: register_param_count_(-1),
+ stack_parameter_count_(NULL),
+ extra_expression_stack_count_(0),
register_params_(NULL) { }
int register_param_count_;
+ const Register* stack_parameter_count_;
+ int extra_expression_stack_count_;
Register* register_params_;
Address deoptimization_handler_;
};
@@ -1425,14 +1429,19 @@ class StoreArrayLiteralElementStub : public PlatformCodeStub {
class StubFailureTrampolineStub : public PlatformCodeStub {
public:
- StubFailureTrampolineStub() {}
+ static const int kMaxExtraExpressionStackCount = 1;
+
+ explicit StubFailureTrampolineStub(int extra_expression_stack_count)
+ : extra_expression_stack_count_(extra_expression_stack_count) {}
private:
Major MajorKey() { return StubFailureTrampoline; }
- int MinorKey() { return 0; }
+ int MinorKey() { return extra_expression_stack_count_; }
void Generate(MacroAssembler* masm);
+ int extra_expression_stack_count_;
+
DISALLOW_COPY_AND_ASSIGN(StubFailureTrampolineStub);
};
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/code-stubs-hydrogen.cc » ('j') | src/frames.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698