Commit 3c56b026 authored by cdai2's avatar cdai2

X87: Remove the dependency of Zone on Isolate

port c7b09aac (r26252)

original commit message:

    Along the way:
    - Thread isolate parameter explicitly through code that used to
      rely on getting it from the zone.
    - Canonicalize the parameter position of isolate and zone for
      affected code
    - Change Hydrogen New<> instruction templates to automatically
      pass isolate

BUG=
R=weiliang.lin@intel.com

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

Cr-Commit-Position: refs/heads/master@{#26501}
parent bd4476a6
...@@ -77,12 +77,11 @@ namespace internal { ...@@ -77,12 +77,11 @@ namespace internal {
#define __ ACCESS_MASM(masm_) #define __ ACCESS_MASM(masm_)
RegExpMacroAssemblerX87::RegExpMacroAssemblerX87( RegExpMacroAssemblerX87::RegExpMacroAssemblerX87(Isolate* isolate, Zone* zone,
Mode mode, Mode mode,
int registers_to_save, int registers_to_save)
Zone* zone) : NativeRegExpMacroAssembler(isolate, zone),
: NativeRegExpMacroAssembler(zone), masm_(new MacroAssembler(isolate, NULL, kRegExpCodeSize)),
masm_(new MacroAssembler(zone->isolate(), NULL, kRegExpCodeSize)),
mode_(mode), mode_(mode),
num_registers_(registers_to_save), num_registers_(registers_to_save),
num_saved_registers_(registers_to_save), num_saved_registers_(registers_to_save),
......
...@@ -15,7 +15,8 @@ namespace internal { ...@@ -15,7 +15,8 @@ namespace internal {
#ifndef V8_INTERPRETED_REGEXP #ifndef V8_INTERPRETED_REGEXP
class RegExpMacroAssemblerX87: public NativeRegExpMacroAssembler { class RegExpMacroAssemblerX87: public NativeRegExpMacroAssembler {
public: public:
RegExpMacroAssemblerX87(Mode mode, int registers_to_save, Zone* zone); RegExpMacroAssemblerX87(Isolate* isolate, Zone* zone, Mode mode,
int registers_to_save);
virtual ~RegExpMacroAssemblerX87(); virtual ~RegExpMacroAssemblerX87();
virtual int stack_limit_slack(); virtual int stack_limit_slack();
virtual void AdvanceCurrentPosition(int by); virtual void AdvanceCurrentPosition(int by);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment