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 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
931 Code::Age age, | 931 Code::Age age, |
932 MarkingParity parity) { | 932 MarkingParity parity) { |
933 uint32_t young_length; | 933 uint32_t young_length; |
934 byte* young_sequence = GetNoCodeAgeSequence(&young_length); | 934 byte* young_sequence = GetNoCodeAgeSequence(&young_length); |
935 if (age == kNoAge) { | 935 if (age == kNoAge) { |
936 memcpy(sequence, young_sequence, young_length); | 936 memcpy(sequence, young_sequence, young_length); |
937 CPU::FlushICache(sequence, young_length); | 937 CPU::FlushICache(sequence, young_length); |
938 } else { | 938 } else { |
939 Code* stub = GetCodeAgeStub(age, parity); | 939 Code* stub = GetCodeAgeStub(age, parity); |
940 CodePatcher patcher(sequence, young_length); | 940 CodePatcher patcher(sequence, young_length); |
941 patcher.masm()->call(stub->instruction_start(), RelocInfo::NONE); | 941 patcher.masm()->call(stub->instruction_start(), RelocInfo::NONE32); |
942 } | 942 } |
943 } | 943 } |
944 | 944 |
945 | 945 |
946 } } // namespace v8::internal | 946 } } // namespace v8::internal |
947 | 947 |
948 #endif // V8_TARGET_ARCH_IA32 | 948 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |