OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 const int kPadding = Debug::kX64JSReturnSequenceLength - 7; | 516 const int kPadding = Debug::kX64JSReturnSequenceLength - 7; |
517 for (int i = 0; i < kPadding; ++i) { | 517 for (int i = 0; i < kPadding; ++i) { |
518 masm_->int3(); | 518 masm_->int3(); |
519 } | 519 } |
520 // Check that the size of the code used for returning matches what is | 520 // Check that the size of the code used for returning matches what is |
521 // expected by the debugger. | 521 // expected by the debugger. |
522 ASSERT_EQ(Debug::kX64JSReturnSequenceLength, | 522 ASSERT_EQ(Debug::kX64JSReturnSequenceLength, |
523 masm_->SizeOfCodeGeneratedSince(&check_exit_codesize)); | 523 masm_->SizeOfCodeGeneratedSince(&check_exit_codesize)); |
524 #endif | 524 #endif |
525 DeleteFrame(); | 525 DeleteFrame(); |
526 | |
527 } | 526 } |
528 | 527 |
529 | 528 |
530 #ifdef DEBUG | 529 #ifdef DEBUG |
531 bool CodeGenerator::HasValidEntryRegisters() { | 530 bool CodeGenerator::HasValidEntryRegisters() { |
532 return (allocator()->count(rax) == (frame()->is_used(rax) ? 1 : 0)) | 531 return (allocator()->count(rax) == (frame()->is_used(rax) ? 1 : 0)) |
533 && (allocator()->count(rbx) == (frame()->is_used(rbx) ? 1 : 0)) | 532 && (allocator()->count(rbx) == (frame()->is_used(rbx) ? 1 : 0)) |
534 && (allocator()->count(rcx) == (frame()->is_used(rcx) ? 1 : 0)) | 533 && (allocator()->count(rcx) == (frame()->is_used(rcx) ? 1 : 0)) |
535 && (allocator()->count(rdx) == (frame()->is_used(rdx) ? 1 : 0)) | 534 && (allocator()->count(rdx) == (frame()->is_used(rdx) ? 1 : 0)) |
536 && (allocator()->count(rdi) == (frame()->is_used(rdi) ? 1 : 0)) | 535 && (allocator()->count(rdi) == (frame()->is_used(rdi) ? 1 : 0)) |
(...skipping 7152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7689 int CompareStub::MinorKey() { | 7688 int CompareStub::MinorKey() { |
7690 // Encode the two parameters in a unique 16 bit value. | 7689 // Encode the two parameters in a unique 16 bit value. |
7691 ASSERT(static_cast<unsigned>(cc_) < (1 << 15)); | 7690 ASSERT(static_cast<unsigned>(cc_) < (1 << 15)); |
7692 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0); | 7691 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0); |
7693 } | 7692 } |
7694 | 7693 |
7695 | 7694 |
7696 #undef __ | 7695 #undef __ |
7697 | 7696 |
7698 } } // namespace v8::internal | 7697 } } // namespace v8::internal |
OLD | NEW |