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

Unified Diff: runtime/vm/code_patcher_x64_test.cc

Issue 11360116: Pass closure object as first implicit argument to closure functions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « runtime/vm/code_patcher_ia32_test.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_patcher_x64_test.cc
===================================================================
--- runtime/vm/code_patcher_x64_test.cc (revision 14694)
+++ runtime/vm/code_patcher_x64_test.cc (working copy)
@@ -20,19 +20,16 @@
CODEGEN_TEST_GENERATE(NativePatchStaticCall, test) {
SequenceNode* node_seq = test->node_sequence();
- const int num_params = 0;
- const bool has_opt_params = false;
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,
- num_params,
- has_opt_params,
- false)));
+ native_function)));
}
CODEGEN_TEST2_GENERATE(PatchStaticCall, function, test) {
« no previous file with comments | « runtime/vm/code_patcher_ia32_test.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698