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

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: improve JavaScriptFrame::Print() 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
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 2363 matching lines...) Expand 10 before | Expand all | Expand 10 after
6234 if (mag.shift > 0) sra(result, result, mag.shift); 6234 if (mag.shift > 0) sra(result, result, mag.shift);
6235 srl(at, dividend, 31); 6235 srl(at, dividend, 31);
6236 Addu(result, result, Operand(at)); 6236 Addu(result, result, Operand(at));
6237 } 6237 }
6238 6238
6239 6239
6240 } // namespace internal 6240 } // namespace internal
6241 } // namespace v8 6241 } // namespace v8
6242 6242
6243 #endif // V8_TARGET_ARCH_MIPS64 6243 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« src/frames.cc ('K') | « 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