OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 4841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4852 } | 4852 } |
4853 | 4853 |
4854 | 4854 |
4855 void ICCompareStub::GenerateObjects(MacroAssembler* masm) { | 4855 void ICCompareStub::GenerateObjects(MacroAssembler* masm) { |
4856 ASSERT(state_ == CompareIC::OBJECTS); | 4856 ASSERT(state_ == CompareIC::OBJECTS); |
4857 Label miss; | 4857 Label miss; |
4858 Condition either_smi = masm->CheckEitherSmi(rdx, rax); | 4858 Condition either_smi = masm->CheckEitherSmi(rdx, rax); |
4859 __ j(either_smi, &miss, Label::kNear); | 4859 __ j(either_smi, &miss, Label::kNear); |
4860 | 4860 |
4861 __ CmpObjectType(rax, JS_OBJECT_TYPE, rcx); | 4861 __ CmpObjectType(rax, JS_OBJECT_TYPE, rcx); |
4862 __ j(not_equal, &miss, not_taken, Label::kNear); | 4862 __ j(not_equal, &miss, Label::kNear); |
4863 __ CmpObjectType(rdx, JS_OBJECT_TYPE, rcx); | 4863 __ CmpObjectType(rdx, JS_OBJECT_TYPE, rcx); |
4864 __ j(not_equal, &miss, not_taken, Label::kNear); | 4864 __ j(not_equal, &miss, Label::kNear); |
4865 | 4865 |
4866 ASSERT(GetCondition() == equal); | 4866 ASSERT(GetCondition() == equal); |
4867 __ subq(rax, rdx); | 4867 __ subq(rax, rdx); |
4868 __ ret(0); | 4868 __ ret(0); |
4869 | 4869 |
4870 __ bind(&miss); | 4870 __ bind(&miss); |
4871 GenerateMiss(masm); | 4871 GenerateMiss(masm); |
4872 } | 4872 } |
4873 | 4873 |
4874 | 4874 |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5101 __ Drop(1); | 5101 __ Drop(1); |
5102 __ ret(2 * kPointerSize); | 5102 __ ret(2 * kPointerSize); |
5103 } | 5103 } |
5104 | 5104 |
5105 | 5105 |
5106 #undef __ | 5106 #undef __ |
5107 | 5107 |
5108 } } // namespace v8::internal | 5108 } } // namespace v8::internal |
5109 | 5109 |
5110 #endif // V8_TARGET_ARCH_X64 | 5110 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |