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

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

Issue 328353002: Add non-miss slow path to LoadIC_Normal. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/ia32/ic-ia32.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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 GenerateMiss(masm); 422 GenerateMiss(masm);
423 } 423 }
424 424
425 425
426 void LoadIC::GenerateNormal(MacroAssembler* masm) { 426 void LoadIC::GenerateNormal(MacroAssembler* masm) {
427 // ----------- S t a t e ------------- 427 // ----------- S t a t e -------------
428 // -- x2 : name 428 // -- x2 : name
429 // -- lr : return address 429 // -- lr : return address
430 // -- x0 : receiver 430 // -- x0 : receiver
431 // ----------------------------------- 431 // -----------------------------------
432 Label miss; 432 Label miss, slow;
433 433
434 GenerateNameDictionaryReceiverCheck(masm, x0, x1, x3, x4, &miss); 434 GenerateNameDictionaryReceiverCheck(masm, x0, x1, x3, x4, &miss);
435 435
436 // x1 now holds the property dictionary. 436 // x1 now holds the property dictionary.
437 GenerateDictionaryLoad(masm, &miss, x1, x2, x0, x3, x4); 437 GenerateDictionaryLoad(masm, &slow, x1, x2, x0, x3, x4);
438 __ Ret(); 438 __ Ret();
439 439
440 // Dictionary load failed, go slow (but don't miss).
441 __ Bind(&slow);
442 GenerateRuntimeGetProperty(masm);
443
440 // Cache miss: Jump to runtime. 444 // Cache miss: Jump to runtime.
441 __ Bind(&miss); 445 __ Bind(&miss);
442 GenerateMiss(masm); 446 GenerateMiss(masm);
443 } 447 }
444 448
445 449
446 void LoadIC::GenerateMiss(MacroAssembler* masm) { 450 void LoadIC::GenerateMiss(MacroAssembler* masm) {
447 // ----------- S t a t e ------------- 451 // ----------- S t a t e -------------
448 // -- x2 : name 452 // -- x2 : name
449 // -- lr : return address 453 // -- lr : return address
(...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after
1374 ASSERT(to_patch->Mask(TestBranchMask) == TBNZ); 1378 ASSERT(to_patch->Mask(TestBranchMask) == TBNZ);
1375 // This is JumpIfSmi(smi_reg, branch_imm). 1379 // This is JumpIfSmi(smi_reg, branch_imm).
1376 patcher.tbz(smi_reg, 0, branch_imm); 1380 patcher.tbz(smi_reg, 0, branch_imm);
1377 } 1381 }
1378 } 1382 }
1379 1383
1380 1384
1381 } } // namespace v8::internal 1385 } } // namespace v8::internal
1382 1386
1383 #endif // V8_TARGET_ARCH_ARM64 1387 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/ic-arm.cc ('k') | src/ia32/ic-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698