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

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

Issue 1821113002: X87: [es6] Faster implementation of OrdinaryHasInstance. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/x87/builtins-x87.cc ('k') | no next file » | 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_X87 5 #if V8_TARGET_ARCH_X87
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 1892 matching lines...) Expand 10 before | Expand all | Expand 10 after
1903 __ Move(eax, Immediate(Smi::FromInt(0))); 1903 __ Move(eax, Immediate(Smi::FromInt(0)));
1904 __ StoreRoot(eax, scratch, Heap::kInstanceofCacheFunctionRootIndex); 1904 __ StoreRoot(eax, scratch, Heap::kInstanceofCacheFunctionRootIndex);
1905 __ TailCallRuntime(Runtime::kHasInPrototypeChain); 1905 __ TailCallRuntime(Runtime::kHasInPrototypeChain);
1906 1906
1907 // Slow-case: Call the %InstanceOf runtime function. 1907 // Slow-case: Call the %InstanceOf runtime function.
1908 __ bind(&slow_case); 1908 __ bind(&slow_case);
1909 __ PopReturnAddressTo(scratch); 1909 __ PopReturnAddressTo(scratch);
1910 __ Push(object); 1910 __ Push(object);
1911 __ Push(function); 1911 __ Push(function);
1912 __ PushReturnAddressFrom(scratch); 1912 __ PushReturnAddressFrom(scratch);
1913 __ TailCallRuntime(Runtime::kInstanceOf); 1913 __ TailCallRuntime(is_es6_instanceof() ? Runtime::kOrdinaryHasInstance
1914 : Runtime::kInstanceOf);
1914 } 1915 }
1915 1916
1916 1917
1917 // ------------------------------------------------------------------------- 1918 // -------------------------------------------------------------------------
1918 // StringCharCodeAtGenerator 1919 // StringCharCodeAtGenerator
1919 1920
1920 void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) { 1921 void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) {
1921 // If the receiver is a smi trigger the non-string case. 1922 // If the receiver is a smi trigger the non-string case.
1922 if (check_mode_ == RECEIVER_IS_UNKNOWN) { 1923 if (check_mode_ == RECEIVER_IS_UNKNOWN) {
1923 __ JumpIfSmi(object_, receiver_not_string_); 1924 __ JumpIfSmi(object_, receiver_not_string_);
(...skipping 3597 matching lines...) Expand 10 before | Expand all | Expand 10 after
5521 return_value_operand, NULL); 5522 return_value_operand, NULL);
5522 } 5523 }
5523 5524
5524 5525
5525 #undef __ 5526 #undef __
5526 5527
5527 } // namespace internal 5528 } // namespace internal
5528 } // namespace v8 5529 } // namespace v8
5529 5530
5530 #endif // V8_TARGET_ARCH_X87 5531 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/builtins-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698