| Index: src/x64/full-codegen-x64.cc
 | 
| diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc
 | 
| index 7be5212e9f191314ca825aeccb89a6fd37ef8d5c..ffe185579a3c898c21855774f5ff3eb98557bb31 100644
 | 
| --- a/src/x64/full-codegen-x64.cc
 | 
| +++ b/src/x64/full-codegen-x64.cc
 | 
| @@ -254,7 +254,7 @@ void FullCodeGenerator::Generate() {
 | 
|      scope()->VisitIllegalRedeclaration(this);
 | 
|  
 | 
|    } else {
 | 
| -    PrepareForBailoutForId(AstNode::kFunctionEntryId, NO_REGISTERS);
 | 
| +    PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS);
 | 
|      { Comment cmnt(masm_, "[ Declarations");
 | 
|        // For named function expressions, declare the function name as a
 | 
|        // constant.
 | 
| @@ -269,7 +269,7 @@ void FullCodeGenerator::Generate() {
 | 
|      }
 | 
|  
 | 
|      { Comment cmnt(masm_, "[ Stack check");
 | 
| -      PrepareForBailoutForId(AstNode::kDeclarationsId, NO_REGISTERS);
 | 
| +      PrepareForBailoutForId(BailoutId::Declarations(), NO_REGISTERS);
 | 
|        Label ok;
 | 
|        __ CompareRoot(rsp, Heap::kStackLimitRootIndex);
 | 
|        __ j(above_equal, &ok, Label::kNear);
 | 
| @@ -1126,7 +1126,7 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) {
 | 
|        isolate()->factory()->NewJSGlobalPropertyCell(
 | 
|            Handle<Object>(
 | 
|                Smi::FromInt(TypeFeedbackCells::kForInFastCaseMarker)));
 | 
| -  RecordTypeFeedbackCell(stmt->PrepareId(), cell);
 | 
| +  RecordTypeFeedbackCell(stmt->ForInFeedbackId(), cell);
 | 
|    __ LoadHeapObject(rbx, cell);
 | 
|    __ Move(FieldOperand(rbx, JSGlobalPropertyCell::kValueOffset),
 | 
|            Smi::FromInt(TypeFeedbackCells::kForInSlowCaseMarker));
 | 
| @@ -1598,7 +1598,7 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
 | 
|              Handle<Code> ic = is_classic_mode()
 | 
|                  ? isolate()->builtins()->StoreIC_Initialize()
 | 
|                  : isolate()->builtins()->StoreIC_Initialize_Strict();
 | 
| -            CallIC(ic, RelocInfo::CODE_TARGET, key->id());
 | 
| +            CallIC(ic, RelocInfo::CODE_TARGET, key->LiteralFeedbackId());
 | 
|              PrepareForBailoutForId(key->id(), NO_REGISTERS);
 | 
|            } else {
 | 
|              VisitForEffect(value);
 | 
| @@ -1868,14 +1868,14 @@ void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) {
 | 
|    Literal* key = prop->key()->AsLiteral();
 | 
|    __ Move(rcx, key->handle());
 | 
|    Handle<Code> ic = isolate()->builtins()->LoadIC_Initialize();
 | 
| -  CallIC(ic, RelocInfo::CODE_TARGET, prop->id());
 | 
| +  CallIC(ic, RelocInfo::CODE_TARGET, prop->PropertyFeedbackId());
 | 
|  }
 | 
|  
 | 
|  
 | 
|  void FullCodeGenerator::EmitKeyedPropertyLoad(Property* prop) {
 | 
|    SetSourcePosition(prop->position());
 | 
|    Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize();
 | 
| -  CallIC(ic, RelocInfo::CODE_TARGET, prop->id());
 | 
| +  CallIC(ic, RelocInfo::CODE_TARGET, prop->PropertyFeedbackId());
 | 
|  }
 | 
|  
 | 
|  
 | 
| @@ -1897,7 +1897,8 @@ void FullCodeGenerator::EmitInlineSmiBinaryOp(BinaryOperation* expr,
 | 
|    __ bind(&stub_call);
 | 
|    __ movq(rax, rcx);
 | 
|    BinaryOpStub stub(op, mode);
 | 
| -  CallIC(stub.GetCode(), RelocInfo::CODE_TARGET, expr->id());
 | 
| +  CallIC(stub.GetCode(), RelocInfo::CODE_TARGET,
 | 
| +         expr->BinaryOperationFeedbackId());
 | 
|    patch_site.EmitPatchInfo();
 | 
|    __ jmp(&done, Label::kNear);
 | 
|  
 | 
| @@ -1946,7 +1947,8 @@ void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr,
 | 
|    __ pop(rdx);
 | 
|    BinaryOpStub stub(op, mode);
 | 
|    JumpPatchSite patch_site(masm_);    // unbound, signals no inlined smi code.
 | 
| -  CallIC(stub.GetCode(), RelocInfo::CODE_TARGET, expr->id());
 | 
| +  CallIC(stub.GetCode(), RelocInfo::CODE_TARGET,
 | 
| +         expr->BinaryOperationFeedbackId());
 | 
|    patch_site.EmitPatchInfo();
 | 
|    context()->Plug(rax);
 | 
|  }
 | 
| @@ -2125,7 +2127,7 @@ void FullCodeGenerator::EmitNamedPropertyAssignment(Assignment* expr) {
 | 
|    Handle<Code> ic = is_classic_mode()
 | 
|        ? isolate()->builtins()->StoreIC_Initialize()
 | 
|        : isolate()->builtins()->StoreIC_Initialize_Strict();
 | 
| -  CallIC(ic, RelocInfo::CODE_TARGET, expr->id());
 | 
| +  CallIC(ic, RelocInfo::CODE_TARGET, expr->AssignmentFeedbackId());
 | 
|  
 | 
|    // If the assignment ends an initialization block, revert to fast case.
 | 
|    if (expr->ends_initialization_block()) {
 | 
| @@ -2165,7 +2167,7 @@ void FullCodeGenerator::EmitKeyedPropertyAssignment(Assignment* expr) {
 | 
|    Handle<Code> ic = is_classic_mode()
 | 
|        ? isolate()->builtins()->KeyedStoreIC_Initialize()
 | 
|        : isolate()->builtins()->KeyedStoreIC_Initialize_Strict();
 | 
| -  CallIC(ic, RelocInfo::CODE_TARGET, expr->id());
 | 
| +  CallIC(ic, RelocInfo::CODE_TARGET, expr->AssignmentFeedbackId());
 | 
|  
 | 
|    // If the assignment ends an initialization block, revert to fast case.
 | 
|    if (expr->ends_initialization_block()) {
 | 
| @@ -2202,7 +2204,7 @@ void FullCodeGenerator::VisitProperty(Property* expr) {
 | 
|  
 | 
|  void FullCodeGenerator::CallIC(Handle<Code> code,
 | 
|                                 RelocInfo::Mode rmode,
 | 
| -                               unsigned ast_id) {
 | 
| +                               TypeFeedbackId ast_id) {
 | 
|    ic_total_count_++;
 | 
|    __ call(code, rmode, ast_id);
 | 
|  }
 | 
| @@ -2225,7 +2227,7 @@ void FullCodeGenerator::EmitCallWithIC(Call* expr,
 | 
|    // Call the IC initialization code.
 | 
|    Handle<Code> ic =
 | 
|        isolate()->stub_cache()->ComputeCallInitialize(arg_count, mode);
 | 
| -  CallIC(ic, mode, expr->id());
 | 
| +  CallIC(ic, mode, expr->CallFeedbackId());
 | 
|    RecordJSReturnSite(expr);
 | 
|    // Restore context register.
 | 
|    __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset));
 | 
| @@ -2258,7 +2260,7 @@ void FullCodeGenerator::EmitKeyedCallWithIC(Call* expr,
 | 
|    Handle<Code> ic =
 | 
|        isolate()->stub_cache()->ComputeKeyedCallInitialize(arg_count);
 | 
|    __ movq(rcx, Operand(rsp, (arg_count + 1) * kPointerSize));  // Key.
 | 
| -  CallIC(ic, RelocInfo::CODE_TARGET, expr->id());
 | 
| +  CallIC(ic, RelocInfo::CODE_TARGET, expr->CallFeedbackId());
 | 
|    RecordJSReturnSite(expr);
 | 
|    // Restore context register.
 | 
|    __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset));
 | 
| @@ -2284,12 +2286,12 @@ void FullCodeGenerator::EmitCallWithStub(Call* expr, CallFunctionFlags flags) {
 | 
|        TypeFeedbackCells::UninitializedSentinel(isolate());
 | 
|    Handle<JSGlobalPropertyCell> cell =
 | 
|        isolate()->factory()->NewJSGlobalPropertyCell(uninitialized);
 | 
| -  RecordTypeFeedbackCell(expr->id(), cell);
 | 
| +  RecordTypeFeedbackCell(expr->CallFeedbackId(), cell);
 | 
|    __ Move(rbx, cell);
 | 
|  
 | 
|    CallFunctionStub stub(arg_count, flags);
 | 
|    __ movq(rdi, Operand(rsp, (arg_count + 1) * kPointerSize));
 | 
| -  __ CallStub(&stub, expr->id());
 | 
| +  __ CallStub(&stub, expr->CallFeedbackId());
 | 
|    RecordJSReturnSite(expr);
 | 
|    // Restore context register.
 | 
|    __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset));
 | 
| @@ -2468,7 +2470,7 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) {
 | 
|        TypeFeedbackCells::UninitializedSentinel(isolate());
 | 
|    Handle<JSGlobalPropertyCell> cell =
 | 
|        isolate()->factory()->NewJSGlobalPropertyCell(uninitialized);
 | 
| -  RecordTypeFeedbackCell(expr->id(), cell);
 | 
| +  RecordTypeFeedbackCell(expr->CallNewFeedbackId(), cell);
 | 
|    __ Move(rbx, cell);
 | 
|  
 | 
|    CallConstructStub stub(RECORD_CALL_TARGET);
 | 
| @@ -3806,7 +3808,7 @@ void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) {
 | 
|      RelocInfo::Mode mode = RelocInfo::CODE_TARGET;
 | 
|      Handle<Code> ic =
 | 
|          isolate()->stub_cache()->ComputeCallInitialize(arg_count, mode);
 | 
| -    CallIC(ic, mode, expr->id());
 | 
| +    CallIC(ic, mode, expr->CallRuntimeFeedbackId());
 | 
|      // Restore context register.
 | 
|      __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset));
 | 
|    } else {
 | 
| @@ -3964,7 +3966,8 @@ void FullCodeGenerator::EmitUnaryOperation(UnaryOperation* expr,
 | 
|    // accumulator register rax.
 | 
|    VisitForAccumulatorValue(expr->expression());
 | 
|    SetSourcePosition(expr->position());
 | 
| -  CallIC(stub.GetCode(), RelocInfo::CODE_TARGET, expr->id());
 | 
| +  CallIC(stub.GetCode(), RelocInfo::CODE_TARGET,
 | 
| +         expr->UnaryOperationFeedbackId());
 | 
|    context()->Plug(rax);
 | 
|  }
 | 
|  
 | 
| @@ -4085,7 +4088,7 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) {
 | 
|      __ movq(rdx, rax);
 | 
|      __ Move(rax, Smi::FromInt(1));
 | 
|    }
 | 
| -  CallIC(stub.GetCode(), RelocInfo::CODE_TARGET, expr->CountId());
 | 
| +  CallIC(stub.GetCode(), RelocInfo::CODE_TARGET, expr->CountBinOpFeedbackId());
 | 
|    patch_site.EmitPatchInfo();
 | 
|    __ bind(&done);
 | 
|  
 | 
| @@ -4119,7 +4122,7 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) {
 | 
|        Handle<Code> ic = is_classic_mode()
 | 
|            ? isolate()->builtins()->StoreIC_Initialize()
 | 
|            : isolate()->builtins()->StoreIC_Initialize_Strict();
 | 
| -      CallIC(ic, RelocInfo::CODE_TARGET, expr->id());
 | 
| +      CallIC(ic, RelocInfo::CODE_TARGET, expr->CountStoreFeedbackId());
 | 
|        PrepareForBailoutForId(expr->AssignmentId(), TOS_REG);
 | 
|        if (expr->is_postfix()) {
 | 
|          if (!context()->IsEffect()) {
 | 
| @@ -4136,7 +4139,7 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) {
 | 
|        Handle<Code> ic = is_classic_mode()
 | 
|            ? isolate()->builtins()->KeyedStoreIC_Initialize()
 | 
|            : isolate()->builtins()->KeyedStoreIC_Initialize_Strict();
 | 
| -      CallIC(ic, RelocInfo::CODE_TARGET, expr->id());
 | 
| +      CallIC(ic, RelocInfo::CODE_TARGET, expr->CountStoreFeedbackId());
 | 
|        PrepareForBailoutForId(expr->AssignmentId(), TOS_REG);
 | 
|        if (expr->is_postfix()) {
 | 
|          if (!context()->IsEffect()) {
 | 
| @@ -4343,7 +4346,7 @@ void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) {
 | 
|        // Record position and call the compare IC.
 | 
|        SetSourcePosition(expr->position());
 | 
|        Handle<Code> ic = CompareIC::GetUninitialized(op);
 | 
| -      CallIC(ic, RelocInfo::CODE_TARGET, expr->id());
 | 
| +      CallIC(ic, RelocInfo::CODE_TARGET, expr->CompareOperationFeedbackId());
 | 
|        patch_site.EmitPatchInfo();
 | 
|  
 | 
|        PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
 | 
| 
 |