MSVC optimization realizes that CallJsFunction2 is just the same as CallJsFunction, so it eliminates the former making the call stack contain two instances of the same function.
The patch makes two functions distinct.
LOG=N
BUG=v8:3055
R=aandrey@chromium.org, jkummerow@chromium.org, yurys@chromium.org
Review URL: https://codereview.chromium.org/
357383003
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22113
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
# BUG(2999).
'test-cpu-profiler/CollectCpuProfile': [PASS, FAIL],
- # BUG(3055).
- 'test-cpu-profiler/JsNative1JsNative2JsSample': [PASS, ['mode == release', FAIL], ['mode == debug', FLAKY]],
-
# BUG(3005).
'test-alloc/CodeRange': [PASS, FAIL],
static void CallJsFunction2(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ v8::base::OS::Print("In CallJsFunction2\n");
CallJsFunction(info);
}