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

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

Issue 1819813002: [es6] Faster implementation of OrdinaryHasInstance. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Revert flag-flip again. Created 4 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 | « src/arm64/builtins-arm64.cc ('k') | src/builtins.h » ('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 #if V8_TARGET_ARCH_ARM64 5 #if V8_TARGET_ARCH_ARM64
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/api-arguments.h" 8 #include "src/api-arguments.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1610 matching lines...) Expand 10 before | Expand all | Expand 10 after
1621 __ Bind(&fast_runtime_fallback); 1621 __ Bind(&fast_runtime_fallback);
1622 __ Push(object, function_prototype); 1622 __ Push(object, function_prototype);
1623 // Invalidate the instanceof cache. 1623 // Invalidate the instanceof cache.
1624 __ Move(scratch, Smi::FromInt(0)); 1624 __ Move(scratch, Smi::FromInt(0));
1625 __ StoreRoot(scratch, Heap::kInstanceofCacheFunctionRootIndex); 1625 __ StoreRoot(scratch, Heap::kInstanceofCacheFunctionRootIndex);
1626 __ TailCallRuntime(Runtime::kHasInPrototypeChain); 1626 __ TailCallRuntime(Runtime::kHasInPrototypeChain);
1627 1627
1628 // Slow-case: Call the %InstanceOf runtime function. 1628 // Slow-case: Call the %InstanceOf runtime function.
1629 __ bind(&slow_case); 1629 __ bind(&slow_case);
1630 __ Push(object, function); 1630 __ Push(object, function);
1631 __ TailCallRuntime(Runtime::kInstanceOf); 1631 __ TailCallRuntime(is_es6_instanceof() ? Runtime::kOrdinaryHasInstance
1632 : Runtime::kInstanceOf);
1632 } 1633 }
1633 1634
1634 1635
1635 void LoadIndexedInterceptorStub::Generate(MacroAssembler* masm) { 1636 void LoadIndexedInterceptorStub::Generate(MacroAssembler* masm) {
1636 // Return address is in lr. 1637 // Return address is in lr.
1637 Label slow; 1638 Label slow;
1638 1639
1639 Register receiver = LoadDescriptor::ReceiverRegister(); 1640 Register receiver = LoadDescriptor::ReceiverRegister();
1640 Register key = LoadDescriptor::NameRegister(); 1641 Register key = LoadDescriptor::NameRegister();
1641 1642
(...skipping 4327 matching lines...) Expand 10 before | Expand all | Expand 10 after
5969 return_value_operand, NULL); 5970 return_value_operand, NULL);
5970 } 5971 }
5971 5972
5972 5973
5973 #undef __ 5974 #undef __
5974 5975
5975 } // namespace internal 5976 } // namespace internal
5976 } // namespace v8 5977 } // namespace v8
5977 5978
5978 #endif // V8_TARGET_ARCH_ARM64 5979 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/builtins-arm64.cc ('k') | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698