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 1531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1542 CHECK_EQ(11, CompileRun("foo(0)")->ToInt32(isolate)->Int32Value()); | 1542 CHECK_EQ(11, CompileRun("foo(0)")->ToInt32(isolate)->Int32Value()); |
1543 CHECK_EQ(11, CompileRun("foo(1)")->ToInt32(isolate)->Int32Value()); | 1543 CHECK_EQ(11, CompileRun("foo(1)")->ToInt32(isolate)->Int32Value()); |
1544 CHECK_EQ(12, CompileRun("foo(2)")->ToInt32(isolate)->Int32Value()); | 1544 CHECK_EQ(12, CompileRun("foo(2)")->ToInt32(isolate)->Int32Value()); |
1545 CHECK_EQ(12, CompileRun("foo(3)")->ToInt32(isolate)->Int32Value()); | 1545 CHECK_EQ(12, CompileRun("foo(3)")->ToInt32(isolate)->Int32Value()); |
1546 CHECK_EQ(23, CompileRun("foo(4)")->ToInt32(isolate)->Int32Value()); | 1546 CHECK_EQ(23, CompileRun("foo(4)")->ToInt32(isolate)->Int32Value()); |
1547 CHECK_EQ(23, CompileRun("foo(5)")->ToInt32(isolate)->Int32Value()); | 1547 CHECK_EQ(23, CompileRun("foo(5)")->ToInt32(isolate)->Int32Value()); |
1548 CHECK_EQ(10, CompileRun("foo(6)")->ToInt32(isolate)->Int32Value()); | 1548 CHECK_EQ(10, CompileRun("foo(6)")->ToInt32(isolate)->Int32Value()); |
1549 } | 1549 } |
1550 isolate->Dispose(); | 1550 isolate->Dispose(); |
1551 } | 1551 } |
| 1552 |
| 1553 |
| 1554 TEST(SerializationMemoryStats) { |
| 1555 FLAG_profile_deserialization = true; |
| 1556 FLAG_always_opt = false; |
| 1557 v8::StartupData blob = v8::V8::CreateSnapshotDataBlob(); |
| 1558 delete[] blob.data; |
| 1559 } |
OLD | NEW |