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

Side by Side Diff: test/mjsunit/compiler/concurrent-proto-change.js

Issue 110203002: Refactor the compiling pipeline. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 assertEquals(1, f(o)); 47 assertEquals(1, f(o));
48 // Change the prototype chain after compile graph has been created. 48 // Change the prototype chain after compile graph has been created.
49 o.__proto__.__proto__ = { bar: function() { return 2; } }; 49 o.__proto__.__proto__ = { bar: function() { return 2; } };
50 // At this point, concurrent recompilation thread has not yet done its job. 50 // At this point, concurrent recompilation thread has not yet done its job.
51 assertUnoptimized(f, "no sync"); 51 assertUnoptimized(f, "no sync");
52 // Let the background thread proceed. 52 // Let the background thread proceed.
53 %UnblockConcurrentRecompilation(); 53 %UnblockConcurrentRecompilation();
54 // Optimization eventually bails out due to map dependency. 54 // Optimization eventually bails out due to map dependency.
55 assertUnoptimized(f, "sync"); 55 assertUnoptimized(f, "sync");
56 assertEquals(2, f(o)); 56 assertEquals(2, f(o));
57 //Clear type info for stress runs.
58 %ClearFunctionTypeFeedback(f);
OLDNEW
« no previous file with comments | « test/mjsunit/compiler/concurrent-invalidate-transition-map.js ('k') | test/mjsunit/concurrent-initial-prototype-change.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698