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

Unified Diff: runtime/vm/runtime_entry.h

Issue 23672011: Fix the previously ineffective assert checking the number of arguments passed to (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/intermediate_language_x64.cc ('k') | runtime/vm/runtime_entry_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/runtime_entry.h
===================================================================
--- runtime/vm/runtime_entry.h (revision 26825)
+++ runtime/vm/runtime_entry.h (working copy)
@@ -23,7 +23,7 @@
class RuntimeEntry : public ValueObject {
public:
RuntimeEntry(const char* name, RuntimeFunction function,
- int argument_count, bool is_leaf, bool is_float)
+ intptr_t argument_count, bool is_leaf, bool is_float)
: name_(name),
function_(function),
argument_count_(argument_count),
@@ -33,18 +33,18 @@
const char* name() const { return name_; }
RuntimeFunction function() const { return function_; }
- int argument_count() const { return argument_count_; }
+ intptr_t argument_count() const { return argument_count_; }
bool is_leaf() const { return is_leaf_; }
bool is_float() const { return is_float_; }
uword GetEntryPoint() const { return reinterpret_cast<uword>(function()); }
// Generate code to call the runtime entry.
- void Call(Assembler* assembler) const;
+ void Call(Assembler* assembler, intptr_t argument_count) const;
private:
const char* name_;
const RuntimeFunction function_;
- const int argument_count_;
+ const intptr_t argument_count_;
const bool is_leaf_;
const bool is_float_;
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/runtime_entry_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698