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

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

Issue 1596293003: Use default argument count for runtime function calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/compiler/js-typed-lowering.cc ('k') | src/mips/macro-assembler-mips.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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/base/division-by-constant.h" 8 #include "src/base/division-by-constant.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 2026 matching lines...) Expand 10 before | Expand all | Expand 10 after
2037 } 2037 }
2038 if (actual.is_reg()) { 2038 if (actual.is_reg()) {
2039 SmiTag(actual.reg()); 2039 SmiTag(actual.reg());
2040 Push(actual.reg()); 2040 Push(actual.reg());
2041 } 2041 }
2042 if (new_target.is_valid()) { 2042 if (new_target.is_valid()) {
2043 Push(new_target); 2043 Push(new_target);
2044 } 2044 }
2045 Push(fun); 2045 Push(fun);
2046 Push(fun); 2046 Push(fun);
2047 CallRuntime(Runtime::kDebugPrepareStepInIfStepping, 1); 2047 CallRuntime(Runtime::kDebugPrepareStepInIfStepping);
2048 Pop(fun); 2048 Pop(fun);
2049 if (new_target.is_valid()) { 2049 if (new_target.is_valid()) {
2050 Pop(new_target); 2050 Pop(new_target);
2051 } 2051 }
2052 if (actual.is_reg()) { 2052 if (actual.is_reg()) {
2053 Pop(actual.reg()); 2053 Pop(actual.reg());
2054 SmiUntag(actual.reg()); 2054 SmiUntag(actual.reg());
2055 } 2055 }
2056 if (expected.is_reg()) { 2056 if (expected.is_reg()) {
2057 Pop(expected.reg()); 2057 Pop(expected.reg());
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
2634 return; 2634 return;
2635 } 2635 }
2636 #endif 2636 #endif
2637 2637
2638 push(Immediate(reinterpret_cast<intptr_t>(Smi::FromInt(reason)))); 2638 push(Immediate(reinterpret_cast<intptr_t>(Smi::FromInt(reason))));
2639 // Disable stub call restrictions to always allow calls to abort. 2639 // Disable stub call restrictions to always allow calls to abort.
2640 if (!has_frame_) { 2640 if (!has_frame_) {
2641 // We don't actually want to generate a pile of code for this, so just 2641 // We don't actually want to generate a pile of code for this, so just
2642 // claim there is a stack frame, without generating one. 2642 // claim there is a stack frame, without generating one.
2643 FrameScope scope(this, StackFrame::NONE); 2643 FrameScope scope(this, StackFrame::NONE);
2644 CallRuntime(Runtime::kAbort, 1); 2644 CallRuntime(Runtime::kAbort);
2645 } else { 2645 } else {
2646 CallRuntime(Runtime::kAbort, 1); 2646 CallRuntime(Runtime::kAbort);
2647 } 2647 }
2648 // will not return here 2648 // will not return here
2649 int3(); 2649 int3();
2650 } 2650 }
2651 2651
2652 2652
2653 void MacroAssembler::LoadInstanceDescriptors(Register map, 2653 void MacroAssembler::LoadInstanceDescriptors(Register map,
2654 Register descriptors) { 2654 Register descriptors) {
2655 mov(descriptors, FieldOperand(map, Map::kDescriptorsOffset)); 2655 mov(descriptors, FieldOperand(map, Map::kDescriptorsOffset));
2656 } 2656 }
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
3116 mov(eax, dividend); 3116 mov(eax, dividend);
3117 shr(eax, 31); 3117 shr(eax, 31);
3118 add(edx, eax); 3118 add(edx, eax);
3119 } 3119 }
3120 3120
3121 3121
3122 } // namespace internal 3122 } // namespace internal
3123 } // namespace v8 3123 } // namespace v8
3124 3124
3125 #endif // V8_TARGET_ARCH_IA32 3125 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698