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

Side by Side Diff: src/mips/code-stubs-mips.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/mips/builtins-mips.cc ('k') | src/mips64/builtins-mips64.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 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 #if V8_TARGET_ARCH_MIPS 5 #if V8_TARGET_ARCH_MIPS
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/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1560 matching lines...) Expand 10 before | Expand all | Expand 10 after
1571 __ bind(&fast_runtime_fallback); 1571 __ bind(&fast_runtime_fallback);
1572 __ Push(object, function_prototype); 1572 __ Push(object, function_prototype);
1573 // Invalidate the instanceof cache. 1573 // Invalidate the instanceof cache.
1574 DCHECK(Smi::FromInt(0) == 0); 1574 DCHECK(Smi::FromInt(0) == 0);
1575 __ StoreRoot(zero_reg, Heap::kInstanceofCacheFunctionRootIndex); 1575 __ StoreRoot(zero_reg, Heap::kInstanceofCacheFunctionRootIndex);
1576 __ TailCallRuntime(Runtime::kHasInPrototypeChain); 1576 __ TailCallRuntime(Runtime::kHasInPrototypeChain);
1577 1577
1578 // Slow-case: Call the %InstanceOf runtime function. 1578 // Slow-case: Call the %InstanceOf runtime function.
1579 __ bind(&slow_case); 1579 __ bind(&slow_case);
1580 __ Push(object, function); 1580 __ Push(object, function);
1581 __ TailCallRuntime(Runtime::kInstanceOf); 1581 __ TailCallRuntime(is_es6_instanceof() ? Runtime::kOrdinaryHasInstance
1582 : Runtime::kInstanceOf);
1582 } 1583 }
1583 1584
1584 1585
1585 void FunctionPrototypeStub::Generate(MacroAssembler* masm) { 1586 void FunctionPrototypeStub::Generate(MacroAssembler* masm) {
1586 Label miss; 1587 Label miss;
1587 Register receiver = LoadDescriptor::ReceiverRegister(); 1588 Register receiver = LoadDescriptor::ReceiverRegister();
1588 // Ensure that the vector and slot registers won't be clobbered before 1589 // Ensure that the vector and slot registers won't be clobbered before
1589 // calling the miss handler. 1590 // calling the miss handler.
1590 DCHECK(!AreAliased(t0, t1, LoadWithVectorDescriptor::VectorRegister(), 1591 DCHECK(!AreAliased(t0, t1, LoadWithVectorDescriptor::VectorRegister(),
1591 LoadWithVectorDescriptor::SlotRegister())); 1592 LoadWithVectorDescriptor::SlotRegister()));
(...skipping 4171 matching lines...) Expand 10 before | Expand all | Expand 10 after
5763 return_value_operand, NULL); 5764 return_value_operand, NULL);
5764 } 5765 }
5765 5766
5766 5767
5767 #undef __ 5768 #undef __
5768 5769
5769 } // namespace internal 5770 } // namespace internal
5770 } // namespace v8 5771 } // namespace v8
5771 5772
5772 #endif // V8_TARGET_ARCH_MIPS 5773 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/mips64/builtins-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698