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(); | |
ulan
2013/02/13 14:35:44
Leftover debug code?
| |
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 4132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4619 j(greater, &no_info_available); | 4620 j(greater, &no_info_available); |
4620 CompareRoot(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), | 4621 CompareRoot(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), |
4621 Heap::kAllocationSiteInfoMapRootIndex); | 4622 Heap::kAllocationSiteInfoMapRootIndex); |
4622 bind(&no_info_available); | 4623 bind(&no_info_available); |
4623 } | 4624 } |
4624 | 4625 |
4625 | 4626 |
4626 } } // namespace v8::internal | 4627 } } // namespace v8::internal |
4627 | 4628 |
4628 #endif // V8_TARGET_ARCH_X64 | 4629 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |