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

Unified Diff: runtime/vm/code_patcher_ia32_test.cc

Issue 17554003: Change static calls in unoptimized code to always call via a stub. Using ICData, the call count of … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/code_patcher_ia32_test.cc
===================================================================
--- runtime/vm/code_patcher_ia32_test.cc (revision 24288)
+++ runtime/vm/code_patcher_ia32_test.cc (working copy)
@@ -18,30 +18,6 @@
namespace dart {
-CODEGEN_TEST_GENERATE(NativePatchStaticCall, test) {
- SequenceNode* node_seq = test->node_sequence();
- const String& native_name =
- String::ZoneHandle(Symbols::New("TestStaticCallPatching"));
- NativeFunction native_function =
- reinterpret_cast<NativeFunction>(TestStaticCallPatching);
- test->function().set_is_native(true);
- node_seq->Add(new ReturnNode(Scanner::kDummyTokenIndex,
- new NativeBodyNode(Scanner::kDummyTokenIndex,
- test->function(),
- native_name,
- native_function)));
-}
-
-CODEGEN_TEST2_GENERATE(PatchStaticCall, function, test) {
- SequenceNode* node_seq = test->node_sequence();
- ArgumentListNode* arguments = new ArgumentListNode(Scanner::kDummyTokenIndex);
- node_seq->Add(new ReturnNode(Scanner::kDummyTokenIndex,
- new StaticCallNode(Scanner::kDummyTokenIndex,
- function, arguments)));
-}
-
-CODEGEN_TEST2_RUN(PatchStaticCall, NativePatchStaticCall, Instance::null());
-
#define __ assembler->
ASSEMBLER_TEST_GENERATE(IcDataAccess, assembler) {

Powered by Google App Engine
This is Rietveld 408576698