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

Side by Side Diff: src/arm/builtins-arm.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 | « no previous file | src/arm/code-stubs-arm.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_ARM 5 #if V8_TARGET_ARCH_ARM
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 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after
1466 __ CallCFunction( 1466 __ CallCFunction(
1467 ExternalReference::get_date_field_function(masm->isolate()), 2); 1467 ExternalReference::get_date_field_function(masm->isolate()), 2);
1468 } 1468 }
1469 __ Ret(); 1469 __ Ret();
1470 1470
1471 // 3. Raise a TypeError if the receiver is not a date. 1471 // 3. Raise a TypeError if the receiver is not a date.
1472 __ bind(&receiver_not_date); 1472 __ bind(&receiver_not_date);
1473 __ TailCallRuntime(Runtime::kThrowNotDateError); 1473 __ TailCallRuntime(Runtime::kThrowNotDateError);
1474 } 1474 }
1475 1475
1476 // static
1477 void Builtins::Generate_FunctionHasInstance(MacroAssembler* masm) {
1478 // ----------- S t a t e -------------
1479 // -- r0 : argc
1480 // -- sp[0] : first argument (left-hand side)
1481 // -- sp[4] : receiver (right-hand side)
1482 // -----------------------------------
1483
1484 {
1485 FrameScope scope(masm, StackFrame::INTERNAL);
1486 __ ldr(InstanceOfDescriptor::LeftRegister(),
1487 MemOperand(fp, 2 * kPointerSize)); // Load left-hand side.
1488 __ ldr(InstanceOfDescriptor::RightRegister(),
1489 MemOperand(fp, 3 * kPointerSize)); // Load right-hand side.
1490 InstanceOfStub stub(masm->isolate(), true);
1491 __ CallStub(&stub);
1492 }
1493
1494 // Pop the argument and the receiver.
1495 __ Ret(2);
1496 }
1476 1497
1477 // static 1498 // static
1478 void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) { 1499 void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) {
1479 // ----------- S t a t e ------------- 1500 // ----------- S t a t e -------------
1480 // -- r0 : argc 1501 // -- r0 : argc
1481 // -- sp[0] : argArray 1502 // -- sp[0] : argArray
1482 // -- sp[4] : thisArg 1503 // -- sp[4] : thisArg
1483 // -- sp[8] : receiver 1504 // -- sp[8] : receiver
1484 // ----------------------------------- 1505 // -----------------------------------
1485 1506
(...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after
2490 } 2511 }
2491 } 2512 }
2492 2513
2493 2514
2494 #undef __ 2515 #undef __
2495 2516
2496 } // namespace internal 2517 } // namespace internal
2497 } // namespace v8 2518 } // namespace v8
2498 2519
2499 #endif // V8_TARGET_ARCH_ARM 2520 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/code-stubs-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698