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

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

Issue 6461017: ARM: Add type-feedback recording for compare... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 10 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/arm/ic-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('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 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 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
1014 } else if (v->IsCompare()) { 1014 } else if (v->IsCompare()) {
1015 HCompare* compare = HCompare::cast(v); 1015 HCompare* compare = HCompare::cast(v);
1016 Token::Value op = compare->token(); 1016 Token::Value op = compare->token();
1017 HValue* left = compare->left(); 1017 HValue* left = compare->left();
1018 HValue* right = compare->right(); 1018 HValue* right = compare->right();
1019 Representation r = compare->GetInputRepresentation(); 1019 Representation r = compare->GetInputRepresentation();
1020 if (r.IsInteger32()) { 1020 if (r.IsInteger32()) {
1021 ASSERT(left->representation().IsInteger32()); 1021 ASSERT(left->representation().IsInteger32());
1022 ASSERT(right->representation().IsInteger32()); 1022 ASSERT(right->representation().IsInteger32());
1023 return new LCmpIDAndBranch(UseRegisterAtStart(left), 1023 return new LCmpIDAndBranch(UseRegisterAtStart(left),
1024 UseOrConstantAtStart(right)); 1024 UseRegisterAtStart(right));
1025 } else if (r.IsDouble()) { 1025 } else if (r.IsDouble()) {
1026 ASSERT(left->representation().IsDouble()); 1026 ASSERT(left->representation().IsDouble());
1027 ASSERT(right->representation().IsDouble()); 1027 ASSERT(right->representation().IsDouble());
1028 return new LCmpIDAndBranch(UseRegisterAtStart(left), 1028 return new LCmpIDAndBranch(UseRegisterAtStart(left),
1029 UseRegisterAtStart(right)); 1029 UseRegisterAtStart(right));
1030 } else { 1030 } else {
1031 ASSERT(left->representation().IsTagged()); 1031 ASSERT(left->representation().IsTagged());
1032 ASSERT(right->representation().IsTagged()); 1032 ASSERT(right->representation().IsTagged());
1033 bool reversed = op == Token::GT || op == Token::LTE; 1033 bool reversed = op == Token::GT || op == Token::LTE;
1034 LOperand* left_operand = UseFixed(left, reversed ? r0 : r1); 1034 LOperand* left_operand = UseFixed(left, reversed ? r0 : r1);
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
1412 } 1412 }
1413 1413
1414 1414
1415 LInstruction* LChunkBuilder::DoCompare(HCompare* instr) { 1415 LInstruction* LChunkBuilder::DoCompare(HCompare* instr) {
1416 Token::Value op = instr->token(); 1416 Token::Value op = instr->token();
1417 Representation r = instr->GetInputRepresentation(); 1417 Representation r = instr->GetInputRepresentation();
1418 if (r.IsInteger32()) { 1418 if (r.IsInteger32()) {
1419 ASSERT(instr->left()->representation().IsInteger32()); 1419 ASSERT(instr->left()->representation().IsInteger32());
1420 ASSERT(instr->right()->representation().IsInteger32()); 1420 ASSERT(instr->right()->representation().IsInteger32());
1421 LOperand* left = UseRegisterAtStart(instr->left()); 1421 LOperand* left = UseRegisterAtStart(instr->left());
1422 LOperand* right = UseOrConstantAtStart(instr->right()); 1422 LOperand* right = UseRegisterAtStart(instr->right());
1423 return DefineAsRegister(new LCmpID(left, right)); 1423 return DefineAsRegister(new LCmpID(left, right));
1424 } else if (r.IsDouble()) { 1424 } else if (r.IsDouble()) {
1425 ASSERT(instr->left()->representation().IsDouble()); 1425 ASSERT(instr->left()->representation().IsDouble());
1426 ASSERT(instr->right()->representation().IsDouble()); 1426 ASSERT(instr->right()->representation().IsDouble());
1427 LOperand* left = UseRegisterAtStart(instr->left()); 1427 LOperand* left = UseRegisterAtStart(instr->left());
1428 LOperand* right = UseRegisterAtStart(instr->right()); 1428 LOperand* right = UseRegisterAtStart(instr->right());
1429 return DefineAsRegister(new LCmpID(left, right)); 1429 return DefineAsRegister(new LCmpID(left, right));
1430 } else { 1430 } else {
1431 ASSERT(instr->left()->representation().IsTagged()); 1431 ASSERT(instr->left()->representation().IsTagged());
1432 ASSERT(instr->right()->representation().IsTagged()); 1432 ASSERT(instr->right()->representation().IsTagged());
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
1948 1948
1949 1949
1950 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 1950 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
1951 HEnvironment* outer = current_block_->last_environment()->outer(); 1951 HEnvironment* outer = current_block_->last_environment()->outer();
1952 current_block_->UpdateEnvironment(outer); 1952 current_block_->UpdateEnvironment(outer);
1953 return NULL; 1953 return NULL;
1954 } 1954 }
1955 1955
1956 1956
1957 } } // namespace v8::internal 1957 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/ic-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698