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

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

Issue 6621071: X64 Crankshaft: Add inline one-element cache for Instanceof. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 9 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/x64/lithium-x64.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 LOperand* left = UseFixed(instr->left(), rax); 1149 LOperand* left = UseFixed(instr->left(), rax);
1150 LOperand* right = UseFixed(instr->right(), rdx); 1150 LOperand* right = UseFixed(instr->right(), rdx);
1151 LInstanceOf* result = new LInstanceOf(left, right); 1151 LInstanceOf* result = new LInstanceOf(left, right);
1152 return MarkAsCall(DefineFixed(result, rax), instr); 1152 return MarkAsCall(DefineFixed(result, rax), instr);
1153 } 1153 }
1154 1154
1155 1155
1156 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal( 1156 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal(
1157 HInstanceOfKnownGlobal* instr) { 1157 HInstanceOfKnownGlobal* instr) {
1158 LInstanceOfKnownGlobal* result = 1158 LInstanceOfKnownGlobal* result =
1159 new LInstanceOfKnownGlobal(UseFixed(instr->value(), rax)); 1159 new LInstanceOfKnownGlobal(UseFixed(instr->value(), rax),
1160 FixedTemp(rdi));
1160 return MarkAsCall(DefineFixed(result, rax), instr); 1161 return MarkAsCall(DefineFixed(result, rax), instr);
1161 } 1162 }
1162 1163
1163 1164
1164 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { 1165 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) {
1165 LOperand* function = UseFixed(instr->function(), rdi); 1166 LOperand* function = UseFixed(instr->function(), rdi);
1166 LOperand* receiver = UseFixed(instr->receiver(), rax); 1167 LOperand* receiver = UseFixed(instr->receiver(), rax);
1167 LOperand* length = UseFixed(instr->length(), rbx); 1168 LOperand* length = UseFixed(instr->length(), rbx);
1168 LOperand* elements = UseFixed(instr->elements(), rcx); 1169 LOperand* elements = UseFixed(instr->elements(), rcx);
1169 LApplyArguments* result = new LApplyArguments(function, 1170 LApplyArguments* result = new LApplyArguments(function,
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after
2038 2039
2039 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2040 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2040 HEnvironment* outer = current_block_->last_environment()->outer(); 2041 HEnvironment* outer = current_block_->last_environment()->outer();
2041 current_block_->UpdateEnvironment(outer); 2042 current_block_->UpdateEnvironment(outer);
2042 return NULL; 2043 return NULL;
2043 } 2044 }
2044 2045
2045 } } // namespace v8::internal 2046 } } // namespace v8::internal
2046 2047
2047 #endif // V8_TARGET_ARCH_X64 2048 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698