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

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

Issue 59023003: Generate TypedArrayInitialize builtin in hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: CR feedback Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/hydrogen.h » ('j') | src/hydrogen-instructions.h » ('J')
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 1649 matching lines...) Expand 10 before | Expand all | Expand 10 after
1660 ASSERT(instr->left()->representation().Equals(instr->representation())); 1660 ASSERT(instr->left()->representation().Equals(instr->representation()));
1661 ASSERT(instr->right()->representation().Equals(instr->representation())); 1661 ASSERT(instr->right()->representation().Equals(instr->representation()));
1662 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand()); 1662 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand());
1663 LOperand* right = UseOrConstantAtStart(instr->BetterRightOperand()); 1663 LOperand* right = UseOrConstantAtStart(instr->BetterRightOperand());
1664 LAddI* add = new(zone()) LAddI(left, right); 1664 LAddI* add = new(zone()) LAddI(left, right);
1665 LInstruction* result = DefineAsRegister(add); 1665 LInstruction* result = DefineAsRegister(add);
1666 if (instr->CheckFlag(HValue::kCanOverflow)) { 1666 if (instr->CheckFlag(HValue::kCanOverflow)) {
1667 result = AssignEnvironment(result); 1667 result = AssignEnvironment(result);
1668 } 1668 }
1669 return result; 1669 return result;
1670 } else if (instr->representation().IsExternal()) {
1671 ASSERT(instr->left()->representation().IsExternal());
1672 ASSERT(instr->right()->representation().IsInteger32());
1673 ASSERT(!instr->CheckFlag(HValue::kCanOverflow));
1674 LOperand* left = UseRegisterAtStart(instr->left());
1675 LOperand* right = UseOrConstantAtStart(instr->right());
1676 LAddI* add = new(zone()) LAddI(left, right);
1677 LInstruction* result = DefineAsRegister(add);
1678 return result;
1670 } else if (instr->representation().IsDouble()) { 1679 } else if (instr->representation().IsDouble()) {
1671 if (instr->left()->IsMul()) { 1680 if (instr->left()->IsMul()) {
1672 return DoMultiplyAdd(HMul::cast(instr->left()), instr->right()); 1681 return DoMultiplyAdd(HMul::cast(instr->left()), instr->right());
1673 } 1682 }
1674 1683
1675 if (instr->right()->IsMul()) { 1684 if (instr->right()->IsMul()) {
1676 ASSERT(!instr->left()->IsMul()); 1685 ASSERT(!instr->left()->IsMul());
1677 return DoMultiplyAdd(HMul::cast(instr->right()), instr->left()); 1686 return DoMultiplyAdd(HMul::cast(instr->right()), instr->left());
1678 } 1687 }
1679 1688
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after
2679 2688
2680 2689
2681 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2690 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2682 LOperand* object = UseRegister(instr->object()); 2691 LOperand* object = UseRegister(instr->object());
2683 LOperand* index = UseRegister(instr->index()); 2692 LOperand* index = UseRegister(instr->index());
2684 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2693 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2685 } 2694 }
2686 2695
2687 2696
2688 } } // namespace v8::internal 2697 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.h » ('j') | src/hydrogen-instructions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698