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

Side by Side Diff: src/codegen-arm.cc

Issue 10233: Fix CALL_NON_FUNCTION. If a builtin is not resolved at runtime (happened at b... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 4265 matching lines...) Expand 10 before | Expand all | Expand 10 after
4276 __ b(ne, &slow); 4276 __ b(ne, &slow);
4277 4277
4278 // Fast-case: Invoke the function now. 4278 // Fast-case: Invoke the function now.
4279 // r1: pushed function 4279 // r1: pushed function
4280 ParameterCount actual(argc_); 4280 ParameterCount actual(argc_);
4281 __ InvokeFunction(r1, actual, JUMP_FUNCTION); 4281 __ InvokeFunction(r1, actual, JUMP_FUNCTION);
4282 4282
4283 // Slow-case: Non-function called. 4283 // Slow-case: Non-function called.
4284 __ bind(&slow); 4284 __ bind(&slow);
4285 __ mov(r0, Operand(argc_)); // Setup the number of arguments. 4285 __ mov(r0, Operand(argc_)); // Setup the number of arguments.
4286 __ InvokeBuiltin(Builtins::CALL_NON_FUNCTION, JUMP_JS); 4286 __ mov(r2, Operand(0));
4287 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION);
4288 __ Jump(Handle<Code>(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)),
4289 RelocInfo::CODE_TARGET);
4287 } 4290 }
4288 4291
4289 4292
4290 #undef __ 4293 #undef __
4291 4294
4292 } } // namespace v8::internal 4295 } } // namespace v8::internal
OLDNEW
« src/bootstrapper.cc ('K') | « src/bootstrapper.cc ('k') | src/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698