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

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

Issue 7062014: MIPS: Added the stop() instruction with same behavior as on Arm simulator. (Closed)
Patch Set: Created 9 years, 7 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 452
453 // Load int32 in the rd register. 453 // Load int32 in the rd register.
454 void li(Register rd, Operand j, bool gen2instr = false); 454 void li(Register rd, Operand j, bool gen2instr = false);
455 inline void li(Register rd, int32_t j, bool gen2instr = false) { 455 inline void li(Register rd, int32_t j, bool gen2instr = false) {
456 li(rd, Operand(j), gen2instr); 456 li(rd, Operand(j), gen2instr);
457 } 457 }
458 inline void li(Register dst, Handle<Object> value, bool gen2instr = false) { 458 inline void li(Register dst, Handle<Object> value, bool gen2instr = false) {
459 li(dst, Operand(value), gen2instr); 459 li(dst, Operand(value), gen2instr);
460 } 460 }
461 461
462 // Exception-generating instructions and debugging support.
463 void stop(const char* msg);
464
465 // Push multiple registers on the stack. 462 // Push multiple registers on the stack.
466 // Registers are saved in numerical order, with higher numbered registers 463 // Registers are saved in numerical order, with higher numbered registers
467 // saved in higher memory addresses. 464 // saved in higher memory addresses.
468 void MultiPush(RegList regs); 465 void MultiPush(RegList regs);
469 void MultiPushReversed(RegList regs); 466 void MultiPushReversed(RegList regs);
470 467
471 // Lower case push() for compatibility with arch-independent code. 468 // Lower case push() for compatibility with arch-independent code.
472 void push(Register src) { 469 void push(Register src) {
473 Addu(sp, sp, Operand(-kPointerSize)); 470 Addu(sp, sp, Operand(-kPointerSize));
474 sw(src, MemOperand(sp, 0)); 471 sw(src, MemOperand(sp, 0));
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
1205 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1202 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1206 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1203 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1207 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1204 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1208 #else 1205 #else
1209 #define ACCESS_MASM(masm) masm-> 1206 #define ACCESS_MASM(masm) masm->
1210 #endif 1207 #endif
1211 1208
1212 } } // namespace v8::internal 1209 } } // namespace v8::internal
1213 1210
1214 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1211 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698