Commit 5a5c3e4e authored by danno@chromium.org's avatar danno@chromium.org

Make sure PrintElementsKind is compiled in release mode.

TBR=jkummerow@chromium.org
BUG=none
TEST=none

Review URL: http://codereview.chromium.org/8357035

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9716 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent f7563019
......@@ -245,54 +245,6 @@ void ExternalDoubleArray::ExternalDoubleArrayPrint(FILE* out) {
}
void PrintElementsKind(FILE* out, ElementsKind kind) {
switch (kind) {
case FAST_SMI_ONLY_ELEMENTS:
PrintF(out, "FAST_SMI_ONLY_ELEMENTS");
break;
case FAST_ELEMENTS:
PrintF(out, "FAST_ELEMENTS");
break;
case FAST_DOUBLE_ELEMENTS:
PrintF(out, "FAST_DOUBLE_ELEMENTS");
break;
case DICTIONARY_ELEMENTS:
PrintF(out, "DICTIONARY_ELEMENTS");
break;
case NON_STRICT_ARGUMENTS_ELEMENTS:
PrintF(out, "NON_STRICT_ARGUMENTS_ELEMENTS");
break;
case EXTERNAL_BYTE_ELEMENTS:
PrintF(out, "EXTERNAL_BYTE_ELEMENTS");
break;
case EXTERNAL_UNSIGNED_BYTE_ELEMENTS:
PrintF(out, "EXTERNAL_UNSIGNED_BYTE_ELEMENTS");
break;
case EXTERNAL_SHORT_ELEMENTS:
PrintF(out, "EXTERNAL_SHORT_ELEMENTS");
break;
case EXTERNAL_UNSIGNED_SHORT_ELEMENTS:
PrintF(out, "EXTERNAL_UNSIGNED_SHORT_ELEMENTS");
break;
case EXTERNAL_INT_ELEMENTS:
PrintF(out, "EXTERNAL_INT_ELEMENTS");
break;
case EXTERNAL_UNSIGNED_INT_ELEMENTS:
PrintF(out, "EXTERNAL_UNSIGNED_INT_ELEMENTS");
break;
case EXTERNAL_FLOAT_ELEMENTS:
PrintF(out, "EXTERNAL_FLOAT_ELEMENTS");
break;
case EXTERNAL_DOUBLE_ELEMENTS:
PrintF(out, "EXTERNAL_DOUBLE_ELEMENTS");
break;
case EXTERNAL_PIXEL_ELEMENTS:
PrintF(out, "EXTERNAL_DOUBLE_ELEMENTS");
break;
}
}
void JSObject::PrintProperties(FILE* out) {
if (HasFastProperties()) {
DescriptorArray* descs = map()->instance_descriptors();
......
......@@ -55,6 +55,54 @@
namespace v8 {
namespace internal {
void PrintElementsKind(FILE* out, ElementsKind kind) {
switch (kind) {
case FAST_SMI_ONLY_ELEMENTS:
PrintF(out, "FAST_SMI_ONLY_ELEMENTS");
break;
case FAST_ELEMENTS:
PrintF(out, "FAST_ELEMENTS");
break;
case FAST_DOUBLE_ELEMENTS:
PrintF(out, "FAST_DOUBLE_ELEMENTS");
break;
case DICTIONARY_ELEMENTS:
PrintF(out, "DICTIONARY_ELEMENTS");
break;
case NON_STRICT_ARGUMENTS_ELEMENTS:
PrintF(out, "NON_STRICT_ARGUMENTS_ELEMENTS");
break;
case EXTERNAL_BYTE_ELEMENTS:
PrintF(out, "EXTERNAL_BYTE_ELEMENTS");
break;
case EXTERNAL_UNSIGNED_BYTE_ELEMENTS:
PrintF(out, "EXTERNAL_UNSIGNED_BYTE_ELEMENTS");
break;
case EXTERNAL_SHORT_ELEMENTS:
PrintF(out, "EXTERNAL_SHORT_ELEMENTS");
break;
case EXTERNAL_UNSIGNED_SHORT_ELEMENTS:
PrintF(out, "EXTERNAL_UNSIGNED_SHORT_ELEMENTS");
break;
case EXTERNAL_INT_ELEMENTS:
PrintF(out, "EXTERNAL_INT_ELEMENTS");
break;
case EXTERNAL_UNSIGNED_INT_ELEMENTS:
PrintF(out, "EXTERNAL_UNSIGNED_INT_ELEMENTS");
break;
case EXTERNAL_FLOAT_ELEMENTS:
PrintF(out, "EXTERNAL_FLOAT_ELEMENTS");
break;
case EXTERNAL_DOUBLE_ELEMENTS:
PrintF(out, "EXTERNAL_DOUBLE_ELEMENTS");
break;
case EXTERNAL_PIXEL_ELEMENTS:
PrintF(out, "EXTERNAL_DOUBLE_ELEMENTS");
break;
}
}
// Getters and setters are stored in a fixed array property. These are
// constants for their indices.
const int kGetterIndex = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment