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

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

Issue 22715004: Version 3.20.15 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Add TypedArray API and correctness patches r16033 and r16084 Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/mips/lithium-mips.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 // 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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 620
621 // Push multiple registers on the stack. 621 // Push multiple registers on the stack.
622 // Registers are saved in numerical order, with higher numbered registers 622 // Registers are saved in numerical order, with higher numbered registers
623 // saved in higher memory addresses. 623 // saved in higher memory addresses.
624 void MultiPush(RegList regs); 624 void MultiPush(RegList regs);
625 void MultiPushReversed(RegList regs); 625 void MultiPushReversed(RegList regs);
626 626
627 void MultiPushFPU(RegList regs); 627 void MultiPushFPU(RegList regs);
628 void MultiPushReversedFPU(RegList regs); 628 void MultiPushReversedFPU(RegList regs);
629 629
630 // Lower case push() for compatibility with arch-independent code.
630 void push(Register src) { 631 void push(Register src) {
631 Addu(sp, sp, Operand(-kPointerSize)); 632 Addu(sp, sp, Operand(-kPointerSize));
632 sw(src, MemOperand(sp, 0)); 633 sw(src, MemOperand(sp, 0));
633 } 634 }
634 void Push(Register src) { push(src); }
635 635
636 // Push a handle. 636 // Push a handle.
637 void Push(Handle<Object> handle); 637 void Push(Handle<Object> handle);
638 void Push(Smi* smi) { Push(Handle<Smi>(smi, isolate())); } 638 void Push(Smi* smi) { Push(Handle<Smi>(smi, isolate())); }
639 639
640 // Push two registers. Pushes leftmost register first (to highest address). 640 // Push two registers. Pushes leftmost register first (to highest address).
641 void Push(Register src1, Register src2) { 641 void Push(Register src1, Register src2) {
642 Subu(sp, sp, Operand(2 * kPointerSize)); 642 Subu(sp, sp, Operand(2 * kPointerSize));
643 sw(src1, MemOperand(sp, 1 * kPointerSize)); 643 sw(src1, MemOperand(sp, 1 * kPointerSize));
644 sw(src2, MemOperand(sp, 0 * kPointerSize)); 644 sw(src2, MemOperand(sp, 0 * kPointerSize));
(...skipping 24 matching lines...) Expand all
669 } 669 }
670 670
671 // Pops multiple values from the stack and load them in the 671 // Pops multiple values from the stack and load them in the
672 // registers specified in regs. Pop order is the opposite as in MultiPush. 672 // registers specified in regs. Pop order is the opposite as in MultiPush.
673 void MultiPop(RegList regs); 673 void MultiPop(RegList regs);
674 void MultiPopReversed(RegList regs); 674 void MultiPopReversed(RegList regs);
675 675
676 void MultiPopFPU(RegList regs); 676 void MultiPopFPU(RegList regs);
677 void MultiPopReversedFPU(RegList regs); 677 void MultiPopReversedFPU(RegList regs);
678 678
679 // Lower case pop() for compatibility with arch-independent code.
679 void pop(Register dst) { 680 void pop(Register dst) {
680 lw(dst, MemOperand(sp, 0)); 681 lw(dst, MemOperand(sp, 0));
681 Addu(sp, sp, Operand(kPointerSize)); 682 Addu(sp, sp, Operand(kPointerSize));
682 } 683 }
683 void Pop(Register dst) { pop(dst); }
684 684
685 // Pop two registers. Pops rightmost register first (from lower address). 685 // Pop two registers. Pops rightmost register first (from lower address).
686 void Pop(Register src1, Register src2) { 686 void Pop(Register src1, Register src2) {
687 ASSERT(!src1.is(src2)); 687 ASSERT(!src1.is(src2));
688 lw(src2, MemOperand(sp, 0 * kPointerSize)); 688 lw(src2, MemOperand(sp, 0 * kPointerSize));
689 lw(src1, MemOperand(sp, 1 * kPointerSize)); 689 lw(src1, MemOperand(sp, 1 * kPointerSize));
690 Addu(sp, sp, 2 * kPointerSize); 690 Addu(sp, sp, 2 * kPointerSize);
691 } 691 }
692 692
693 // Pop three registers. Pops rightmost register first (from lower address). 693 // Pop three registers. Pops rightmost register first (from lower address).
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
1279 Register scratch1, Register scratch2); 1279 Register scratch1, Register scratch2);
1280 void DecrementCounter(StatsCounter* counter, int value, 1280 void DecrementCounter(StatsCounter* counter, int value,
1281 Register scratch1, Register scratch2); 1281 Register scratch1, Register scratch2);
1282 1282
1283 1283
1284 // ------------------------------------------------------------------------- 1284 // -------------------------------------------------------------------------
1285 // Debugging. 1285 // Debugging.
1286 1286
1287 // Calls Abort(msg) if the condition cc is not satisfied. 1287 // Calls Abort(msg) if the condition cc is not satisfied.
1288 // Use --debug_code to enable. 1288 // Use --debug_code to enable.
1289 void Assert(Condition cc, BailoutReason reason, Register rs, Operand rt); 1289 void Assert(Condition cc, const char* msg, Register rs, Operand rt);
1290 void AssertRegisterIsRoot(Register reg, Heap::RootListIndex index); 1290 void AssertRegisterIsRoot(Register reg, Heap::RootListIndex index);
1291 void AssertFastElements(Register elements); 1291 void AssertFastElements(Register elements);
1292 1292
1293 // Like Assert(), but always enabled. 1293 // Like Assert(), but always enabled.
1294 void Check(Condition cc, BailoutReason reason, Register rs, Operand rt); 1294 void Check(Condition cc, const char* msg, Register rs, Operand rt);
1295 1295
1296 // Print a message to stdout and abort execution. 1296 // Print a message to stdout and abort execution.
1297 void Abort(BailoutReason msg); 1297 void Abort(const char* msg);
1298 1298
1299 // Verify restrictions about code generated in stubs. 1299 // Verify restrictions about code generated in stubs.
1300 void set_generating_stub(bool value) { generating_stub_ = value; } 1300 void set_generating_stub(bool value) { generating_stub_ = value; }
1301 bool generating_stub() { return generating_stub_; } 1301 bool generating_stub() { return generating_stub_; }
1302 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } 1302 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; }
1303 bool allow_stub_calls() { return allow_stub_calls_; } 1303 bool allow_stub_calls() { return allow_stub_calls_; }
1304 void set_has_frame(bool value) { has_frame_ = value; } 1304 void set_has_frame(bool value) { has_frame_ = value; }
1305 bool has_frame() { return has_frame_; } 1305 bool has_frame() { return has_frame_; }
1306 inline bool AllowThisStubCall(CodeStub* stub); 1306 inline bool AllowThisStubCall(CodeStub* stub);
1307 1307
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
1371 // Abort execution if argument is not a string, enabled via --debug-code. 1371 // Abort execution if argument is not a string, enabled via --debug-code.
1372 void AssertString(Register object); 1372 void AssertString(Register object);
1373 1373
1374 // Abort execution if argument is not a name, enabled via --debug-code. 1374 // Abort execution if argument is not a name, enabled via --debug-code.
1375 void AssertName(Register object); 1375 void AssertName(Register object);
1376 1376
1377 // Abort execution if argument is not the root value with the given index, 1377 // Abort execution if argument is not the root value with the given index,
1378 // enabled via --debug-code. 1378 // enabled via --debug-code.
1379 void AssertRootValue(Register src, 1379 void AssertRootValue(Register src,
1380 Heap::RootListIndex root_value_index, 1380 Heap::RootListIndex root_value_index,
1381 BailoutReason reason); 1381 const char* message);
1382 1382
1383 // --------------------------------------------------------------------------- 1383 // ---------------------------------------------------------------------------
1384 // HeapNumber utilities. 1384 // HeapNumber utilities.
1385 1385
1386 void JumpIfNotHeapNumber(Register object, 1386 void JumpIfNotHeapNumber(Register object,
1387 Register heap_number_map, 1387 Register heap_number_map,
1388 Register scratch, 1388 Register scratch,
1389 Label* on_not_heap_number); 1389 Label* on_not_heap_number);
1390 1390
1391 // ------------------------------------------------------------------------- 1391 // -------------------------------------------------------------------------
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
1587 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1587 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1588 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1588 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1589 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1589 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1590 #else 1590 #else
1591 #define ACCESS_MASM(masm) masm-> 1591 #define ACCESS_MASM(masm) masm->
1592 #endif 1592 #endif
1593 1593
1594 } } // namespace v8::internal 1594 } } // namespace v8::internal
1595 1595
1596 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1596 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698