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

Side by Side Diff: src/mips64/macro-assembler-mips64.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/mips64/builtins-mips64.cc ('k') | src/x64/builtins-x64.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_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 3839 matching lines...) Expand 10 before | Expand all | Expand 10 after
3850 3850
3851 void MacroAssembler::InitializeFieldsWithFiller(Register start_offset, 3851 void MacroAssembler::InitializeFieldsWithFiller(Register start_offset,
3852 Register end_offset, 3852 Register end_offset,
3853 Register filler) { 3853 Register filler) {
3854 Label loop, entry; 3854 Label loop, entry;
3855 Branch(&entry); 3855 Branch(&entry);
3856 bind(&loop); 3856 bind(&loop);
3857 sd(filler, MemOperand(start_offset)); 3857 sd(filler, MemOperand(start_offset));
3858 Daddu(start_offset, start_offset, kPointerSize); 3858 Daddu(start_offset, start_offset, kPointerSize);
3859 bind(&entry); 3859 bind(&entry);
3860 Branch(&loop, lt, start_offset, Operand(end_offset)); 3860 Branch(&loop, ult, start_offset, Operand(end_offset));
3861 } 3861 }
3862 3862
3863 3863
3864 void MacroAssembler::CheckFastElements(Register map, 3864 void MacroAssembler::CheckFastElements(Register map,
3865 Register scratch, 3865 Register scratch,
3866 Label* fail) { 3866 Label* fail) {
3867 STATIC_ASSERT(FAST_SMI_ELEMENTS == 0); 3867 STATIC_ASSERT(FAST_SMI_ELEMENTS == 0);
3868 STATIC_ASSERT(FAST_HOLEY_SMI_ELEMENTS == 1); 3868 STATIC_ASSERT(FAST_HOLEY_SMI_ELEMENTS == 1);
3869 STATIC_ASSERT(FAST_ELEMENTS == 2); 3869 STATIC_ASSERT(FAST_ELEMENTS == 2);
3870 STATIC_ASSERT(FAST_HOLEY_ELEMENTS == 3); 3870 STATIC_ASSERT(FAST_HOLEY_ELEMENTS == 3);
(...skipping 2485 matching lines...) Expand 10 before | Expand all | Expand 10 after
6356 if (mag.shift > 0) sra(result, result, mag.shift); 6356 if (mag.shift > 0) sra(result, result, mag.shift);
6357 srl(at, dividend, 31); 6357 srl(at, dividend, 31);
6358 Addu(result, result, Operand(at)); 6358 Addu(result, result, Operand(at));
6359 } 6359 }
6360 6360
6361 6361
6362 } // namespace internal 6362 } // namespace internal
6363 } // namespace v8 6363 } // namespace v8
6364 6364
6365 #endif // V8_TARGET_ARCH_MIPS64 6365 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698