Version 2.4.0.
Fix bug in Object.freeze and Object.seal when Array.prototype or Object.prototype is changed (issue 842).
Update Array.splice to follow Safari and Firefox when called with zero arguments.
Fix a missing live register when breaking at keyed loads on ARM.
Performance improvements on all platforms.
git-svn-id: http://v8.googlecode.com/svn/trunk@5388 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
diff --git a/src/objects-inl.h b/src/objects-inl.h
index ab4eefa..2a54062 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -35,11 +35,13 @@
#ifndef V8_OBJECTS_INL_H_
#define V8_OBJECTS_INL_H_
-#include "memory.h"
+#include "objects.h"
#include "contexts.h"
#include "conversions-inl.h"
-#include "objects.h"
+#include "heap.h"
+#include "memory.h"
#include "property.h"
+#include "spaces.h"
namespace v8 {
namespace internal {
@@ -2319,14 +2321,13 @@
}
-CodeStub::Major Code::major_key() {
+int Code::major_key() {
ASSERT(kind() == STUB || kind() == BINARY_OP_IC);
- return static_cast<CodeStub::Major>(READ_BYTE_FIELD(this,
- kStubMajorKeyOffset));
+ return READ_BYTE_FIELD(this, kStubMajorKeyOffset);
}
-void Code::set_major_key(CodeStub::Major major) {
+void Code::set_major_key(int major) {
ASSERT(kind() == STUB || kind() == BINARY_OP_IC);
ASSERT(0 <= major && major < 256);
WRITE_BYTE_FIELD(this, kStubMajorKeyOffset, major);