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

Unified Diff: src/objects.cc

Issue 7849017: Mechanical refactor to move ElementsKind type out of JSObject. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: latest changes Created 9 years, 3 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
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 00ea4f23db502aefcb91454502c3293c4a47d9e2..db65d5befbae7f779c1ef370fb3fa56bea3b7939 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -1989,39 +1989,39 @@ void Map::LookupInDescriptors(JSObject* holder,
}
-static JSObject::ElementsKind GetElementsKindFromExternalArrayType(
+static ElementsKind GetElementsKindFromExternalArrayType(
ExternalArrayType array_type) {
switch (array_type) {
case kExternalByteArray:
- return JSObject::EXTERNAL_BYTE_ELEMENTS;
+ return EXTERNAL_BYTE_ELEMENTS;
break;
case kExternalUnsignedByteArray:
- return JSObject::EXTERNAL_UNSIGNED_BYTE_ELEMENTS;
+ return EXTERNAL_UNSIGNED_BYTE_ELEMENTS;
break;
case kExternalShortArray:
- return JSObject::EXTERNAL_SHORT_ELEMENTS;
+ return EXTERNAL_SHORT_ELEMENTS;
break;
case kExternalUnsignedShortArray:
- return JSObject::EXTERNAL_UNSIGNED_SHORT_ELEMENTS;
+ return EXTERNAL_UNSIGNED_SHORT_ELEMENTS;
break;
case kExternalIntArray:
- return JSObject::EXTERNAL_INT_ELEMENTS;
+ return EXTERNAL_INT_ELEMENTS;
break;
case kExternalUnsignedIntArray:
- return JSObject::EXTERNAL_UNSIGNED_INT_ELEMENTS;
+ return EXTERNAL_UNSIGNED_INT_ELEMENTS;
break;
case kExternalFloatArray:
- return JSObject::EXTERNAL_FLOAT_ELEMENTS;
+ return EXTERNAL_FLOAT_ELEMENTS;
break;
case kExternalDoubleArray:
- return JSObject::EXTERNAL_DOUBLE_ELEMENTS;
+ return EXTERNAL_DOUBLE_ELEMENTS;
break;
case kExternalPixelArray:
- return JSObject::EXTERNAL_PIXEL_ELEMENTS;
+ return EXTERNAL_PIXEL_ELEMENTS;
break;
}
UNREACHABLE();
- return JSObject::DICTIONARY_ELEMENTS;
+ return DICTIONARY_ELEMENTS;
}
@@ -7523,7 +7523,7 @@ MaybeObject* JSObject::SetElementsLength(Object* len) {
if (maybe_smi_length->ToObject(&smi_length) && smi_length->IsSmi()) {
const int value = Smi::cast(smi_length)->value();
if (value < 0) return ArrayLengthRangeError(GetHeap());
- JSObject::ElementsKind elements_kind = GetElementsKind();
+ ElementsKind elements_kind = GetElementsKind();
switch (elements_kind) {
case FAST_ELEMENTS:
case FAST_DOUBLE_ELEMENTS: {
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698