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

Side by Side Diff: src/a64/code-stubs-a64.cc

Issue 170403003: templatize operand constructors (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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 | « src/a64/builtins-a64.cc ('k') | 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 2521 matching lines...) Expand 10 before | Expand all | Expand 10 after
2532 // x11 loop_count parameter loop counter (uninit) 2532 // x11 loop_count parameter loop counter (uninit)
2533 // x12 index parameter index (smi, uninit) 2533 // x12 index parameter index (smi, uninit)
2534 // x13 the_hole hole value (uninit) 2534 // x13 the_hole hole value (uninit)
2535 // x14 recv_arg pointer to receiver arguments 2535 // x14 recv_arg pointer to receiver arguments
2536 2536
2537 Register loop_count = x11; 2537 Register loop_count = x11;
2538 Register index = x12; 2538 Register index = x12;
2539 Register the_hole = x13; 2539 Register the_hole = x13;
2540 Label parameters_loop, parameters_test; 2540 Label parameters_loop, parameters_test;
2541 __ Mov(loop_count, mapped_params); 2541 __ Mov(loop_count, mapped_params);
2542 __ Add(index, param_count, Context::MIN_CONTEXT_SLOTS); 2542 __ Add(index, param_count, static_cast<int>(Context::MIN_CONTEXT_SLOTS));
2543 __ Sub(index, index, mapped_params); 2543 __ Sub(index, index, mapped_params);
2544 __ SmiTag(index); 2544 __ SmiTag(index);
2545 __ LoadRoot(the_hole, Heap::kTheHoleValueRootIndex); 2545 __ LoadRoot(the_hole, Heap::kTheHoleValueRootIndex);
2546 __ Add(backing_store, elements, Operand(loop_count, LSL, kPointerSizeLog2)); 2546 __ Add(backing_store, elements, Operand(loop_count, LSL, kPointerSizeLog2));
2547 __ Add(backing_store, backing_store, kParameterMapHeaderSize); 2547 __ Add(backing_store, backing_store, kParameterMapHeaderSize);
2548 2548
2549 __ B(&parameters_test); 2549 __ B(&parameters_test);
2550 2550
2551 __ Bind(&parameters_loop); 2551 __ Bind(&parameters_loop);
2552 __ Sub(loop_count, loop_count, 1); 2552 __ Sub(loop_count, loop_count, 1);
(...skipping 3243 matching lines...) Expand 10 before | Expand all | Expand 10 after
5796 MemOperand(fp, 6 * kPointerSize), 5796 MemOperand(fp, 6 * kPointerSize),
5797 NULL); 5797 NULL);
5798 } 5798 }
5799 5799
5800 5800
5801 #undef __ 5801 #undef __
5802 5802
5803 } } // namespace v8::internal 5803 } } // namespace v8::internal
5804 5804
5805 #endif // V8_TARGET_ARCH_A64 5805 #endif // V8_TARGET_ARCH_A64
OLDNEW
« no previous file with comments | « src/a64/builtins-a64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698