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

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

Issue 6342019: ARM: Initial type recording binary operation stub... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 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/macro-assembler-arm.h » ('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 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 HValue* left = instr->left(); 813 HValue* left = instr->left();
814 HValue* right = instr->right(); 814 HValue* right = instr->right();
815 ASSERT(left->representation().IsTagged()); 815 ASSERT(left->representation().IsTagged());
816 ASSERT(right->representation().IsTagged()); 816 ASSERT(right->representation().IsTagged());
817 LOperand* left_operand = UseFixed(left, r1); 817 LOperand* left_operand = UseFixed(left, r1);
818 LOperand* right_operand = UseFixed(right, r0); 818 LOperand* right_operand = UseFixed(right, r0);
819 LArithmeticT* result = new LArithmeticT(op, left_operand, right_operand); 819 LArithmeticT* result = new LArithmeticT(op, left_operand, right_operand);
820 return MarkAsCall(DefineFixed(result, r0), instr); 820 return MarkAsCall(DefineFixed(result, r0), instr);
821 } 821 }
822 822
823
823 void LChunkBuilder::DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block) { 824 void LChunkBuilder::DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block) {
824 ASSERT(is_building()); 825 ASSERT(is_building());
825 current_block_ = block; 826 current_block_ = block;
826 next_block_ = next_block; 827 next_block_ = next_block;
827 if (block->IsStartBlock()) { 828 if (block->IsStartBlock()) {
828 block->UpdateEnvironment(graph_->start_environment()); 829 block->UpdateEnvironment(graph_->start_environment());
829 argument_count_ = 0; 830 argument_count_ = 0;
830 } else if (block->predecessors()->length() == 1) { 831 } else if (block->predecessors()->length() == 1) {
831 // We have a single predecessor => copy environment and outgoing 832 // We have a single predecessor => copy environment and outgoing
832 // argument count from the predecessor. 833 // argument count from the predecessor.
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 1124
1124 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { 1125 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) {
1125 BuiltinFunctionId op = instr->op(); 1126 BuiltinFunctionId op = instr->op();
1126 LOperand* input = UseRegisterAtStart(instr->value()); 1127 LOperand* input = UseRegisterAtStart(instr->value());
1127 LOperand* temp = (op == kMathFloor) ? TempRegister() : NULL; 1128 LOperand* temp = (op == kMathFloor) ? TempRegister() : NULL;
1128 LUnaryMathOperation* result = new LUnaryMathOperation(input, temp); 1129 LUnaryMathOperation* result = new LUnaryMathOperation(input, temp);
1129 switch (op) { 1130 switch (op) {
1130 case kMathAbs: 1131 case kMathAbs:
1131 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); 1132 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result)));
1132 case kMathFloor: 1133 case kMathFloor:
1133 return AssignEnvironment(DefineAsRegister(result)); 1134 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result)));
1134 case kMathSqrt: 1135 case kMathSqrt:
1135 return DefineSameAsFirst(result); 1136 return DefineSameAsFirst(result);
1136 case kMathRound: 1137 case kMathRound:
1137 Abort("MathRound LUnaryMathOperation not implemented"); 1138 Abort("MathRound LUnaryMathOperation not implemented");
1138 return NULL; 1139 return NULL;
1139 case kMathPowHalf: 1140 case kMathPowHalf:
1140 Abort("MathPowHalf LUnaryMathOperation not implemented"); 1141 Abort("MathPowHalf LUnaryMathOperation not implemented");
1141 return NULL; 1142 return NULL;
1142 case kMathLog: 1143 case kMathLog:
1143 Abort("MathLog LUnaryMathOperation not implemented"); 1144 Abort("MathLog LUnaryMathOperation not implemented");
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
1858 1859
1859 1860
1860 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 1861 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
1861 HEnvironment* outer = current_block_->last_environment()->outer(); 1862 HEnvironment* outer = current_block_->last_environment()->outer();
1862 current_block_->UpdateEnvironment(outer); 1863 current_block_->UpdateEnvironment(outer);
1863 return NULL; 1864 return NULL;
1864 } 1865 }
1865 1866
1866 1867
1867 } } // namespace v8::internal 1868 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/ic-arm.cc ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698