Index: src/mips/full-codegen-mips.cc |
=================================================================== |
--- src/mips/full-codegen-mips.cc (revision 12224) |
+++ src/mips/full-codegen-mips.cc (working copy) |
@@ -2389,16 +2389,14 @@ |
// Record source position for debugger. |
SetSourcePosition(expr->position()); |
- // Record call targets in unoptimized code, but not in the snapshot. |
- if (!Serializer::enabled()) { |
- flags = static_cast<CallFunctionFlags>(flags | RECORD_CALL_TARGET); |
- Handle<Object> uninitialized = |
- TypeFeedbackCells::UninitializedSentinel(isolate()); |
- Handle<JSGlobalPropertyCell> cell = |
- isolate()->factory()->NewJSGlobalPropertyCell(uninitialized); |
- RecordTypeFeedbackCell(expr->id(), cell); |
- __ li(a2, Operand(cell)); |
- } |
+ // Record call targets. |
+ flags = static_cast<CallFunctionFlags>(flags | RECORD_CALL_TARGET); |
+ Handle<Object> uninitialized = |
+ TypeFeedbackCells::UninitializedSentinel(isolate()); |
+ Handle<JSGlobalPropertyCell> cell = |
+ isolate()->factory()->NewJSGlobalPropertyCell(uninitialized); |
+ RecordTypeFeedbackCell(expr->id(), cell); |
+ __ li(a2, Operand(cell)); |
CallFunctionStub stub(arg_count, flags); |
__ lw(a1, MemOperand(sp, (arg_count + 1) * kPointerSize)); |
@@ -2587,21 +2585,15 @@ |
__ li(a0, Operand(arg_count)); |
__ lw(a1, MemOperand(sp, arg_count * kPointerSize)); |
- // Record call targets in unoptimized code, but not in the snapshot. |
- CallFunctionFlags flags; |
- if (!Serializer::enabled()) { |
- flags = RECORD_CALL_TARGET; |
- Handle<Object> uninitialized = |
- TypeFeedbackCells::UninitializedSentinel(isolate()); |
- Handle<JSGlobalPropertyCell> cell = |
- isolate()->factory()->NewJSGlobalPropertyCell(uninitialized); |
- RecordTypeFeedbackCell(expr->id(), cell); |
- __ li(a2, Operand(cell)); |
- } else { |
- flags = NO_CALL_FUNCTION_FLAGS; |
- } |
+ // Record call targets in unoptimized code. |
+ Handle<Object> uninitialized = |
+ TypeFeedbackCells::UninitializedSentinel(isolate()); |
+ Handle<JSGlobalPropertyCell> cell = |
+ isolate()->factory()->NewJSGlobalPropertyCell(uninitialized); |
+ RecordTypeFeedbackCell(expr->id(), cell); |
+ __ li(a2, Operand(cell)); |
- CallConstructStub stub(flags); |
+ CallConstructStub stub(RECORD_CALL_TARGET); |
__ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); |
PrepareForBailoutForId(expr->ReturnId(), TOS_REG); |
context()->Plug(v0); |