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

Side by Side Diff: src/arm/codegen-arm.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
« no previous file with comments | « no previous file | src/arm/full-codegen-arm.cc » ('j') | src/v8-counters.h » ('J')
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 6451 matching lines...) Expand 10 before | Expand all | Expand 10 after
6462 Load(left); 6462 Load(left);
6463 Load(right); 6463 Load(right);
6464 frame_->InvokeBuiltin(Builtins::IN, CALL_JS, 2); 6464 frame_->InvokeBuiltin(Builtins::IN, CALL_JS, 2);
6465 frame_->EmitPush(r0); 6465 frame_->EmitPush(r0);
6466 break; 6466 break;
6467 } 6467 }
6468 6468
6469 case Token::INSTANCEOF: { 6469 case Token::INSTANCEOF: {
6470 Load(left); 6470 Load(left);
6471 Load(right); 6471 Load(right);
6472 InstanceofStub stub; 6472 InstanceofStub stub(InstanceofStub::kNoFlags);
6473 frame_->CallStub(&stub, 2); 6473 frame_->CallStub(&stub, 2);
6474 // At this point if instanceof succeeded then r0 == 0. 6474 // At this point if instanceof succeeded then r0 == 0.
6475 __ tst(r0, Operand(r0)); 6475 __ tst(r0, Operand(r0));
6476 cc_reg_ = eq; 6476 cc_reg_ = eq;
6477 break; 6477 break;
6478 } 6478 }
6479 6479
6480 default: 6480 default:
6481 UNREACHABLE(); 6481 UNREACHABLE();
6482 } 6482 }
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
7370 BinaryOpIC::GetName(runtime_operands_type_)); 7370 BinaryOpIC::GetName(runtime_operands_type_));
7371 return name_; 7371 return name_;
7372 } 7372 }
7373 7373
7374 7374
7375 #undef __ 7375 #undef __
7376 7376
7377 } } // namespace v8::internal 7377 } } // namespace v8::internal
7378 7378
7379 #endif // V8_TARGET_ARCH_ARM 7379 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/full-codegen-arm.cc » ('j') | src/v8-counters.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698