X87: Remove the dependency of Zone on Isolate
port c7b09aac31
(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}
This commit is contained in:
parent
bd4476a623
commit
3c56b02674
@ -77,12 +77,11 @@ namespace internal {
|
||||
|
||||
#define __ ACCESS_MASM(masm_)
|
||||
|
||||
RegExpMacroAssemblerX87::RegExpMacroAssemblerX87(
|
||||
Mode mode,
|
||||
int registers_to_save,
|
||||
Zone* zone)
|
||||
: NativeRegExpMacroAssembler(zone),
|
||||
masm_(new MacroAssembler(zone->isolate(), NULL, kRegExpCodeSize)),
|
||||
RegExpMacroAssemblerX87::RegExpMacroAssemblerX87(Isolate* isolate, Zone* zone,
|
||||
Mode mode,
|
||||
int registers_to_save)
|
||||
: NativeRegExpMacroAssembler(isolate, zone),
|
||||
masm_(new MacroAssembler(isolate, NULL, kRegExpCodeSize)),
|
||||
mode_(mode),
|
||||
num_registers_(registers_to_save),
|
||||
num_saved_registers_(registers_to_save),
|
||||
|
@ -15,7 +15,8 @@ namespace internal {
|
||||
#ifndef V8_INTERPRETED_REGEXP
|
||||
class RegExpMacroAssemblerX87: public NativeRegExpMacroAssembler {
|
||||
public:
|
||||
RegExpMacroAssemblerX87(Mode mode, int registers_to_save, Zone* zone);
|
||||
RegExpMacroAssemblerX87(Isolate* isolate, Zone* zone, Mode mode,
|
||||
int registers_to_save);
|
||||
virtual ~RegExpMacroAssemblerX87();
|
||||
virtual int stack_limit_slack();
|
||||
virtual void AdvanceCurrentPosition(int by);
|
||||
|
Loading…
Reference in New Issue
Block a user