OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // clobbered if it the same as the holder register. The function | 161 // clobbered if it the same as the holder register. The function |
162 // returns a register containing the holder - either object_reg or | 162 // returns a register containing the holder - either object_reg or |
163 // holder_reg. | 163 // holder_reg. |
164 Register CheckMaps(JSObject* object, Register object_reg, | 164 Register CheckMaps(JSObject* object, Register object_reg, |
165 JSObject* holder, Register holder_reg, | 165 JSObject* holder, Register holder_reg, |
166 Register scratch, Label* miss); | 166 Register scratch, Label* miss); |
167 | 167 |
168 // Generate code for checking access rights - used for security checks | 168 // Generate code for checking access rights - used for security checks |
169 // on access to global objects across environments. The holder register | 169 // on access to global objects across environments. The holder register |
170 // is left untouched, but the scratch register is clobbered. | 170 // is left untouched, but the scratch register is clobbered. |
171 void CheckAccessGlobal(Register holder_reg, Register scratch, Label* miss); | 171 void CheckAccessGlobalProxy(Register holder_reg, |
| 172 Register scratch, |
| 173 Label* miss); |
172 | 174 |
173 | 175 |
174 // --------------------------------------------------------------------------- | 176 // --------------------------------------------------------------------------- |
175 // Support functions. | 177 // Support functions. |
176 | 178 |
177 // Check if result is zero and op is negative. | 179 // Check if result is zero and op is negative. |
178 void NegativeZeroTest(Register result, Register op, Label* then_label); | 180 void NegativeZeroTest(Register result, Register op, Label* then_label); |
179 | 181 |
180 // Check if result is zero and any of op1 and op2 are negative. | 182 // Check if result is zero and any of op1 and op2 are negative. |
181 // Register scratch is destroyed, and it must be different from op2. | 183 // Register scratch is destroyed, and it must be different from op2. |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 Register index, | 319 Register index, |
318 ScaleFactor scale, | 320 ScaleFactor scale, |
319 int offset) { | 321 int offset) { |
320 return Operand(object, index, scale, offset - kHeapObjectTag); | 322 return Operand(object, index, scale, offset - kHeapObjectTag); |
321 } | 323 } |
322 | 324 |
323 | 325 |
324 } } // namespace v8::internal | 326 } } // namespace v8::internal |
325 | 327 |
326 #endif // V8_MACRO_ASSEMBLER_IA32_H_ | 328 #endif // V8_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |