| Index: src/ia32/macro-assembler-ia32.cc
|
| diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc
|
| index ace1bed569a1550140084519668a825f9d03267d..3356e818922d0ccce2967e4cd2bf6a586917663d 100644
|
| --- a/src/ia32/macro-assembler-ia32.cc
|
| +++ b/src/ia32/macro-assembler-ia32.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2012 the V8 project authors. All rights reserved.
|
| +// Copyright 2011 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -487,49 +487,15 @@ void MacroAssembler::StoreNumberToDoubleElements(
|
| }
|
|
|
|
|
| -void MacroAssembler::CompareMap(Register obj,
|
| - Handle<Map> map,
|
| - Label* early_success,
|
| - CompareMapMode mode) {
|
| - cmp(FieldOperand(obj, HeapObject::kMapOffset), map);
|
| - if (mode == ALLOW_ELEMENT_TRANSITION_MAPS) {
|
| - bool ignore;
|
| - Map* transitioned_fast_element_map(
|
| - map->LookupElementsTransitionMap(FAST_ELEMENTS, &ignore));
|
| - ASSERT(transitioned_fast_element_map == NULL ||
|
| - map->elements_kind() != FAST_ELEMENTS);
|
| - if (transitioned_fast_element_map != NULL) {
|
| - j(equal, early_success, Label::kNear);
|
| - cmp(FieldOperand(obj, HeapObject::kMapOffset),
|
| - Handle<Map>(transitioned_fast_element_map));
|
| - }
|
| -
|
| - Map* transitioned_double_map(
|
| - map->LookupElementsTransitionMap(FAST_DOUBLE_ELEMENTS, &ignore));
|
| - ASSERT(transitioned_double_map == NULL ||
|
| - map->elements_kind() == FAST_SMI_ONLY_ELEMENTS);
|
| - if (transitioned_double_map != NULL) {
|
| - j(equal, early_success, Label::kNear);
|
| - cmp(FieldOperand(obj, HeapObject::kMapOffset),
|
| - Handle<Map>(transitioned_double_map));
|
| - }
|
| - }
|
| -}
|
| -
|
| -
|
| void MacroAssembler::CheckMap(Register obj,
|
| Handle<Map> map,
|
| Label* fail,
|
| - SmiCheckType smi_check_type,
|
| - CompareMapMode mode) {
|
| + SmiCheckType smi_check_type) {
|
| if (smi_check_type == DO_SMI_CHECK) {
|
| JumpIfSmi(obj, fail);
|
| }
|
| -
|
| - Label success;
|
| - CompareMap(obj, map, &success, mode);
|
| + cmp(FieldOperand(obj, HeapObject::kMapOffset), Immediate(map));
|
| j(not_equal, fail);
|
| - bind(&success);
|
| }
|
|
|
|
|
|
|