OLD | NEW |
1 // Copyright 2007-2010 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2010 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 1526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1537 } | 1537 } |
1538 isolate2->Dispose(); | 1538 isolate2->Dispose(); |
1539 } | 1539 } |
1540 | 1540 |
1541 | 1541 |
1542 TEST(SerializeInternalReference) { | 1542 TEST(SerializeInternalReference) { |
1543 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 | 1543 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 |
1544 return; | 1544 return; |
1545 #endif | 1545 #endif |
1546 // Disable experimental natives that are loaded after deserialization. | 1546 // Disable experimental natives that are loaded after deserialization. |
1547 FLAG_turbo_deoptimization = false; | |
1548 FLAG_context_specialization = false; | 1547 FLAG_context_specialization = false; |
1549 FLAG_always_opt = true; | 1548 FLAG_always_opt = true; |
1550 const char* flag = "--turbo-filter=foo"; | 1549 const char* flag = "--turbo-filter=foo"; |
1551 FlagList::SetFlagsFromString(flag, StrLength(flag)); | 1550 FlagList::SetFlagsFromString(flag, StrLength(flag)); |
1552 | 1551 |
1553 const char* source = | 1552 const char* source = |
1554 "var foo = (function(stdlib, foreign, heap) {" | 1553 "var foo = (function(stdlib, foreign, heap) {" |
1555 " function foo(i) {" | 1554 " function foo(i) {" |
1556 " i = i|0;" | 1555 " i = i|0;" |
1557 " var j = 0;" | 1556 " var j = 0;" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1607 isolate->Dispose(); | 1606 isolate->Dispose(); |
1608 } | 1607 } |
1609 | 1608 |
1610 | 1609 |
1611 TEST(SerializationMemoryStats) { | 1610 TEST(SerializationMemoryStats) { |
1612 FLAG_profile_deserialization = true; | 1611 FLAG_profile_deserialization = true; |
1613 FLAG_always_opt = false; | 1612 FLAG_always_opt = false; |
1614 v8::StartupData blob = v8::V8::CreateSnapshotDataBlob(); | 1613 v8::StartupData blob = v8::V8::CreateSnapshotDataBlob(); |
1615 delete[] blob.data; | 1614 delete[] blob.data; |
1616 } | 1615 } |
OLD | NEW |