Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: src/x64/codegen-x64.cc

Issue 5828004: IA32: Optimize instanceof... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« src/v8-counters.h ('K') | « src/v8-counters.h ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698