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

Side by Side Diff: src/arm/code-stubs-arm.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
« no previous file with comments | « no previous file | src/collection.js » ('j') | src/collection.js » ('J')
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_ARM 7 #if V8_TARGET_ARCH_ARM
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 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 { 1050 {
1051 // Prevent literal pool emission before return address. 1051 // Prevent literal pool emission before return address.
1052 Assembler::BlockConstPoolScope block_const_pool(masm); 1052 Assembler::BlockConstPoolScope block_const_pool(masm);
1053 __ add(lr, pc, Operand(4)); 1053 __ add(lr, pc, Operand(4));
1054 __ str(lr, MemOperand(sp, 0)); 1054 __ str(lr, MemOperand(sp, 0));
1055 __ Call(r5); 1055 __ Call(r5);
1056 } 1056 }
1057 1057
1058 __ VFPEnsureFPSCRState(r2); 1058 __ VFPEnsureFPSCRState(r2);
1059 1059
1060 // Runtime functions should not return 'the hole'. Allowing it to escape may
1061 // lead to crashes in the IC code later.
1062 if (FLAG_debug_code) {
1063 Label okay;
1064 __ CompareRoot(r0, Heap::kTheHoleValueRootIndex);
1065 __ b(ne, &okay);
1066 __ stop("The hole escaped");
1067 __ bind(&okay);
1068 }
1069
1070 // Check result for exception sentinel. 1060 // Check result for exception sentinel.
1071 Label exception_returned; 1061 Label exception_returned;
1072 __ CompareRoot(r0, Heap::kExceptionRootIndex); 1062 __ CompareRoot(r0, Heap::kExceptionRootIndex);
1073 __ b(eq, &exception_returned); 1063 __ b(eq, &exception_returned);
1074 1064
1075 // Check that there is no pending exception, otherwise we 1065 // Check that there is no pending exception, otherwise we
1076 // should have returned the exception sentinel. 1066 // should have returned the exception sentinel.
1077 if (FLAG_debug_code) { 1067 if (FLAG_debug_code) {
1078 Label okay; 1068 Label okay;
1079 ExternalReference pending_exception_address( 1069 ExternalReference pending_exception_address(
(...skipping 3970 matching lines...) Expand 10 before | Expand all | Expand 10 after
5050 kStackUnwindSpace, NULL, 5040 kStackUnwindSpace, NULL,
5051 MemOperand(fp, 6 * kPointerSize), NULL); 5041 MemOperand(fp, 6 * kPointerSize), NULL);
5052 } 5042 }
5053 5043
5054 5044
5055 #undef __ 5045 #undef __
5056 5046
5057 } } // namespace v8::internal 5047 } } // namespace v8::internal
5058 5048
5059 #endif // V8_TARGET_ARCH_ARM 5049 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/collection.js » ('j') | src/collection.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698