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

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

Issue 7489045: ARM: Fast path for compare against constant. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 3 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 | « no previous file | src/arm/lithium-codegen-arm.h » ('j') | src/ia32/lithium-codegen-ia32.cc » ('J')
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 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after
1409 return MarkAsCall(DefineFixed(result, r0), instr); 1409 return MarkAsCall(DefineFixed(result, r0), instr);
1410 } 1410 }
1411 1411
1412 1412
1413 LInstruction* LChunkBuilder::DoCompareIDAndBranch( 1413 LInstruction* LChunkBuilder::DoCompareIDAndBranch(
1414 HCompareIDAndBranch* instr) { 1414 HCompareIDAndBranch* instr) {
1415 Representation r = instr->GetInputRepresentation(); 1415 Representation r = instr->GetInputRepresentation();
1416 if (r.IsInteger32()) { 1416 if (r.IsInteger32()) {
1417 ASSERT(instr->left()->representation().IsInteger32()); 1417 ASSERT(instr->left()->representation().IsInteger32());
1418 ASSERT(instr->right()->representation().IsInteger32()); 1418 ASSERT(instr->right()->representation().IsInteger32());
1419 LOperand* left = UseRegisterAtStart(instr->left()); 1419 LOperand* left = UseRegisterOrConstantAtStart(instr->left());
1420 LOperand* right = UseRegisterAtStart(instr->right()); 1420 LOperand* right = UseRegisterOrConstantAtStart(instr->right());
1421 return new LCmpIDAndBranch(left, right); 1421 return new LCmpIDAndBranch(left, right);
1422 } else { 1422 } else {
1423 ASSERT(r.IsDouble()); 1423 ASSERT(r.IsDouble());
1424 ASSERT(instr->left()->representation().IsDouble()); 1424 ASSERT(instr->left()->representation().IsDouble());
1425 ASSERT(instr->right()->representation().IsDouble()); 1425 ASSERT(instr->right()->representation().IsDouble());
1426 LOperand* left = UseRegisterAtStart(instr->left()); 1426 LOperand* left = UseRegisterAtStart(instr->left());
1427 LOperand* right = UseRegisterAtStart(instr->right()); 1427 LOperand* right = UseRegisterAtStart(instr->right());
1428 return new LCmpIDAndBranch(left, right); 1428 return new LCmpIDAndBranch(left, right);
1429 } 1429 }
1430 } 1430 }
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
2182 2182
2183 LInstruction* LChunkBuilder::DoIn(HIn* instr) { 2183 LInstruction* LChunkBuilder::DoIn(HIn* instr) {
2184 LOperand* key = UseRegisterAtStart(instr->key()); 2184 LOperand* key = UseRegisterAtStart(instr->key());
2185 LOperand* object = UseRegisterAtStart(instr->object()); 2185 LOperand* object = UseRegisterAtStart(instr->object());
2186 LIn* result = new LIn(key, object); 2186 LIn* result = new LIn(key, object);
2187 return MarkAsCall(DefineFixed(result, r0), instr); 2187 return MarkAsCall(DefineFixed(result, r0), instr);
2188 } 2188 }
2189 2189
2190 2190
2191 } } // namespace v8::internal 2191 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.h » ('j') | src/ia32/lithium-codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698