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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 | 181 |
182 // Generate code for checking access rights - used for security checks | 182 // Generate code for checking access rights - used for security checks |
183 // on access to global objects across environments. The holder register | 183 // on access to global objects across environments. The holder register |
184 // is left untouched, whereas both scratch registers are clobbered. | 184 // is left untouched, whereas both scratch registers are clobbered. |
185 void CheckAccessGlobalProxy(Register holder_reg, | 185 void CheckAccessGlobalProxy(Register holder_reg, |
186 Register scratch, | 186 Register scratch, |
187 Label* miss); | 187 Label* miss); |
188 | 188 |
189 | 189 |
190 // --------------------------------------------------------------------------- | 190 // --------------------------------------------------------------------------- |
| 191 // Allocation support |
| 192 |
| 193 // Allocate an object in new space. If the new space is exhausted control |
| 194 // continues at the gc_required label. The allocated object is returned in |
| 195 // result. If the flag tag_allocated_object is true the result is tagged as |
| 196 // as a heap object. |
| 197 void AllocateObjectInNewSpace(int object_size, |
| 198 Register result, |
| 199 Register scratch1, |
| 200 Register scratch2, |
| 201 Label* gc_required, |
| 202 bool tag_allocated_object); |
| 203 |
| 204 // --------------------------------------------------------------------------- |
191 // Support functions. | 205 // Support functions. |
192 | 206 |
193 // Try to get function prototype of a function and puts the value in | 207 // Try to get function prototype of a function and puts the value in |
194 // the result register. Checks that the function really is a | 208 // the result register. Checks that the function really is a |
195 // function and jumps to the miss label if the fast checks fail. The | 209 // function and jumps to the miss label if the fast checks fail. The |
196 // function register will be untouched; the other registers may be | 210 // function register will be untouched; the other registers may be |
197 // clobbered. | 211 // clobbered. |
198 void TryGetFunctionPrototype(Register function, | 212 void TryGetFunctionPrototype(Register function, |
199 Register result, | 213 Register result, |
200 Register scratch, | 214 Register scratch, |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 354 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
341 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 355 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
342 #else | 356 #else |
343 #define ACCESS_MASM(masm) masm-> | 357 #define ACCESS_MASM(masm) masm-> |
344 #endif | 358 #endif |
345 | 359 |
346 | 360 |
347 } } // namespace v8::internal | 361 } } // namespace v8::internal |
348 | 362 |
349 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 363 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |