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

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

Issue 11280080: MIPS: Lattice-based representation inference, powered by left/right specific type feedback for Bina… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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/mips/lithium-mips.h ('k') | src/mips/simulator-mips.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1327 matching lines...) Expand 10 before | Expand all | Expand 10 after
1338 ASSERT(instr->right()->representation().IsTagged()); 1338 ASSERT(instr->right()->representation().IsTagged());
1339 LOperand* left = UseFixed(instr->left(), a1); 1339 LOperand* left = UseFixed(instr->left(), a1);
1340 LOperand* right = UseFixed(instr->right(), a0); 1340 LOperand* right = UseFixed(instr->right(), a0);
1341 LCmpT* result = new(zone()) LCmpT(left, right); 1341 LCmpT* result = new(zone()) LCmpT(left, right);
1342 return MarkAsCall(DefineFixed(result, v0), instr); 1342 return MarkAsCall(DefineFixed(result, v0), instr);
1343 } 1343 }
1344 1344
1345 1345
1346 LInstruction* LChunkBuilder::DoCompareIDAndBranch( 1346 LInstruction* LChunkBuilder::DoCompareIDAndBranch(
1347 HCompareIDAndBranch* instr) { 1347 HCompareIDAndBranch* instr) {
1348 Representation r = instr->GetInputRepresentation(); 1348 Representation r = instr->representation();
1349 if (r.IsInteger32()) { 1349 if (r.IsInteger32()) {
1350 ASSERT(instr->left()->representation().IsInteger32()); 1350 ASSERT(instr->left()->representation().IsInteger32());
1351 ASSERT(instr->right()->representation().IsInteger32()); 1351 ASSERT(instr->right()->representation().IsInteger32());
1352 LOperand* left = UseRegisterOrConstantAtStart(instr->left()); 1352 LOperand* left = UseRegisterOrConstantAtStart(instr->left());
1353 LOperand* right = UseRegisterOrConstantAtStart(instr->right()); 1353 LOperand* right = UseRegisterOrConstantAtStart(instr->right());
1354 return new(zone()) LCmpIDAndBranch(left, right); 1354 return new(zone()) LCmpIDAndBranch(left, right);
1355 } else { 1355 } else {
1356 ASSERT(r.IsDouble()); 1356 ASSERT(r.IsDouble());
1357 ASSERT(instr->left()->representation().IsDouble()); 1357 ASSERT(instr->left()->representation().IsDouble());
1358 ASSERT(instr->right()->representation().IsDouble()); 1358 ASSERT(instr->right()->representation().IsDouble());
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after
2098 } 2098 }
2099 2099
2100 2100
2101 LInstruction* LChunkBuilder::DoSimulate(HSimulate* instr) { 2101 LInstruction* LChunkBuilder::DoSimulate(HSimulate* instr) {
2102 HEnvironment* env = current_block_->last_environment(); 2102 HEnvironment* env = current_block_->last_environment();
2103 ASSERT(env != NULL); 2103 ASSERT(env != NULL);
2104 2104
2105 env->set_ast_id(instr->ast_id()); 2105 env->set_ast_id(instr->ast_id());
2106 2106
2107 env->Drop(instr->pop_count()); 2107 env->Drop(instr->pop_count());
2108 for (int i = 0; i < instr->values()->length(); ++i) { 2108 for (int i = instr->values()->length() - 1; i >= 0; --i) {
2109 HValue* value = instr->values()->at(i); 2109 HValue* value = instr->values()->at(i);
2110 if (instr->HasAssignedIndexAt(i)) { 2110 if (instr->HasAssignedIndexAt(i)) {
2111 env->Bind(instr->GetAssignedIndexAt(i), value); 2111 env->Bind(instr->GetAssignedIndexAt(i), value);
2112 } else { 2112 } else {
2113 env->Push(value); 2113 env->Push(value);
2114 } 2114 }
2115 } 2115 }
2116 2116
2117 // If there is an instruction pending deoptimization environment create a 2117 // If there is an instruction pending deoptimization environment create a
2118 // lazy bailout instruction to capture the environment. 2118 // lazy bailout instruction to capture the environment.
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
2209 2209
2210 2210
2211 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2211 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2212 LOperand* object = UseRegister(instr->object()); 2212 LOperand* object = UseRegister(instr->object());
2213 LOperand* index = UseRegister(instr->index()); 2213 LOperand* index = UseRegister(instr->index());
2214 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2214 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2215 } 2215 }
2216 2216
2217 2217
2218 } } // namespace v8::internal 2218 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/mips/simulator-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698