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

Side by Side Diff: src/mips/code-stubs-mips.cc

Issue 947683002: Reimplement Maps and Sets in JS (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Merged to master Created 5 years, 8 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/macros.py ('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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after
1101 masm->mov(t9, s2); // Function pointer to t9 to conform to ABI for PIC. 1101 masm->mov(t9, s2); // Function pointer to t9 to conform to ABI for PIC.
1102 masm->jalr(t9); 1102 masm->jalr(t9);
1103 // Set up sp in the delay slot. 1103 // Set up sp in the delay slot.
1104 masm->addiu(sp, sp, -kCArgsSlotsSize); 1104 masm->addiu(sp, sp, -kCArgsSlotsSize);
1105 // Make sure the stored 'ra' points to this position. 1105 // Make sure the stored 'ra' points to this position.
1106 DCHECK_EQ(kNumInstructionsToJump, 1106 DCHECK_EQ(kNumInstructionsToJump,
1107 masm->InstructionsGeneratedSince(&find_ra)); 1107 masm->InstructionsGeneratedSince(&find_ra));
1108 } 1108 }
1109 1109
1110 1110
1111 // Runtime functions should not return 'the hole'. Allowing it to escape may
1112 // lead to crashes in the IC code later.
1113 if (FLAG_debug_code) {
1114 Label okay;
1115 __ LoadRoot(t0, Heap::kTheHoleValueRootIndex);
1116 __ Branch(&okay, ne, v0, Operand(t0));
1117 __ stop("The hole escaped");
1118 __ bind(&okay);
1119 }
1120
1121 // Check result for exception sentinel. 1111 // Check result for exception sentinel.
1122 Label exception_returned; 1112 Label exception_returned;
1123 __ LoadRoot(t0, Heap::kExceptionRootIndex); 1113 __ LoadRoot(t0, Heap::kExceptionRootIndex);
1124 __ Branch(&exception_returned, eq, t0, Operand(v0)); 1114 __ Branch(&exception_returned, eq, t0, Operand(v0));
1125 1115
1126 // Check that there is no pending exception, otherwise we 1116 // Check that there is no pending exception, otherwise we
1127 // should have returned the exception sentinel. 1117 // should have returned the exception sentinel.
1128 if (FLAG_debug_code) { 1118 if (FLAG_debug_code) {
1129 Label okay; 1119 Label okay;
1130 ExternalReference pending_exception_address( 1120 ExternalReference pending_exception_address(
(...skipping 4381 matching lines...) Expand 10 before | Expand all | Expand 10 after
5512 kStackUnwindSpace, kInvalidStackOffset, 5502 kStackUnwindSpace, kInvalidStackOffset,
5513 MemOperand(fp, 6 * kPointerSize), NULL); 5503 MemOperand(fp, 6 * kPointerSize), NULL);
5514 } 5504 }
5515 5505
5516 5506
5517 #undef __ 5507 #undef __
5518 5508
5519 } } // namespace v8::internal 5509 } } // namespace v8::internal
5520 5510
5521 #endif // V8_TARGET_ARCH_MIPS 5511 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/macros.py ('k') | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698