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

Side by Side Diff: src/a64/stub-cache-a64.cc

Issue 143303004: A64: Fix CallStubCompiler::CompileArrayPushCall (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1733 matching lines...) Expand 10 before | Expand all | Expand 10 after
1744 __ Str(value, MemOperand(end_elements, kEndElementsOffset, PreIndex)); 1744 __ Str(value, MemOperand(end_elements, kEndElementsOffset, PreIndex));
1745 1745
1746 // Return length. 1746 // Return length.
1747 __ Drop(argc + 1); 1747 __ Drop(argc + 1);
1748 __ Mov(x0, length); 1748 __ Mov(x0, length);
1749 __ Ret(); 1749 __ Ret();
1750 1750
1751 __ Bind(&check_double); 1751 __ Bind(&check_double);
1752 // Check that the elements are in fast mode and writable. 1752 // Check that the elements are in fast mode and writable.
1753 __ CheckMap(elements, 1753 __ CheckMap(elements,
1754 x0, 1754 x10,
1755 Heap::kFixedDoubleArrayMapRootIndex, 1755 Heap::kFixedDoubleArrayMapRootIndex,
1756 &call_builtin, 1756 &call_builtin,
1757 DONT_DO_SMI_CHECK); 1757 DONT_DO_SMI_CHECK);
1758 1758
1759 // Get the array's length and calculate new length. 1759 // Get the array's length and calculate new length.
1760 Register old_length = x5; 1760 Register old_length = x5;
1761 __ Ldr(old_length, FieldMemOperand(receiver, JSArray::kLengthOffset)); 1761 __ Ldr(old_length, FieldMemOperand(receiver, JSArray::kLengthOffset));
1762 STATIC_ASSERT(kSmiTag == 0); 1762 STATIC_ASSERT(kSmiTag == 0);
1763 __ Add(length, old_length, Operand(Smi::FromInt(argc))); 1763 __ Add(length, old_length, Operand(Smi::FromInt(argc)));
1764 1764
(...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after
3006 3006
3007 // Miss case, call the runtime. 3007 // Miss case, call the runtime.
3008 __ Bind(&miss); 3008 __ Bind(&miss);
3009 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 3009 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
3010 } 3010 }
3011 3011
3012 3012
3013 } } // namespace v8::internal 3013 } } // namespace v8::internal
3014 3014
3015 #endif // V8_TARGET_ARCH_A64 3015 #endif // V8_TARGET_ARCH_A64
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698