OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 void LoadTransitionedArrayMapConditional( | 228 void LoadTransitionedArrayMapConditional( |
229 ElementsKind expected_kind, | 229 ElementsKind expected_kind, |
230 ElementsKind transitioned_kind, | 230 ElementsKind transitioned_kind, |
231 Register map_in_out, | 231 Register map_in_out, |
232 Register scratch, | 232 Register scratch, |
233 Label* no_map_match); | 233 Label* no_map_match); |
234 | 234 |
235 // Load the initial map for new Arrays from a JSFunction. | 235 // Load the initial map for new Arrays from a JSFunction. |
236 void LoadInitialArrayMap(Register function_in, | 236 void LoadInitialArrayMap(Register function_in, |
237 Register scratch, | 237 Register scratch, |
238 Register map_out, | 238 Register map_out); |
239 bool can_have_holes); | |
240 | 239 |
241 // Load the global function with the given index. | 240 // Load the global function with the given index. |
242 void LoadGlobalFunction(int index, Register function); | 241 void LoadGlobalFunction(int index, Register function); |
243 | 242 |
244 // Load the initial map from the global function. The registers | 243 // Load the initial map from the global function. The registers |
245 // function and map can be the same. | 244 // function and map can be the same. |
246 void LoadGlobalFunctionInitialMap(Register function, Register map); | 245 void LoadGlobalFunctionInitialMap(Register function, Register map); |
247 | 246 |
248 // Push and pop the registers that can hold pointers. | 247 // Push and pop the registers that can hold pointers. |
249 void PushSafepointRegisters() { pushad(); } | 248 void PushSafepointRegisters() { pushad(); } |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 Label::Distance distance = Label::kFar); | 350 Label::Distance distance = Label::kFar); |
352 | 351 |
353 // Check if a map for a JSObject indicates that the object can have both smi | 352 // Check if a map for a JSObject indicates that the object can have both smi |
354 // and HeapObject elements. Jump to the specified label if it does not. | 353 // and HeapObject elements. Jump to the specified label if it does not. |
355 void CheckFastObjectElements(Register map, | 354 void CheckFastObjectElements(Register map, |
356 Label* fail, | 355 Label* fail, |
357 Label::Distance distance = Label::kFar); | 356 Label::Distance distance = Label::kFar); |
358 | 357 |
359 // Check if a map for a JSObject indicates that the object has fast smi only | 358 // Check if a map for a JSObject indicates that the object has fast smi only |
360 // elements. Jump to the specified label if it does not. | 359 // elements. Jump to the specified label if it does not. |
361 void CheckFastSmiElements(Register map, | 360 void CheckFastSmiOnlyElements(Register map, |
362 Label* fail, | 361 Label* fail, |
363 Label::Distance distance = Label::kFar); | 362 Label::Distance distance = Label::kFar); |
364 | 363 |
365 // Check to see if maybe_number can be stored as a double in | 364 // Check to see if maybe_number can be stored as a double in |
366 // FastDoubleElements. If it can, store it at the index specified by key in | 365 // FastDoubleElements. If it can, store it at the index specified by key in |
367 // the FastDoubleElements array elements, otherwise jump to fail. | 366 // the FastDoubleElements array elements, otherwise jump to fail. |
368 void StoreNumberToDoubleElements(Register maybe_number, | 367 void StoreNumberToDoubleElements(Register maybe_number, |
369 Register elements, | 368 Register elements, |
370 Register key, | 369 Register key, |
371 Register scratch1, | 370 Register scratch1, |
372 XMMRegister scratch2, | 371 XMMRegister scratch2, |
373 Label* fail, | 372 Label* fail, |
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
970 } \ | 969 } \ |
971 masm-> | 970 masm-> |
972 #else | 971 #else |
973 #define ACCESS_MASM(masm) masm-> | 972 #define ACCESS_MASM(masm) masm-> |
974 #endif | 973 #endif |
975 | 974 |
976 | 975 |
977 } } // namespace v8::internal | 976 } } // namespace v8::internal |
978 | 977 |
979 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 978 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |