OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 7856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7867 case Token::IN: { | 7867 case Token::IN: { |
7868 Load(left); | 7868 Load(left); |
7869 Load(right); | 7869 Load(right); |
7870 Result answer = frame_->InvokeBuiltin(Builtins::IN, CALL_FUNCTION, 2); | 7870 Result answer = frame_->InvokeBuiltin(Builtins::IN, CALL_FUNCTION, 2); |
7871 frame_->Push(&answer); // push the result | 7871 frame_->Push(&answer); // push the result |
7872 return; | 7872 return; |
7873 } | 7873 } |
7874 case Token::INSTANCEOF: { | 7874 case Token::INSTANCEOF: { |
7875 Load(left); | 7875 Load(left); |
7876 Load(right); | 7876 Load(right); |
7877 InstanceofStub stub; | 7877 InstanceofStub stub(InstanceofStub::kNoFlags); |
7878 Result answer = frame_->CallStub(&stub, 2); | 7878 Result answer = frame_->CallStub(&stub, 2); |
7879 answer.ToRegister(); | 7879 answer.ToRegister(); |
7880 __ testq(answer.reg(), answer.reg()); | 7880 __ testq(answer.reg(), answer.reg()); |
7881 answer.Unuse(); | 7881 answer.Unuse(); |
7882 destination()->Split(zero); | 7882 destination()->Split(zero); |
7883 return; | 7883 return; |
7884 } | 7884 } |
7885 default: | 7885 default: |
7886 UNREACHABLE(); | 7886 UNREACHABLE(); |
7887 } | 7887 } |
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8813 #undef __ | 8813 #undef __ |
8814 | 8814 |
8815 void RecordWriteStub::Generate(MacroAssembler* masm) { | 8815 void RecordWriteStub::Generate(MacroAssembler* masm) { |
8816 masm->RecordWriteHelper(object_, addr_, scratch_); | 8816 masm->RecordWriteHelper(object_, addr_, scratch_); |
8817 masm->ret(0); | 8817 masm->ret(0); |
8818 } | 8818 } |
8819 | 8819 |
8820 } } // namespace v8::internal | 8820 } } // namespace v8::internal |
8821 | 8821 |
8822 #endif // V8_TARGET_ARCH_X64 | 8822 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |