| OLD | NEW | 
|---|
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_S390 | 5 #if V8_TARGET_ARCH_S390 | 
| 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 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1450         ExternalReference::get_date_field_function(masm->isolate()), 2); | 1450         ExternalReference::get_date_field_function(masm->isolate()), 2); | 
| 1451   } | 1451   } | 
| 1452   __ Ret(); | 1452   __ Ret(); | 
| 1453 | 1453 | 
| 1454   // 3. Raise a TypeError if the receiver is not a date. | 1454   // 3. Raise a TypeError if the receiver is not a date. | 
| 1455   __ bind(&receiver_not_date); | 1455   __ bind(&receiver_not_date); | 
| 1456   __ TailCallRuntime(Runtime::kThrowNotDateError); | 1456   __ TailCallRuntime(Runtime::kThrowNotDateError); | 
| 1457 } | 1457 } | 
| 1458 | 1458 | 
| 1459 // static | 1459 // static | 
|  | 1460 void Builtins::Generate_FunctionHasInstance(MacroAssembler* masm) { | 
|  | 1461   // ----------- S t a t e ------------- | 
|  | 1462   //  -- r2    : argc | 
|  | 1463   //  -- sp[0] : first argument (left-hand side) | 
|  | 1464   //  -- sp[4] : receiver (right-hand side) | 
|  | 1465   // ----------------------------------- | 
|  | 1466 | 
|  | 1467   { | 
|  | 1468     FrameScope scope(masm, StackFrame::INTERNAL); | 
|  | 1469     __ LoadP(InstanceOfDescriptor::LeftRegister(), | 
|  | 1470              MemOperand(fp, 2 * kPointerSize));  // Load left-hand side. | 
|  | 1471     __ LoadP(InstanceOfDescriptor::RightRegister(), | 
|  | 1472              MemOperand(fp, 3 * kPointerSize));  // Load right-hand side. | 
|  | 1473     InstanceOfStub stub(masm->isolate(), true); | 
|  | 1474     __ CallStub(&stub); | 
|  | 1475   } | 
|  | 1476 | 
|  | 1477   // Pop the argument and the receiver. | 
|  | 1478   __ Ret(2); | 
|  | 1479 } | 
|  | 1480 | 
|  | 1481 // static | 
| 1460 void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) { | 1482 void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) { | 
| 1461   // ----------- S t a t e ------------- | 1483   // ----------- S t a t e ------------- | 
| 1462   //  -- r2    : argc | 1484   //  -- r2    : argc | 
| 1463   //  -- sp[0] : argArray | 1485   //  -- sp[0] : argArray | 
| 1464   //  -- sp[4] : thisArg | 1486   //  -- sp[4] : thisArg | 
| 1465   //  -- sp[8] : receiver | 1487   //  -- sp[8] : receiver | 
| 1466   // ----------------------------------- | 1488   // ----------------------------------- | 
| 1467 | 1489 | 
| 1468   // 1. Load receiver into r3, argArray into r2 (if present), remove all | 1490   // 1. Load receiver into r3, argArray into r2 (if present), remove all | 
| 1469   // arguments from the stack (including the receiver), and push thisArg (if | 1491   // arguments from the stack (including the receiver), and push thisArg (if | 
| (...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2513     __ bkpt(0); | 2535     __ bkpt(0); | 
| 2514   } | 2536   } | 
| 2515 } | 2537 } | 
| 2516 | 2538 | 
| 2517 #undef __ | 2539 #undef __ | 
| 2518 | 2540 | 
| 2519 }  // namespace internal | 2541 }  // namespace internal | 
| 2520 }  // namespace v8 | 2542 }  // namespace v8 | 
| 2521 | 2543 | 
| 2522 #endif  // V8_TARGET_ARCH_S390 | 2544 #endif  // V8_TARGET_ARCH_S390 | 
| OLD | NEW | 
|---|