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

Side by Side Diff: src/ppc/macro-assembler-ppc.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/ppc/builtins-ppc.cc ('k') | src/x64/macro-assembler-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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 <assert.h> // For assert 5 #include <assert.h> // For assert
6 #include <limits.h> // For LONG_MIN, LONG_MAX. 6 #include <limits.h> // For LONG_MIN, LONG_MAX.
7 7
8 #if V8_TARGET_ARCH_PPC 8 #if V8_TARGET_ARCH_PPC
9 9
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 Push(expected.reg()); 1109 Push(expected.reg());
1110 } 1110 }
1111 if (actual.is_reg()) { 1111 if (actual.is_reg()) {
1112 SmiTag(actual.reg()); 1112 SmiTag(actual.reg());
1113 Push(actual.reg()); 1113 Push(actual.reg());
1114 } 1114 }
1115 if (new_target.is_valid()) { 1115 if (new_target.is_valid()) {
1116 Push(new_target); 1116 Push(new_target);
1117 } 1117 }
1118 Push(fun, fun); 1118 Push(fun, fun);
1119 CallRuntime(Runtime::kDebugPrepareStepInIfStepping, 1); 1119 CallRuntime(Runtime::kDebugPrepareStepInIfStepping);
1120 Pop(fun); 1120 Pop(fun);
1121 if (new_target.is_valid()) { 1121 if (new_target.is_valid()) {
1122 Pop(new_target); 1122 Pop(new_target);
1123 } 1123 }
1124 if (actual.is_reg()) { 1124 if (actual.is_reg()) {
1125 Pop(actual.reg()); 1125 Pop(actual.reg());
1126 SmiUntag(actual.reg()); 1126 SmiUntag(actual.reg());
1127 } 1127 }
1128 if (expected.is_reg()) { 1128 if (expected.is_reg()) {
1129 Pop(expected.reg()); 1129 Pop(expected.reg());
(...skipping 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after
2434 } 2434 }
2435 #endif 2435 #endif
2436 2436
2437 LoadSmiLiteral(r0, Smi::FromInt(reason)); 2437 LoadSmiLiteral(r0, Smi::FromInt(reason));
2438 push(r0); 2438 push(r0);
2439 // Disable stub call restrictions to always allow calls to abort. 2439 // Disable stub call restrictions to always allow calls to abort.
2440 if (!has_frame_) { 2440 if (!has_frame_) {
2441 // We don't actually want to generate a pile of code for this, so just 2441 // We don't actually want to generate a pile of code for this, so just
2442 // claim there is a stack frame, without generating one. 2442 // claim there is a stack frame, without generating one.
2443 FrameScope scope(this, StackFrame::NONE); 2443 FrameScope scope(this, StackFrame::NONE);
2444 CallRuntime(Runtime::kAbort, 1); 2444 CallRuntime(Runtime::kAbort);
2445 } else { 2445 } else {
2446 CallRuntime(Runtime::kAbort, 1); 2446 CallRuntime(Runtime::kAbort);
2447 } 2447 }
2448 // will not return here 2448 // will not return here
2449 } 2449 }
2450 2450
2451 2451
2452 void MacroAssembler::LoadContext(Register dst, int context_chain_length) { 2452 void MacroAssembler::LoadContext(Register dst, int context_chain_length) {
2453 if (context_chain_length > 0) { 2453 if (context_chain_length > 0) {
2454 // Move up the chain of contexts to the context containing the slot. 2454 // Move up the chain of contexts to the context containing the slot.
2455 LoadP(dst, MemOperand(cp, Context::SlotOffset(Context::PREVIOUS_INDEX))); 2455 LoadP(dst, MemOperand(cp, Context::SlotOffset(Context::PREVIOUS_INDEX)));
2456 for (int i = 1; i < context_chain_length; i++) { 2456 for (int i = 1; i < context_chain_length; i++) {
(...skipping 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after
4325 } 4325 }
4326 if (mag.shift > 0) srawi(result, result, mag.shift); 4326 if (mag.shift > 0) srawi(result, result, mag.shift);
4327 ExtractBit(r0, dividend, 31); 4327 ExtractBit(r0, dividend, 31);
4328 add(result, result, r0); 4328 add(result, result, r0);
4329 } 4329 }
4330 4330
4331 } // namespace internal 4331 } // namespace internal
4332 } // namespace v8 4332 } // namespace v8
4333 4333
4334 #endif // V8_TARGET_ARCH_PPC 4334 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/builtins-ppc.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698