| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index bbb4f1c7e9b76fa19efd33d3c7524b703864f08f..5003b4f8c30b76d10c0bfeb29b3ed7c0c9736ce8 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -6238,10 +6238,35 @@ const char* Code::PropertyType2String(PropertyType type) {
|
| }
|
|
|
|
|
| +void Code::PrintExtraICState(FILE* out, Kind kind, ExtraICState extra) {
|
| + const char* name = NULL;
|
| + switch (kind) {
|
| + case CALL_IC:
|
| + if (extra == STRING_INDEX_OUT_OF_BOUNDS) {
|
| + name = "STRING_INDEX_OUT_OF_BOUNDS";
|
| + }
|
| + break;
|
| + case STORE_IC:
|
| + if (extra == StoreIC::kStoreICStrict) {
|
| + name = "STRICT";
|
| + }
|
| + break;
|
| + default:
|
| + break;
|
| + }
|
| + if (name != NULL) {
|
| + PrintF(out, "extra_ic_state = %s\n", name);
|
| + } else {
|
| + PrintF(out, "etra_ic_state = %d\n", extra);
|
| + }
|
| +}
|
| +
|
| +
|
| void Code::Disassemble(const char* name, FILE* out) {
|
| PrintF(out, "kind = %s\n", Kind2String(kind()));
|
| if (is_inline_cache_stub()) {
|
| PrintF(out, "ic_state = %s\n", ICState2String(ic_state()));
|
| + PrintExtraICState(out, kind(), extra_ic_state());
|
| PrintF(out, "ic_in_loop = %d\n", ic_in_loop() == IN_LOOP);
|
| if (ic_state() == MONOMORPHIC) {
|
| PrintF(out, "type = %s\n", PropertyType2String(type()));
|
|
|