| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 j(equal, &ok, Label::kNear); | 467 j(equal, &ok, Label::kNear); |
| 468 Abort("JSObject with fast elements map has slow elements"); | 468 Abort("JSObject with fast elements map has slow elements"); |
| 469 bind(&ok); | 469 bind(&ok); |
| 470 } | 470 } |
| 471 } | 471 } |
| 472 | 472 |
| 473 | 473 |
| 474 void MacroAssembler::Check(Condition cc, const char* msg) { | 474 void MacroAssembler::Check(Condition cc, const char* msg) { |
| 475 Label L; | 475 Label L; |
| 476 j(cc, &L, Label::kNear); | 476 j(cc, &L, Label::kNear); |
| 477 int3(); |
| 477 Abort(msg); | 478 Abort(msg); |
| 478 // Control will not return here. | 479 // Control will not return here. |
| 479 bind(&L); | 480 bind(&L); |
| 480 } | 481 } |
| 481 | 482 |
| 482 | 483 |
| 483 void MacroAssembler::CheckStackAlignment() { | 484 void MacroAssembler::CheckStackAlignment() { |
| 484 int frame_alignment = OS::ActivationFrameAlignment(); | 485 int frame_alignment = OS::ActivationFrameAlignment(); |
| 485 int frame_alignment_mask = frame_alignment - 1; | 486 int frame_alignment_mask = frame_alignment - 1; |
| 486 if (frame_alignment > kPointerSize) { | 487 if (frame_alignment > kPointerSize) { |
| (...skipping 4185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4672 j(greater, &no_info_available); | 4673 j(greater, &no_info_available); |
| 4673 CompareRoot(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), | 4674 CompareRoot(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), |
| 4674 Heap::kAllocationSiteInfoMapRootIndex); | 4675 Heap::kAllocationSiteInfoMapRootIndex); |
| 4675 bind(&no_info_available); | 4676 bind(&no_info_available); |
| 4676 } | 4677 } |
| 4677 | 4678 |
| 4678 | 4679 |
| 4679 } } // namespace v8::internal | 4680 } } // namespace v8::internal |
| 4680 | 4681 |
| 4681 #endif // V8_TARGET_ARCH_X64 | 4682 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |