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

Unified Diff: src/code-stubs.h

Issue 11151005: Improve FastCloneShallowArray/ObjectStubs with VFP copying on ARM (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 2 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
===================================================================
--- src/code-stubs.h (revision 12502)
+++ src/code-stubs.h (working copy)
@@ -375,7 +375,7 @@
class FastCloneShallowArrayStub : public CodeStub {
public:
// Maximum length of copied elements array.
- static const int kMaximumClonedLength = 8;
+ static int MaximumClonedLength();
enum Mode {
CLONE_ELEMENTS,
@@ -388,7 +388,7 @@
: mode_(mode),
length_((mode == COPY_ON_WRITE_ELEMENTS) ? 0 : length) {
ASSERT_GE(length_, 0);
- ASSERT_LE(length_, kMaximumClonedLength);
+ ASSERT_LE(length_, MaximumClonedLength());
}
void Generate(MacroAssembler* masm);
@@ -408,11 +408,11 @@
class FastCloneShallowObjectStub : public CodeStub {
public:
// Maximum number of properties in copied object.
- static const int kMaximumClonedProperties = 6;
+ static int MaximumClonedProperties();
explicit FastCloneShallowObjectStub(int length) : length_(length) {
ASSERT_GE(length_, 0);
- ASSERT_LE(length_, kMaximumClonedProperties);
+ ASSERT_LE(length_, MaximumClonedProperties());
}
void Generate(MacroAssembler* masm);

Powered by Google App Engine
This is Rietveld 408576698