Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(392)

Side by Side Diff: test/cctest/test-serialize.cc

Issue 1074143002: Use cctest to track memory stats for isolate and context. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: disable always-opt Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « .gitignore ('k') | test/memory/Memory.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « .gitignore ('k') | test/memory/Memory.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698