X87: Parsing: Make Scope not know about Isolate.
authorcdai2 <chunyang.dai@intel.com>
Wed, 11 Feb 2015 15:50:17 +0000 (23:50 +0800)
committercdai2 <chunyang.dai@intel.com>
Wed, 11 Feb 2015 15:50:58 +0000 (15:50 +0000)
commit75ad4cc265d8d580ca09fe51d2101cd77729379c
treea3c5dab75bd96d064e8dc7dc220b086002416c10
parent02fc74ea639af18a2b30c3f2ff9d66b7cbe189fd
X87:  Parsing: Make Scope not know about Isolate.

port 5d68529be240a1fc9fcc67c8950ead4baf7604e4 (r26546)

original commit message:

   Parsing: Make Scope not know about Isolate.

  Scope, like Parser, must be able to operate independent of Isolate and the V8
  heap (for background parsing). After the heap-independent phase, there is a heap
  dependent phase, during which we do operations such as scope anaylysis.

  This CL makes the phases explicit by not telling Scope about the Isolate too
  early (during the heap-independent phase, Scope should know nothing about
  Isolate). This decreases the probability of accidental code changes which would
  add heap-dependent operations into the heap-independent phase.

BUG=
R=weiliang.lin@intel.com

Review URL: https://codereview.chromium.org/913163003

Cr-Commit-Position: refs/heads/master@{#26590}
src/x87/full-codegen-x87.cc