Revision: 8475
Author: [email protected]
Date: Wed Jun 29 23:58:13 2011
Log: Remove --strict developer flag from V8.
It makes V8 not have JavaScript semantics by throwing exception all
the time. Even our own natives JavaScript code cannot run using that.
[email protected]
BUG=v8:1511
Review URL: http://codereview.chromium.org/7248056
http://code.google.com/p/v8/source/detail?r=8475
Modified:
/branches/bleeding_edge/src/flag-definitions.h
/branches/bleeding_edge/src/ic.cc
=======================================
--- /branches/bleeding_edge/src/flag-definitions.h Fri Jun 24 04:38:47 2011
+++ /branches/bleeding_edge/src/flag-definitions.h Wed Jun 29 23:58:13 2011
@@ -203,7 +203,6 @@
DEFINE_bool(trace_deopt, false, "trace deoptimization")
// compiler.cc
-DEFINE_bool(strict, false, "strict error checking")
DEFINE_int(min_preparse_length, 1024,
"minimum length for automatic enable preparsing")
DEFINE_bool(always_full_compiler, false,
=======================================
--- /branches/bleeding_edge/src/ic.cc Wed Jun 22 03:24:40 2011
+++ /branches/bleeding_edge/src/ic.cc Wed Jun 29 23:58:13 2011
@@ -956,7 +956,7 @@
// If we did not find a property, check if we need to throw an exception.
if (!lookup.IsProperty()) {
- if (FLAG_strict || IsContextual(object)) {
+ if (IsContextual(object)) {
return ReferenceError("not_defined", name);
}
LOG(isolate(), SuspectReadEvent(*name, *object));
@@ -1230,10 +1230,8 @@
LookupForRead(*object, *name, &lookup);
// If we did not find a property, check if we need to throw an
exception.
- if (!lookup.IsProperty()) {
- if (FLAG_strict || IsContextual(object)) {
- return ReferenceError("not_defined", name);
- }
+ if (!lookup.IsProperty() && IsContextual(object)) {
+ return ReferenceError("not_defined", name);
}
if (FLAG_use_ic) {
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev