| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 178 |
| 179 // Generates code that verifies that the maps of objects in the | 179 // Generates code that verifies that the maps of objects in the |
| 180 // prototype chain of object hasn't changed since the code was | 180 // prototype chain of object hasn't changed since the code was |
| 181 // generated and branches to the miss label if any map has. If | 181 // generated and branches to the miss label if any map has. If |
| 182 // necessary the function also generates code for security check | 182 // necessary the function also generates code for security check |
| 183 // in case of global object holders. The scratch and holder | 183 // in case of global object holders. The scratch and holder |
| 184 // registers are always clobbered, but the object register is only | 184 // registers are always clobbered, but the object register is only |
| 185 // clobbered if it the same as the holder register. The function | 185 // clobbered if it the same as the holder register. The function |
| 186 // returns a register containing the holder - either object_reg or | 186 // returns a register containing the holder - either object_reg or |
| 187 // holder_reg. | 187 // holder_reg. |
| 188 // The function can optionally (when save_at_depth != |
| 189 // kInvalidProtoDepth) save the object at the given depth by moving |
| 190 // it to [esp + kPointerSize]. |
| 188 Register CheckMaps(JSObject* object, Register object_reg, | 191 Register CheckMaps(JSObject* object, Register object_reg, |
| 189 JSObject* holder, Register holder_reg, | 192 JSObject* holder, Register holder_reg, |
| 190 Register scratch, Label* miss); | 193 Register scratch, |
| 194 int save_at_depth, |
| 195 Label* miss); |
| 191 | 196 |
| 192 // Generate code for checking access rights - used for security checks | 197 // Generate code for checking access rights - used for security checks |
| 193 // on access to global objects across environments. The holder register | 198 // on access to global objects across environments. The holder register |
| 194 // is left untouched, but the scratch register is clobbered. | 199 // is left untouched, but the scratch register is clobbered. |
| 195 void CheckAccessGlobalProxy(Register holder_reg, | 200 void CheckAccessGlobalProxy(Register holder_reg, |
| 196 Register scratch, | 201 Register scratch, |
| 197 Label* miss); | 202 Label* miss); |
| 198 | 203 |
| 199 | 204 |
| 200 // --------------------------------------------------------------------------- | 205 // --------------------------------------------------------------------------- |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 } \ | 537 } \ |
| 533 masm-> | 538 masm-> |
| 534 #else | 539 #else |
| 535 #define ACCESS_MASM(masm) masm-> | 540 #define ACCESS_MASM(masm) masm-> |
| 536 #endif | 541 #endif |
| 537 | 542 |
| 538 | 543 |
| 539 } } // namespace v8::internal | 544 } } // namespace v8::internal |
| 540 | 545 |
| 541 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 546 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |