Index: src/ia32/macro-assembler-ia32.h |
diff --git a/src/ia32/macro-assembler-ia32.h b/src/ia32/macro-assembler-ia32.h |
index cc245602d84e6a491197f73933437ffa5841a388..a5da37aa56a7a1b046bd14ab197f818343d48f47 100644 |
--- a/src/ia32/macro-assembler-ia32.h |
+++ b/src/ia32/macro-assembler-ia32.h |
@@ -185,9 +185,14 @@ class MacroAssembler: public Assembler { |
// clobbered if it the same as the holder register. The function |
// returns a register containing the holder - either object_reg or |
// holder_reg. |
+ // The function can optionally (when save_at_depth != |
+ // kInvalidProtoDepth) save the object at the given depth by moving |
+ // it to [esp + kPointerSize]. |
Register CheckMaps(JSObject* object, Register object_reg, |
JSObject* holder, Register holder_reg, |
- Register scratch, Label* miss); |
+ Register scratch, |
+ int save_at_depth, |
+ Label* miss); |
// Generate code for checking access rights - used for security checks |
// on access to global objects across environments. The holder register |