Version 3.7.10
Set maximum length of FixedArray in terms of elements instead an absolute number of bytes. (Chromium issue 103103)
Stability and performance improvements on all platforms.
git-svn-id: http://v8.googlecode.com/svn/trunk@10052 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 9da480e..f3a7fd3 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -3667,8 +3667,8 @@
void SharedFunctionInfo::set_code_age(int code_age) {
- set_compiler_hints(compiler_hints() |
- ((code_age & kCodeAgeMask) << kCodeAgeShift));
+ int hints = compiler_hints() & ~(kCodeAgeMask << kCodeAgeShift);
+ set_compiler_hints(hints | ((code_age & kCodeAgeMask) << kCodeAgeShift));
}