Reviewers: Jakob,
Description:
Remove outdated assertion scope.
[email protected]
BUG=349870
LOG=N
Please review this at https://codereview.chromium.org/182003004/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+3, -7 lines):
M src/runtime.cc
A + test/mjsunit/regress/regress-349870.js
Index: src/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index
754f743f8cbeead5db1fe1e4e3db42b3949ef4ea..7efcb51b1d030248a4f74ff468bddc71beb0955b
100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -2540,7 +2540,6 @@ RUNTIME_FUNCTION(MaybeObject*,
Runtime_RegExpConstructResult) {
RUNTIME_FUNCTION(MaybeObject*, Runtime_RegExpInitializeObject) {
HandleScope scope(isolate);
- DisallowHeapAllocation no_allocation;
ASSERT(args.length() == 5);
CONVERT_ARG_HANDLE_CHECKED(JSRegExp, regexp, 0);
CONVERT_ARG_HANDLE_CHECKED(String, source, 1);
Index: test/mjsunit/regress/regress-349870.js
diff --git a/test/mjsunit/regress/regress-347912.js
b/test/mjsunit/regress/regress-349870.js
similarity index 62%
copy from test/mjsunit/regress/regress-347912.js
copy to test/mjsunit/regress/regress-349870.js
index
b609e36c3d4981219abcd1c244ab46f849b2863b..72df05524bf1ccbcc8e4201512238e6f99e3fdea
100644
--- a/test/mjsunit/regress/regress-347912.js
+++ b/test/mjsunit/regress/regress-349870.js
@@ -2,9 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --allow-natives-syntax
-
-var __v_4 = {};
-__v_2 = {};
-__v_2[1024] = 0;
-%DebugPrint(__v_4);
+var r = /x/;
+Object.freeze(r);
+r.compile("x");
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.