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

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

Issue 6720017: Add inline non-transcendental cache version of log to lithium. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 8 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/ia32/lithium-codegen-ia32.cc ('k') | src/runtime.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 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1217 1217
1218 LInstruction* LChunkBuilder::DoCallConstantFunction( 1218 LInstruction* LChunkBuilder::DoCallConstantFunction(
1219 HCallConstantFunction* instr) { 1219 HCallConstantFunction* instr) {
1220 argument_count_ -= instr->argument_count(); 1220 argument_count_ -= instr->argument_count();
1221 return MarkAsCall(DefineFixed(new LCallConstantFunction, eax), instr); 1221 return MarkAsCall(DefineFixed(new LCallConstantFunction, eax), instr);
1222 } 1222 }
1223 1223
1224 1224
1225 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { 1225 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) {
1226 BuiltinFunctionId op = instr->op(); 1226 BuiltinFunctionId op = instr->op();
1227 if (op == kMathLog || op == kMathSin || op == kMathCos) { 1227 if (op == kMathLog) {
1228 ASSERT(instr->representation().IsDouble());
1229 ASSERT(instr->value()->representation().IsDouble());
1230 LOperand* input = UseRegisterAtStart(instr->value());
1231 LUnaryMathOperation* result = new LUnaryMathOperation(input);
1232 return DefineSameAsFirst(result);
1233 } else if (op == kMathSin || op == kMathCos) {
1228 LOperand* input = UseFixedDouble(instr->value(), xmm1); 1234 LOperand* input = UseFixedDouble(instr->value(), xmm1);
1229 LUnaryMathOperation* result = new LUnaryMathOperation(input); 1235 LUnaryMathOperation* result = new LUnaryMathOperation(input);
1230 return MarkAsCall(DefineFixedDouble(result, xmm1), instr); 1236 return MarkAsCall(DefineFixedDouble(result, xmm1), instr);
1231 } else { 1237 } else {
1232 LOperand* input = UseRegisterAtStart(instr->value()); 1238 LOperand* input = UseRegisterAtStart(instr->value());
1233 LUnaryMathOperation* result = new LUnaryMathOperation(input); 1239 LUnaryMathOperation* result = new LUnaryMathOperation(input);
1234 switch (op) { 1240 switch (op) {
1235 case kMathAbs: 1241 case kMathAbs:
1236 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); 1242 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result)));
1237 case kMathFloor: 1243 case kMathFloor:
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after
2156 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2162 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2157 HEnvironment* outer = current_block_->last_environment()->outer(); 2163 HEnvironment* outer = current_block_->last_environment()->outer();
2158 current_block_->UpdateEnvironment(outer); 2164 current_block_->UpdateEnvironment(outer);
2159 return NULL; 2165 return NULL;
2160 } 2166 }
2161 2167
2162 2168
2163 } } // namespace v8::internal 2169 } } // namespace v8::internal
2164 2170
2165 #endif // V8_TARGET_ARCH_IA32 2171 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698