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

Side by Side Diff: src/a64/macro-assembler-a64.cc

Issue 197643008: Macro assembler functions for pretenure call new. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/a64/macro-assembler-a64.h ('k') | src/arm/macro-assembler-arm.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after
1521 UseScratchRegisterScope temps(this); 1521 UseScratchRegisterScope temps(this);
1522 Register temp = temps.AcquireX(); 1522 Register temp = temps.AcquireX();
1523 1523
1524 Ldr(temp, FieldMemOperand(object, HeapObject::kMapOffset)); 1524 Ldr(temp, FieldMemOperand(object, HeapObject::kMapOffset));
1525 CompareInstanceType(temp, temp, LAST_NAME_TYPE); 1525 CompareInstanceType(temp, temp, LAST_NAME_TYPE);
1526 Check(ls, kOperandIsNotAName); 1526 Check(ls, kOperandIsNotAName);
1527 } 1527 }
1528 } 1528 }
1529 1529
1530 1530
1531 void MacroAssembler::AssertUndefinedOrAllocationSite(Register object,
1532 Register scratch) {
1533 if (emit_debug_code()) {
1534 Label done_checking;
1535 AssertNotSmi(object);
1536 JumpIfRoot(object, Heap::kUndefinedValueRootIndex, &done_checking);
1537 Ldr(scratch, FieldMemOperand(object, HeapObject::kMapOffset));
1538 CompareRoot(scratch, Heap::kAllocationSiteMapRootIndex);
1539 Assert(eq, kExpectedUndefinedOrCell);
1540 Bind(&done_checking);
1541 }
1542 }
1543
1544
1531 void MacroAssembler::AssertString(Register object) { 1545 void MacroAssembler::AssertString(Register object) {
1532 if (emit_debug_code()) { 1546 if (emit_debug_code()) {
1533 UseScratchRegisterScope temps(this); 1547 UseScratchRegisterScope temps(this);
1534 Register temp = temps.AcquireX(); 1548 Register temp = temps.AcquireX();
1535 STATIC_ASSERT(kSmiTag == 0); 1549 STATIC_ASSERT(kSmiTag == 0);
1536 Tst(object, kSmiTagMask); 1550 Tst(object, kSmiTagMask);
1537 Check(ne, kOperandIsASmiAndNotAString); 1551 Check(ne, kOperandIsASmiAndNotAString);
1538 Ldr(temp, FieldMemOperand(object, HeapObject::kMapOffset)); 1552 Ldr(temp, FieldMemOperand(object, HeapObject::kMapOffset));
1539 CompareInstanceType(temp, temp, FIRST_NONSTRING_TYPE); 1553 CompareInstanceType(temp, temp, FIRST_NONSTRING_TYPE);
1540 Check(lo, kOperandIsNotAString); 1554 Check(lo, kOperandIsNotAString);
(...skipping 3580 matching lines...) Expand 10 before | Expand all | Expand 10 after
5121 } 5135 }
5122 } 5136 }
5123 5137
5124 5138
5125 #undef __ 5139 #undef __
5126 5140
5127 5141
5128 } } // namespace v8::internal 5142 } } // namespace v8::internal
5129 5143
5130 #endif // V8_TARGET_ARCH_A64 5144 #endif // V8_TARGET_ARCH_A64
OLDNEW
« no previous file with comments | « src/a64/macro-assembler-a64.h ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698