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

Unified Diff: bleeding_edge/src/objects.h

Issue 506037: Improve performance of allocating closures for nested... (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
Index: bleeding_edge/src/objects.h
===================================================================
--- bleeding_edge/src/objects.h (revision 3473)
+++ bleeding_edge/src/objects.h (working copy)
@@ -1662,6 +1662,7 @@
public:
// Is this the singleton empty_descriptor_array?
inline bool IsEmpty();
+
// Returns the number of descriptors in the array.
int number_of_descriptors() {
return IsEmpty() ? 0 : length() - kFirstIndex;
@@ -1801,13 +1802,15 @@
static int ToKeyIndex(int descriptor_number) {
return descriptor_number+kFirstIndex;
}
- static int ToValueIndex(int descriptor_number) {
- return descriptor_number << 1;
- }
+
static int ToDetailsIndex(int descriptor_number) {
return( descriptor_number << 1) + 1;
Mads Ager (chromium) 2009/12/16 16:13:24 Not your code, but move parenthesis.
}
+ static int ToValueIndex(int descriptor_number) {
+ return descriptor_number << 1;
+ }
+
bool is_null_descriptor(int descriptor_number) {
return PropertyDetails(GetDetails(descriptor_number)).type() ==
NULL_DESCRIPTOR;

Powered by Google App Engine
This is Rietveld 408576698