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

Side by Side Diff: src/arm/lithium-arm.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 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 1334
1335 1335
1336 LInstruction* LChunkBuilder::DoCallConstantFunction( 1336 LInstruction* LChunkBuilder::DoCallConstantFunction(
1337 HCallConstantFunction* instr) { 1337 HCallConstantFunction* instr) {
1338 argument_count_ -= instr->argument_count(); 1338 argument_count_ -= instr->argument_count();
1339 return MarkAsCall(DefineFixed(new LCallConstantFunction, r0), instr); 1339 return MarkAsCall(DefineFixed(new LCallConstantFunction, r0), instr);
1340 } 1340 }
1341 1341
1342 1342
1343 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { 1343 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) {
1344 MathFunctionId op = instr->op(); 1344 BuiltinFunctionId op = instr->op();
1345 LOperand* input = UseRegisterAtStart(instr->value()); 1345 LOperand* input = UseRegisterAtStart(instr->value());
1346 LInstruction* result = new LUnaryMathOperation(input); 1346 LInstruction* result = new LUnaryMathOperation(input);
1347 switch (op) { 1347 switch (op) {
1348 case kMathAbs: 1348 case kMathAbs:
1349 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); 1349 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result)));
1350 case kMathFloor: 1350 case kMathFloor:
1351 return AssignEnvironment(DefineAsRegister(result)); 1351 return AssignEnvironment(DefineAsRegister(result));
1352 case kMathSqrt: 1352 case kMathSqrt:
1353 return DefineSameAsFirst(result); 1353 return DefineSameAsFirst(result);
1354 case kMathPowHalf: 1354 case kMathPowHalf:
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
2077 void LPointerMap::PrintTo(StringStream* stream) const { 2077 void LPointerMap::PrintTo(StringStream* stream) const {
2078 stream->Add("{"); 2078 stream->Add("{");
2079 for (int i = 0; i < pointer_operands_.length(); ++i) { 2079 for (int i = 0; i < pointer_operands_.length(); ++i) {
2080 if (i != 0) stream->Add(";"); 2080 if (i != 0) stream->Add(";");
2081 pointer_operands_[i]->PrintTo(stream); 2081 pointer_operands_[i]->PrintTo(stream);
2082 } 2082 }
2083 stream->Add("} @%d", position()); 2083 stream->Add("} @%d", position());
2084 } 2084 }
2085 2085
2086 } } // namespace v8::internal 2086 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/stub-cache-arm.cc » ('j') | src/objects-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698