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

Unified Diff: test/cctest/test-log-stack-tracer.cc

Issue 573056: Add fuzzing support for inline runtime functions (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 9 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 | « src/x64/codegen-x64.cc ('k') | test/mjsunit/fuzz-natives.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-log-stack-tracer.cc
===================================================================
--- test/cctest/test-log-stack-tracer.cc (revision 4085)
+++ test/cctest/test-log-stack-tracer.cc (working copy)
@@ -232,10 +232,12 @@
public:
CodeGeneratorPatcher() {
CodeGenerator::InlineRuntimeLUT genGetFramePointer =
- {&CodeGenerator::GenerateGetFramePointer, "_GetFramePointer"};
- // _FastCharCodeAt is not used in our tests.
+ {&CodeGenerator::GenerateGetFramePointer, "_GetFramePointer", 0};
+ // _RandomPositiveSmi is not used in our tests. The one we replace need to
+ // have the same noumer of arguments as the one we put in, which is zero in
+ // this case.
bool result = CodeGenerator::PatchInlineRuntimeEntry(
- NewString("_FastCharCodeAt"),
+ NewString("_RandomPositiveSmi"),
genGetFramePointer, &oldInlineEntry);
CHECK(result);
}
« no previous file with comments | « src/x64/codegen-x64.cc ('k') | test/mjsunit/fuzz-natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698