| Index: src/hydrogen-instructions.h
|
| diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h
|
| index 3b6822da86e449bbba694511dd83bd734a9ab417..97e1b0e515b36d811bf02e90cb3782216155c880 100644
|
| --- a/src/hydrogen-instructions.h
|
| +++ b/src/hydrogen-instructions.h
|
| @@ -3287,6 +3287,17 @@ class HConstant V8_FINAL : public HTemplateInstruction<0> {
|
| return new_constant;
|
| }
|
|
|
| + static HConstant* CreateAndInsertBefore(Zone* zone,
|
| + Unique<Object> unique,
|
| + bool is_not_in_new_space,
|
| + HInstruction* instruction) {
|
| + HConstant* new_constant = new(zone) HConstant(unique,
|
| + Representation::Tagged(), HType::Tagged(), false, is_not_in_new_space,
|
| + false, false);
|
| + new_constant->InsertBefore(instruction);
|
| + return new_constant;
|
| + }
|
| +
|
| Handle<Object> handle(Isolate* isolate) {
|
| if (object_.handle().is_null()) {
|
| // Default arguments to is_not_in_new_space depend on this heap number
|
|
|