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

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

Issue 892613003: MIPS: Reland "Initial switch to Chromium-style CHECK_* and DCHECK_* macros.". (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove printf formatter changes. Created 5 years, 10 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/macro-assembler-mips.h ('k') | src/mips64/code-stubs-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 3225 matching lines...) Expand 10 before | Expand all | Expand 10 after
3236 // pushing on the stack. 3236 // pushing on the stack.
3237 // Set up the code object (t1) and the state (t2) for pushing. 3237 // Set up the code object (t1) and the state (t2) for pushing.
3238 unsigned state = 3238 unsigned state =
3239 StackHandler::IndexField::encode(handler_index) | 3239 StackHandler::IndexField::encode(handler_index) |
3240 StackHandler::KindField::encode(kind); 3240 StackHandler::KindField::encode(kind);
3241 li(t1, Operand(CodeObject()), CONSTANT_SIZE); 3241 li(t1, Operand(CodeObject()), CONSTANT_SIZE);
3242 li(t2, Operand(state)); 3242 li(t2, Operand(state));
3243 3243
3244 // Push the frame pointer, context, state, and code object. 3244 // Push the frame pointer, context, state, and code object.
3245 if (kind == StackHandler::JS_ENTRY) { 3245 if (kind == StackHandler::JS_ENTRY) {
3246 DCHECK_EQ(Smi::FromInt(0), 0); 3246 DCHECK_EQ(static_cast<Smi*>(0), Smi::FromInt(0));
3247 // The second zero_reg indicates no context. 3247 // The second zero_reg indicates no context.
3248 // The first zero_reg is the NULL frame pointer. 3248 // The first zero_reg is the NULL frame pointer.
3249 // The operands are reversed to match the order of MultiPush/Pop. 3249 // The operands are reversed to match the order of MultiPush/Pop.
3250 Push(zero_reg, zero_reg, t2, t1); 3250 Push(zero_reg, zero_reg, t2, t1);
3251 } else { 3251 } else {
3252 MultiPush(t1.bit() | t2.bit() | cp.bit() | fp.bit()); 3252 MultiPush(t1.bit() | t2.bit() | cp.bit() | fp.bit());
3253 } 3253 }
3254 3254
3255 // Link the current handler as the next handler. 3255 // Link the current handler as the next handler.
3256 li(t2, Operand(ExternalReference(Isolate::kHandlerAddress, isolate()))); 3256 li(t2, Operand(ExternalReference(Isolate::kHandlerAddress, isolate())));
(...skipping 2900 matching lines...) Expand 10 before | Expand all | Expand 10 after
6157 } 6157 }
6158 if (mag.shift > 0) sra(result, result, mag.shift); 6158 if (mag.shift > 0) sra(result, result, mag.shift);
6159 srl(at, dividend, 31); 6159 srl(at, dividend, 31);
6160 Addu(result, result, Operand(at)); 6160 Addu(result, result, Operand(at));
6161 } 6161 }
6162 6162
6163 6163
6164 } } // namespace v8::internal 6164 } } // namespace v8::internal
6165 6165
6166 #endif // V8_TARGET_ARCH_MIPS 6166 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.h ('k') | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698