v8/test/unittests
littledan 53fdf9d192 Use a different map to distinguish eval contexts
eval() may introduce a scope which needs to be represented as a context at
runtime, e.g.,

  eval('var x; let y; ()=>y')

introduces a variable y which needs to have a context allocated for it. However,
when traversing upwards to find the declaration context for a variable which leaks,
as the declaration of x does above, this context has to be understood to not be
a declaration context in sloppy mode.

This patch makes that distinction by introducing a different map for eval-introduced
contexts. A dynamic search for the appropriate context will continue past an eval
context to find the appropriate context. Marking contexts as eval contexts rather
than function contexts required updates in each compiler backend.

BUG=v8:5295, chromium:648719

Review-Url: https://codereview.chromium.org/2435023002
Cr-Commit-Position: refs/heads/master@{#41869}
2016-12-20 16:23:19 +00:00
..
base Fix memory leak in logging-unittest. 2016-12-19 11:58:28 +00:00
compiler Use a different map to distinguish eval contexts 2016-12-20 16:23:19 +00:00
compiler-dispatcher CompilerDispatcher unittest should use is_compiled() predicate. 2016-12-19 15:41:04 +00:00
heap [heap] Fix unittest compilation on mips 2016-12-20 09:56:39 +00:00
interpreter Use a different map to distinguish eval contexts 2016-12-20 16:23:19 +00:00
libplatform Add test for posting a single task to the worker pool 2016-08-23 11:56:57 +00:00
wasm [wasm] Add iterators for opcodes or offsets of one function 2016-12-20 11:28:44 +00:00
zone Fix more -Wsign-compare warnings in heap, mips, base, etc. 2016-11-11 14:56:10 +00:00
BUILD.gn [heap] Create a thin wrapper around wrapper tracing in V8 to avoid misuse 2016-12-20 09:35:05 +00:00
cancelable-tasks-unittest.cc Fix gcc 4.9.2 signed-compare error. 2015-11-15 12:48:19 +00:00
char-predicates-unittest.cc Conform to the unittest naming convention. 2014-10-10 08:06:21 +00:00
counters-unittest.cc [counters] RuntimeStats: fix wrong bookkeeping when dynamically changing counters 2016-11-24 10:05:37 +00:00
DEPS Move unit tests to test/unittests. 2014-10-01 08:34:25 +00:00
eh-frame-iterator-unittest.cc [turbofan] Fix more -Wsign-compare warnings. 2016-11-11 12:01:08 +00:00
eh-frame-writer-unittest.cc [turbofan] Fix more -Wsign-compare warnings. 2016-11-11 12:01:08 +00:00
locked-queue-unittest.cc Add lock-based unbounded queue 2015-11-18 10:54:13 +00:00
object-unittest.cc Add unittests to keep InstanceType lists in sync 2016-12-19 12:50:30 +00:00
register-configuration-unittest.cc [Turbofan] Add concept of FP register aliasing on ARM 32. 2016-10-26 16:04:33 +00:00
run-all-unittests.cc [presubmit] Enabling readability/inheritance linter checking. 2015-11-04 13:08:42 +00:00
source-position-table-unittest.cc This CL enables precise source positions for all V8 compilers. It merges compiler::SourcePosition and internal::SourcePosition to a single class used throughout the codebase. The new internal::SourcePosition instances store an id identifying an inlined function in addition to a script offset. 2016-11-14 17:22:32 +00:00
test-utils.cc [turbofan] Enforce native context specialization. 2016-10-10 05:53:51 +00:00
test-utils.h Named all zones in the project 2016-10-17 12:12:42 +00:00
unicode-unittest.cc Fix out-of-range access in unibrow::Utf8::CalculateValue. 2016-11-22 09:27:59 +00:00
unittests.gyp [heap] Create a thin wrapper around wrapper tracing in V8 to avoid misuse 2016-12-20 09:35:05 +00:00
unittests.isolate Reland [swarming] Isolate v8 testing. 2015-10-05 09:48:42 +00:00
unittests.status [tests] Skip RuntimeCallStatsTest due to flaky timers 2016-11-28 10:51:20 +00:00
value-serializer-unittest.cc Revert of Disallow passing a SharedArrayBuffer in the transfer list. (patchset #4 id:60001 of https://codereview.chromium.org/2570433005/ ) 2016-12-16 07:34:40 +00:00