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

Side by Side Diff: src/ia32/full-codegen-ia32.cc

Issue 5990005: Optimize instanceof further... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 months 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
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4024 matching lines...) Expand 10 before | Expand all | Expand 10 after
4035 case Token::IN: 4035 case Token::IN:
4036 VisitForStackValue(expr->right()); 4036 VisitForStackValue(expr->right());
4037 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION); 4037 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION);
4038 PrepareForBailoutBeforeSplit(TOS_REG, false, NULL, NULL); 4038 PrepareForBailoutBeforeSplit(TOS_REG, false, NULL, NULL);
4039 __ cmp(eax, Factory::true_value()); 4039 __ cmp(eax, Factory::true_value());
4040 Split(equal, if_true, if_false, fall_through); 4040 Split(equal, if_true, if_false, fall_through);
4041 break; 4041 break;
4042 4042
4043 case Token::INSTANCEOF: { 4043 case Token::INSTANCEOF: {
4044 VisitForStackValue(expr->right()); 4044 VisitForStackValue(expr->right());
4045 __ IncrementCounter(&Counters::instance_of_full, 1);
4046 InstanceofStub stub(InstanceofStub::kNoFlags); 4045 InstanceofStub stub(InstanceofStub::kNoFlags);
4047 __ CallStub(&stub); 4046 __ CallStub(&stub);
4048 PrepareForBailoutBeforeSplit(TOS_REG, true, if_true, if_false); 4047 PrepareForBailoutBeforeSplit(TOS_REG, true, if_true, if_false);
4049 __ test(eax, Operand(eax)); 4048 __ test(eax, Operand(eax));
4050 // The stub returns 0 for true. 4049 // The stub returns 0 for true.
4051 Split(zero, if_true, if_false, fall_through); 4050 Split(zero, if_true, if_false, fall_through);
4052 break; 4051 break;
4053 } 4052 }
4054 4053
4055 default: { 4054 default: {
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
4260 // And return. 4259 // And return.
4261 __ ret(0); 4260 __ ret(0);
4262 } 4261 }
4263 4262
4264 4263
4265 #undef __ 4264 #undef __
4266 4265
4267 } } // namespace v8::internal 4266 } } // namespace v8::internal
4268 4267
4269 #endif // V8_TARGET_ARCH_IA32 4268 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698