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

Unified Diff: test/mjsunit/regress/regress-4815.js

Issue 2078443002: [builtins] Use BUILTIN frame in DatePrototype_GetField (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@20160616-builtin-frame
Patch Set: Created 4 years, 6 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
« src/arm/builtins-arm.cc ('K') | « src/x64/builtins-x64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-4815.js
diff --git a/test/mjsunit/regress/regress-4815.js b/test/mjsunit/regress/regress-4815.js
index cc0e7555edcde32985ef90b379656154ece267c9..29fd9023403192b79a20c9397b776b020918b0fc 100644
--- a/test/mjsunit/regress/regress-4815.js
+++ b/test/mjsunit/regress/regress-4815.js
@@ -18,3 +18,17 @@ function testTraceNativeConversion(nativeFunc) {
testTraceNativeConversion(Math.max);
testTraceNativeConversion(Math.min);
+
+function testBuiltinInStackTrace(script, nativeFuncName) {
+ try {
+ eval(script);
+ assertUnreachable(nativeFuncName);
+ } catch (e) {
+ assertTrue(e.stack.indexOf(nativeFuncName) >= 0, nativeFuncName);
+ }
+}
+
+testBuiltinInStackTrace("Date.prototype.getDate.call('')", "getDate");
+testBuiltinInStackTrace("Date.prototype.getUTCDate.call('')", "getUTCDate");
+testBuiltinInStackTrace("Date.prototype.getTime.call('')", "getTime");
+testBuiltinInStackTrace("Date.prototype.getYear.call('')", "getYear");
« src/arm/builtins-arm.cc ('K') | « src/x64/builtins-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698