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

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

Issue 947683002: Reimplement Maps and Sets in JS (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rename all the things, add more macros, and remove unnecessary %_CallFunctions Created 5 years, 9 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 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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 // Call the C routine. 1147 // Call the C routine.
1148 masm->mov(t9, s2); // Function pointer to t9 to conform to ABI for PIC. 1148 masm->mov(t9, s2); // Function pointer to t9 to conform to ABI for PIC.
1149 masm->jalr(t9); 1149 masm->jalr(t9);
1150 // Set up sp in the delay slot. 1150 // Set up sp in the delay slot.
1151 masm->daddiu(sp, sp, -kCArgsSlotsSize); 1151 masm->daddiu(sp, sp, -kCArgsSlotsSize);
1152 // Make sure the stored 'ra' points to this position. 1152 // Make sure the stored 'ra' points to this position.
1153 DCHECK_EQ(kNumInstructionsToJump, 1153 DCHECK_EQ(kNumInstructionsToJump,
1154 masm->InstructionsGeneratedSince(&find_ra)); 1154 masm->InstructionsGeneratedSince(&find_ra));
1155 } 1155 }
1156 1156
1157 // Runtime functions should not return 'the hole'. Allowing it to escape may
1158 // lead to crashes in the IC code later.
1159 if (FLAG_debug_code) {
1160 Label okay;
1161 __ LoadRoot(a4, Heap::kTheHoleValueRootIndex);
1162 __ Branch(&okay, ne, v0, Operand(a4));
1163 __ stop("The hole escaped");
1164 __ bind(&okay);
1165 }
1166
1167 // Check result for exception sentinel. 1157 // Check result for exception sentinel.
1168 Label exception_returned; 1158 Label exception_returned;
1169 __ LoadRoot(a4, Heap::kExceptionRootIndex); 1159 __ LoadRoot(a4, Heap::kExceptionRootIndex);
1170 __ Branch(&exception_returned, eq, a4, Operand(v0)); 1160 __ Branch(&exception_returned, eq, a4, Operand(v0));
1171 1161
1172 // Check that there is no pending exception, otherwise we 1162 // Check that there is no pending exception, otherwise we
1173 // should have returned the exception sentinel. 1163 // should have returned the exception sentinel.
1174 if (FLAG_debug_code) { 1164 if (FLAG_debug_code) {
1175 Label okay; 1165 Label okay;
1176 ExternalReference pending_exception_address( 1166 ExternalReference pending_exception_address(
(...skipping 4131 matching lines...) Expand 10 before | Expand all | Expand 10 after
5308 kStackUnwindSpace, kInvalidStackOffset, 5298 kStackUnwindSpace, kInvalidStackOffset,
5309 MemOperand(fp, 6 * kPointerSize), NULL); 5299 MemOperand(fp, 6 * kPointerSize), NULL);
5310 } 5300 }
5311 5301
5312 5302
5313 #undef __ 5303 #undef __
5314 5304
5315 } } // namespace v8::internal 5305 } } // namespace v8::internal
5316 5306
5317 #endif // V8_TARGET_ARCH_MIPS64 5307 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« src/hydrogen.cc ('K') | « src/mips/code-stubs-mips.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698