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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 void CheckMap(Register obj, | 403 void CheckMap(Register obj, |
404 Handle<Map> map, | 404 Handle<Map> map, |
405 Label* fail, | 405 Label* fail, |
406 SmiCheckType smi_check_type, | 406 SmiCheckType smi_check_type, |
407 CompareMapMode mode = REQUIRE_EXACT_MAP); | 407 CompareMapMode mode = REQUIRE_EXACT_MAP); |
408 | 408 |
409 // Check if the map of an object is equal to a specified map and branch to a | 409 // Check if the map of an object is equal to a specified map and branch to a |
410 // specified target if equal. Skip the smi check if not required (object is | 410 // specified target if equal. Skip the smi check if not required (object is |
411 // known to be a heap object) | 411 // known to be a heap object) |
412 void DispatchMap(Register obj, | 412 void DispatchMap(Register obj, |
| 413 Register unused, |
413 Handle<Map> map, | 414 Handle<Map> map, |
414 Handle<Code> success, | 415 Handle<Code> success, |
415 SmiCheckType smi_check_type); | 416 SmiCheckType smi_check_type); |
416 | 417 |
417 // Check if the object in register heap_object is a string. Afterwards the | 418 // Check if the object in register heap_object is a string. Afterwards the |
418 // register map contains the object map and the register instance_type | 419 // register map contains the object map and the register instance_type |
419 // contains the instance_type. The registers map and instance_type can be the | 420 // contains the instance_type. The registers map and instance_type can be the |
420 // same in which case it contains the instance type afterwards. Either of the | 421 // same in which case it contains the instance type afterwards. Either of the |
421 // registers map and instance_type can be the same as heap_object. | 422 // registers map and instance_type can be the same as heap_object. |
422 Condition IsObjectStringType(Register heap_object, | 423 Condition IsObjectStringType(Register heap_object, |
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1018 } \ | 1019 } \ |
1019 masm-> | 1020 masm-> |
1020 #else | 1021 #else |
1021 #define ACCESS_MASM(masm) masm-> | 1022 #define ACCESS_MASM(masm) masm-> |
1022 #endif | 1023 #endif |
1023 | 1024 |
1024 | 1025 |
1025 } } // namespace v8::internal | 1026 } } // namespace v8::internal |
1026 | 1027 |
1027 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1028 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |