Commit 5cf3897f authored by erik.corry@gmail.com's avatar erik.corry@gmail.com

Fix debug mode :-/

Review URL: http://codereview.chromium.org/115025

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1886 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent d550fdbb
......@@ -1481,16 +1481,16 @@ void Genesis::BuildSpecialFunctionTable() {
Handle<JSFunction> function =
Handle<JSFunction>(
JSFunction::cast(global->GetProperty(Heap::Array_symbol())));
Handle<JSObject> hidden_prototype =
Handle<JSObject> visible_prototype =
Handle<JSObject>(JSObject::cast(function->prototype()));
ASSERT(hidden_prototype->map()->is_hidden_prototype());
// Remember to skip the hidden prototype:
Handle<JSObject> real_prototype =
Handle<JSObject>(JSObject::cast(hidden_prototype->GetPrototype()));
AddSpecialFunction(real_prototype, "pop",
Handle<JSObject> hidden_prototype =
Handle<JSObject>(JSObject::cast(visible_prototype->GetPrototype()));
AddSpecialFunction(hidden_prototype, "pop",
Handle<Code>(Builtins::builtin(Builtins::ArrayPop)));
AddSpecialFunction(real_prototype, "push",
AddSpecialFunction(hidden_prototype, "push",
Handle<Code>(Builtins::builtin(Builtins::ArrayPush)));
ASSERT(hidden_prototype->map()->is_hidden_prototype());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment