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

Unified Diff: src/bootstrapper.cc

Issue 2884: Stop adapting the arguments passed to the builtin implementations... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 3 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 | src/builtins.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
===================================================================
--- src/bootstrapper.cc (revision 311)
+++ src/bootstrapper.cc (working copy)
@@ -291,8 +291,7 @@
void AddSpecialFunction(Handle<JSObject> prototype,
const char* name,
- Handle<Code> code,
- int parameter_count);
+ Handle<Code> code);
void BuildSpecialFunctionTable();
@@ -1266,8 +1265,7 @@
void Genesis::AddSpecialFunction(Handle<JSObject> prototype,
const char* name,
- Handle<Code> code,
- int parameter_count) {
+ Handle<Code> code) {
Handle<String> key = Factory::LookupAsciiSymbol(name);
Handle<Object> value = Handle<Object>(prototype->GetProperty(*key));
if (value->IsJSFunction()) {
@@ -1276,7 +1274,7 @@
JSObject::kHeaderSize,
code,
false);
- optimized->shared()->set_formal_parameter_count(parameter_count);
+ optimized->shared()->DontAdaptArguments();
int len = global_context()->special_function_table()->length();
Handle<FixedArray> new_array = Factory::NewFixedArray(len + 3);
for (int index = 0; index < len; index++) {
@@ -1301,11 +1299,9 @@
Handle<JSObject> prototype =
Handle<JSObject>(JSObject::cast(function->prototype()));
AddSpecialFunction(prototype, "pop",
- Handle<Code>(Builtins::builtin(Builtins::ArrayPop)),
- 0);
+ Handle<Code>(Builtins::builtin(Builtins::ArrayPop)));
AddSpecialFunction(prototype, "push",
- Handle<Code>(Builtins::builtin(Builtins::ArrayPush)),
- 1);
+ Handle<Code>(Builtins::builtin(Builtins::ArrayPush)));
}
« no previous file with comments | « no previous file | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698