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

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

Issue 5767002: Merge math function ids and custom call generator ids. (Closed)
Patch Set: arm and x64 fixes. 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
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 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 1347
1348 1348
1349 LInstruction* LChunkBuilder::DoCallConstantFunction( 1349 LInstruction* LChunkBuilder::DoCallConstantFunction(
1350 HCallConstantFunction* instr) { 1350 HCallConstantFunction* instr) {
1351 argument_count_ -= instr->argument_count(); 1351 argument_count_ -= instr->argument_count();
1352 return MarkAsCall(DefineFixed(new LCallConstantFunction, eax), instr); 1352 return MarkAsCall(DefineFixed(new LCallConstantFunction, eax), instr);
1353 } 1353 }
1354 1354
1355 1355
1356 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { 1356 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) {
1357 MathFunctionId op = instr->op(); 1357 BuiltinFunctionId op = instr->op();
1358 LOperand* input = UseRegisterAtStart(instr->value()); 1358 LOperand* input = UseRegisterAtStart(instr->value());
1359 LInstruction* result = new LUnaryMathOperation(input); 1359 LInstruction* result = new LUnaryMathOperation(input);
1360 switch (op) { 1360 switch (op) {
1361 case kMathAbs: 1361 case kMathAbs:
1362 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); 1362 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result)));
1363 case kMathFloor: 1363 case kMathFloor:
1364 return AssignEnvironment(DefineAsRegister(result)); 1364 return AssignEnvironment(DefineAsRegister(result));
1365 case kMathRound: 1365 case kMathRound:
1366 return AssignEnvironment(DefineAsRegister(result)); 1366 return AssignEnvironment(DefineAsRegister(result));
1367 case kMathSqrt: 1367 case kMathSqrt:
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
2099 void LPointerMap::PrintTo(StringStream* stream) const { 2099 void LPointerMap::PrintTo(StringStream* stream) const {
2100 stream->Add("{"); 2100 stream->Add("{");
2101 for (int i = 0; i < pointer_operands_.length(); ++i) { 2101 for (int i = 0; i < pointer_operands_.length(); ++i) {
2102 if (i != 0) stream->Add(";"); 2102 if (i != 0) stream->Add(";");
2103 pointer_operands_[i]->PrintTo(stream); 2103 pointer_operands_[i]->PrintTo(stream);
2104 } 2104 }
2105 stream->Add("} @%d", position()); 2105 stream->Add("} @%d", position());
2106 } 2106 }
2107 2107
2108 } } // namespace v8::internal 2108 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/ia32/stub-cache-ia32.cc » ('j') | src/objects-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698