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

Side by Side Diff: src/mips64/builtins-mips64.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/code-stubs-mips.cc ('k') | src/mips64/code-stubs-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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/debug/debug.h" 8 #include "src/debug/debug.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after
1463 __ CallCFunction( 1463 __ CallCFunction(
1464 ExternalReference::get_date_field_function(masm->isolate()), 2); 1464 ExternalReference::get_date_field_function(masm->isolate()), 2);
1465 } 1465 }
1466 __ Ret(); 1466 __ Ret();
1467 1467
1468 // 3. Raise a TypeError if the receiver is not a date. 1468 // 3. Raise a TypeError if the receiver is not a date.
1469 __ bind(&receiver_not_date); 1469 __ bind(&receiver_not_date);
1470 __ TailCallRuntime(Runtime::kThrowNotDateError); 1470 __ TailCallRuntime(Runtime::kThrowNotDateError);
1471 } 1471 }
1472 1472
1473 // static
1474 void Builtins::Generate_FunctionHasInstance(MacroAssembler* masm) {
1475 // ----------- S t a t e -------------
1476 // -- a0 : argc
1477 // -- sp[0] : first argument (left-hand side)
1478 // -- sp[8] : receiver (right-hand side)
1479 // -----------------------------------
1480
1481 {
1482 FrameScope scope(masm, StackFrame::INTERNAL);
1483 __ lw(InstanceOfDescriptor::LeftRegister(),
1484 MemOperand(fp, 2 * kPointerSize)); // Load left-hand side.
1485 __ lw(InstanceOfDescriptor::RightRegister(),
1486 MemOperand(fp, 3 * kPointerSize)); // Load right-hand side.
1487 InstanceOfStub stub(masm->isolate(), true);
1488 __ CallStub(&stub);
1489 }
1490
1491 // Pop the argument and the receiver.
1492 __ DropAndRet(2);
1493 }
1473 1494
1474 // static 1495 // static
1475 void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) { 1496 void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) {
1476 // ----------- S t a t e ------------- 1497 // ----------- S t a t e -------------
1477 // -- a0 : argc 1498 // -- a0 : argc
1478 // -- sp[0] : argArray 1499 // -- sp[0] : argArray
1479 // -- sp[4] : thisArg 1500 // -- sp[4] : thisArg
1480 // -- sp[8] : receiver 1501 // -- sp[8] : receiver
1481 // ----------------------------------- 1502 // -----------------------------------
1482 1503
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after
2573 } 2594 }
2574 } 2595 }
2575 2596
2576 2597
2577 #undef __ 2598 #undef __
2578 2599
2579 } // namespace internal 2600 } // namespace internal
2580 } // namespace v8 2601 } // namespace v8
2581 2602
2582 #endif // V8_TARGET_ARCH_MIPS64 2603 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698