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

Unified Diff: runtime/vm/code_generator_test.cc

Issue 22303002: Auto create ApiLocalScope before calling native functions, this ensures that (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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
« no previous file with comments | « runtime/vm/code_descriptors_test.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_generator_test.cc
===================================================================
--- runtime/vm/code_generator_test.cc (revision 25822)
+++ runtime/vm/code_generator_test.cc (working copy)
@@ -218,11 +218,13 @@
String::ZoneHandle(Symbols::New("TestSmiSub"));
NativeFunction native_function =
reinterpret_cast<NativeFunction>(TestSmiSub);
- node_seq->Add(new ReturnNode(kPos,
- new NativeBodyNode(kPos,
- function,
- native_name,
- native_function)));
+ node_seq->Add(
+ new ReturnNode(kPos,
+ new NativeBodyNode(kPos,
+ function,
+ native_name,
+ native_function,
+ false /* not bootstrap native */)));
}
@@ -398,11 +400,13 @@
String::ZoneHandle(Symbols::New("TestSmiSum"));
NativeFunction native_function =
reinterpret_cast<NativeFunction>(TestSmiSum);
- node_seq->Add(new ReturnNode(kPos,
- new NativeBodyNode(kPos,
- function,
- native_name,
- native_function)));
+ node_seq->Add(
+ new ReturnNode(kPos,
+ new NativeBodyNode(kPos,
+ function,
+ native_name,
+ native_function,
+ false /* Not bootstrap native */)));
}
@@ -485,11 +489,13 @@
String::ZoneHandle(Symbols::New("TestNonNullSmiSum"));
NativeFunction native_function =
reinterpret_cast<NativeFunction>(TestNonNullSmiSum);
- node_seq->Add(new ReturnNode(kPos,
- new NativeBodyNode(kPos,
- function,
- native_name,
- native_function)));
+ node_seq->Add(
+ new ReturnNode(kPos,
+ new NativeBodyNode(kPos,
+ function,
+ native_name,
+ native_function,
+ false /* Not bootstrap native */)));
}
« no previous file with comments | « runtime/vm/code_descriptors_test.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698