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

Side by Side Diff: src/mips/macro-assembler-mips.cc

Issue 1186823003: Clean up JSConstructStub (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased Created 5 years, 6 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
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/mips64/builtins-mips64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <limits.h> // For LONG_MIN, LONG_MAX. 5 #include <limits.h> // For LONG_MIN, LONG_MAX.
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 3786 matching lines...) Expand 10 before | Expand all | Expand 10 after
3797 3797
3798 void MacroAssembler::InitializeFieldsWithFiller(Register start_offset, 3798 void MacroAssembler::InitializeFieldsWithFiller(Register start_offset,
3799 Register end_offset, 3799 Register end_offset,
3800 Register filler) { 3800 Register filler) {
3801 Label loop, entry; 3801 Label loop, entry;
3802 Branch(&entry); 3802 Branch(&entry);
3803 bind(&loop); 3803 bind(&loop);
3804 sw(filler, MemOperand(start_offset)); 3804 sw(filler, MemOperand(start_offset));
3805 Addu(start_offset, start_offset, kPointerSize); 3805 Addu(start_offset, start_offset, kPointerSize);
3806 bind(&entry); 3806 bind(&entry);
3807 Branch(&loop, lt, start_offset, Operand(end_offset)); 3807 Branch(&loop, ult, start_offset, Operand(end_offset));
3808 } 3808 }
3809 3809
3810 3810
3811 void MacroAssembler::CheckFastElements(Register map, 3811 void MacroAssembler::CheckFastElements(Register map,
3812 Register scratch, 3812 Register scratch,
3813 Label* fail) { 3813 Label* fail) {
3814 STATIC_ASSERT(FAST_SMI_ELEMENTS == 0); 3814 STATIC_ASSERT(FAST_SMI_ELEMENTS == 0);
3815 STATIC_ASSERT(FAST_HOLEY_SMI_ELEMENTS == 1); 3815 STATIC_ASSERT(FAST_HOLEY_SMI_ELEMENTS == 1);
3816 STATIC_ASSERT(FAST_ELEMENTS == 2); 3816 STATIC_ASSERT(FAST_ELEMENTS == 2);
3817 STATIC_ASSERT(FAST_HOLEY_ELEMENTS == 3); 3817 STATIC_ASSERT(FAST_HOLEY_ELEMENTS == 3);
(...skipping 1742 matching lines...) Expand 10 before | Expand all | Expand 10 after
5560 } 5560 }
5561 5561
5562 Call(function); 5562 Call(function);
5563 5563
5564 int stack_passed_arguments = CalculateStackPassedWords( 5564 int stack_passed_arguments = CalculateStackPassedWords(
5565 num_reg_arguments, num_double_arguments); 5565 num_reg_arguments, num_double_arguments);
5566 5566
5567 if (base::OS::ActivationFrameAlignment() > kPointerSize) { 5567 if (base::OS::ActivationFrameAlignment() > kPointerSize) {
5568 lw(sp, MemOperand(sp, stack_passed_arguments * kPointerSize)); 5568 lw(sp, MemOperand(sp, stack_passed_arguments * kPointerSize));
5569 } else { 5569 } else {
5570 Addu(sp, sp, Operand(stack_passed_arguments * sizeof(kPointerSize))); 5570 Addu(sp, sp, Operand(stack_passed_arguments * kPointerSize));
5571 } 5571 }
5572 } 5572 }
5573 5573
5574 5574
5575 #undef BRANCH_ARGS_CHECK 5575 #undef BRANCH_ARGS_CHECK
5576 5576
5577 5577
5578 void MacroAssembler::PatchRelocatedValue(Register li_location, 5578 void MacroAssembler::PatchRelocatedValue(Register li_location,
5579 Register scratch, 5579 Register scratch,
5580 Register new_value) { 5580 Register new_value) {
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
6126 if (mag.shift > 0) sra(result, result, mag.shift); 6126 if (mag.shift > 0) sra(result, result, mag.shift);
6127 srl(at, dividend, 31); 6127 srl(at, dividend, 31);
6128 Addu(result, result, Operand(at)); 6128 Addu(result, result, Operand(at));
6129 } 6129 }
6130 6130
6131 6131
6132 } // namespace internal 6132 } // namespace internal
6133 } // namespace v8 6133 } // namespace v8
6134 6134
6135 #endif // V8_TARGET_ARCH_MIPS 6135 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/mips64/builtins-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698