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 4163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4174 CompileRun("%OptimizeFunctionOnNextCall(g);" | 4174 CompileRun("%OptimizeFunctionOnNextCall(g);" |
4175 "g(false);"); | 4175 "g(false);"); |
4176 | 4176 |
4177 // Finish garbage collection cycle. | 4177 // Finish garbage collection cycle. |
4178 CcTest::CollectAllGarbage(i::Heap::kFinalizeIncrementalMarkingMask); | 4178 CcTest::CollectAllGarbage(i::Heap::kFinalizeIncrementalMarkingMask); |
4179 CHECK(shared1->code()->gc_metadata() == NULL); | 4179 CHECK(shared1->code()->gc_metadata() == NULL); |
4180 } | 4180 } |
4181 | 4181 |
4182 | 4182 |
4183 TEST(Regress169928) { | 4183 TEST(Regress169928) { |
4184 if (!i::FLAG_crankshaft) return; | |
Michael Starzinger
2017/01/26 16:51:46
This looks fishy, the test _disabled_ optimization
Igor Sheludko
2017/01/26 17:01:40
Done.
| |
4184 i::FLAG_allow_natives_syntax = true; | 4185 i::FLAG_allow_natives_syntax = true; |
4185 i::FLAG_crankshaft = false; | |
4186 CcTest::InitializeVM(); | 4186 CcTest::InitializeVM(); |
4187 Isolate* isolate = CcTest::i_isolate(); | 4187 Isolate* isolate = CcTest::i_isolate(); |
4188 LocalContext env; | 4188 LocalContext env; |
4189 Factory* factory = isolate->factory(); | 4189 Factory* factory = isolate->factory(); |
4190 v8::HandleScope scope(CcTest::isolate()); | 4190 v8::HandleScope scope(CcTest::isolate()); |
4191 | 4191 |
4192 // Some flags turn Scavenge collections into Mark-sweep collections | 4192 // Some flags turn Scavenge collections into Mark-sweep collections |
4193 // and hence are incompatible with this test case. | 4193 // and hence are incompatible with this test case. |
4194 if (FLAG_gc_global || FLAG_stress_compaction) return; | 4194 if (FLAG_gc_global || FLAG_stress_compaction) return; |
4195 | 4195 |
(...skipping 2894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
7090 CHECK(!heap->code_space()->FirstPage()->Contains(code->address())); | 7090 CHECK(!heap->code_space()->FirstPage()->Contains(code->address())); |
7091 | 7091 |
7092 // Ensure it's not in large object space. | 7092 // Ensure it's not in large object space. |
7093 MemoryChunk* chunk = MemoryChunk::FromAddress(code->address()); | 7093 MemoryChunk* chunk = MemoryChunk::FromAddress(code->address()); |
7094 CHECK(chunk->owner()->identity() != LO_SPACE); | 7094 CHECK(chunk->owner()->identity() != LO_SPACE); |
7095 CHECK(chunk->NeverEvacuate()); | 7095 CHECK(chunk->NeverEvacuate()); |
7096 } | 7096 } |
7097 | 7097 |
7098 } // namespace internal | 7098 } // namespace internal |
7099 } // namespace v8 | 7099 } // namespace v8 |
OLD | NEW |