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

Unified Diff: bleeding_edge/src/codegen.h

Issue 503042: Optimize the allocation of small, non-nested literal... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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 | « bleeding_edge/src/code-stubs.h ('k') | bleeding_edge/src/heap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bleeding_edge/src/codegen.h
===================================================================
--- bleeding_edge/src/codegen.h (revision 3484)
+++ bleeding_edge/src/codegen.h (working copy)
@@ -263,6 +263,25 @@
};
+class FastCloneShallowArrayStub : public CodeStub {
+ public:
+ static const int kMaximumLength = 8;
+
+ explicit FastCloneShallowArrayStub(int length) : length_(length) {
+ ASSERT(length >= 0 && length <= kMaximumLength);
+ }
+
+ void Generate(MacroAssembler* masm);
+
+ private:
+ int length_;
+
+ const char* GetName() { return "FastCloneShallowArrayStub"; }
+ Major MajorKey() { return FastCloneShallowArray; }
+ int MinorKey() { return length_; }
+};
+
+
class InstanceofStub: public CodeStub {
public:
InstanceofStub() { }
« no previous file with comments | « bleeding_edge/src/code-stubs.h ('k') | bleeding_edge/src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698