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

Unified Diff: runtime/vm/bootstrap_natives.cc

Issue 10701131: Stop passing location argument to run time calls, since it is stored in the pc (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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 | « no previous file | runtime/vm/code_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/bootstrap_natives.cc
===================================================================
--- runtime/vm/bootstrap_natives.cc (revision 9536)
+++ runtime/vm/bootstrap_natives.cc (working copy)
@@ -36,14 +36,9 @@
int num_entries = sizeof(BootStrapEntries) / sizeof(struct NativeEntries);
for (int i = 0; i < num_entries; i++) {
struct NativeEntries* entry = &(BootStrapEntries[i]);
- if (!strncmp(function_name, entry->name_, strlen(entry->name_))) {
- if (entry->argument_count_ == argument_count) {
- return reinterpret_cast<Dart_NativeFunction>(entry->function_);
- } else {
- // Wrong number of arguments.
- // TODO(regis): Should we pass a buffer for error reporting?
- return NULL;
- }
+ if (!strncmp(function_name, entry->name_, strlen(entry->name_)) &&
+ (entry->argument_count_ == argument_count)) {
+ return reinterpret_cast<Dart_NativeFunction>(entry->function_);
}
}
return NULL;
« no previous file with comments | « no previous file | runtime/vm/code_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698