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

Side by Side Diff: src/arm64/ic-arm64.cc

Issue 354173002: Port the ic part (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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/arm/ic-arm.cc ('k') | src/mips/ic-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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/arm64/assembler-arm64.h" 9 #include "src/arm64/assembler-arm64.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 // ---------- S t a t e -------------- 904 // ---------- S t a t e --------------
905 // -- x0 : value 905 // -- x0 : value
906 // -- x1 : key 906 // -- x1 : key
907 // -- x2 : receiver 907 // -- x2 : receiver
908 // -- lr : return address 908 // -- lr : return address
909 // ----------------------------------- 909 // -----------------------------------
910 910
911 // Push receiver, key and value for runtime call. 911 // Push receiver, key and value for runtime call.
912 __ Push(x2, x1, x0); 912 __ Push(x2, x1, x0);
913 913
914 // Push PropertyAttributes(NONE) and strict_mode for runtime call. 914 // Push strict_mode for runtime call.
915 STATIC_ASSERT(NONE == 0);
916 __ Mov(x10, Smi::FromInt(strict_mode)); 915 __ Mov(x10, Smi::FromInt(strict_mode));
917 __ Push(xzr, x10); 916 __ Push(x10);
918 917
919 __ TailCallRuntime(Runtime::kSetProperty, 5, 1); 918 __ TailCallRuntime(Runtime::kSetProperty, 4, 1);
920 } 919 }
921 920
922 921
923 static void KeyedStoreGenerateGenericHelper( 922 static void KeyedStoreGenerateGenericHelper(
924 MacroAssembler* masm, 923 MacroAssembler* masm,
925 Label* fast_object, 924 Label* fast_object,
926 Label* fast_double, 925 Label* fast_double,
927 Label* slow, 926 Label* slow,
928 KeyedStoreCheckMap check_map, 927 KeyedStoreCheckMap check_map,
929 KeyedStoreIncrementLength increment_length, 928 KeyedStoreIncrementLength increment_length,
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 ASM_LOCATION("StoreIC::GenerateRuntimeSetProperty"); 1250 ASM_LOCATION("StoreIC::GenerateRuntimeSetProperty");
1252 // ----------- S t a t e ------------- 1251 // ----------- S t a t e -------------
1253 // -- x0 : value 1252 // -- x0 : value
1254 // -- x1 : receiver 1253 // -- x1 : receiver
1255 // -- x2 : name 1254 // -- x2 : name
1256 // -- lr : return address 1255 // -- lr : return address
1257 // ----------------------------------- 1256 // -----------------------------------
1258 1257
1259 __ Push(x1, x2, x0); 1258 __ Push(x1, x2, x0);
1260 1259
1261 __ Mov(x11, Smi::FromInt(NONE)); // PropertyAttributes
1262 __ Mov(x10, Smi::FromInt(strict_mode)); 1260 __ Mov(x10, Smi::FromInt(strict_mode));
1263 __ Push(x11, x10); 1261 __ Push(x10);
1264 1262
1265 // Do tail-call to runtime routine. 1263 // Do tail-call to runtime routine.
1266 __ TailCallRuntime(Runtime::kSetProperty, 5, 1); 1264 __ TailCallRuntime(Runtime::kSetProperty, 4, 1);
1267 } 1265 }
1268 1266
1269 1267
1270 void StoreIC::GenerateSlow(MacroAssembler* masm) { 1268 void StoreIC::GenerateSlow(MacroAssembler* masm) {
1271 // ---------- S t a t e -------------- 1269 // ---------- S t a t e --------------
1272 // -- x0 : value 1270 // -- x0 : value
1273 // -- x1 : receiver 1271 // -- x1 : receiver
1274 // -- x2 : name 1272 // -- x2 : name
1275 // -- lr : return address 1273 // -- lr : return address
1276 // ----------------------------------- 1274 // -----------------------------------
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
1371 ASSERT(to_patch->Mask(TestBranchMask) == TBNZ); 1369 ASSERT(to_patch->Mask(TestBranchMask) == TBNZ);
1372 // This is JumpIfSmi(smi_reg, branch_imm). 1370 // This is JumpIfSmi(smi_reg, branch_imm).
1373 patcher.tbz(smi_reg, 0, branch_imm); 1371 patcher.tbz(smi_reg, 0, branch_imm);
1374 } 1372 }
1375 } 1373 }
1376 1374
1377 1375
1378 } } // namespace v8::internal 1376 } } // namespace v8::internal
1379 1377
1380 #endif // V8_TARGET_ARCH_ARM64 1378 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/ic-arm.cc ('k') | src/mips/ic-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698