Index: src/ia32/full-codegen-ia32.cc |
=================================================================== |
--- src/ia32/full-codegen-ia32.cc (revision 12224) |
+++ src/ia32/full-codegen-ia32.cc (working copy) |
@@ -2305,16 +2305,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); |
- __ mov(ebx, cell); |
- } |
+ // Record call targets in unoptimized code. |
+ 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); |
+ __ mov(ebx, cell); |
CallFunctionStub stub(arg_count, flags); |
__ mov(edi, Operand(esp, (arg_count + 1) * kPointerSize)); |
@@ -2493,19 +2491,14 @@ |
__ Set(eax, Immediate(arg_count)); |
__ mov(edi, Operand(esp, 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); |
- __ mov(ebx, cell); |
- } else { |
- flags = NO_CALL_FUNCTION_FLAGS; |
- } |
+ // Record call targets in unoptimized code. |
+ CallFunctionFlags flags = RECORD_CALL_TARGET; |
Jakob Kummerow
2012/07/31 09:02:08
nit: This variable is only used once (line 2503),
|
+ Handle<Object> uninitialized = |
+ TypeFeedbackCells::UninitializedSentinel(isolate()); |
+ Handle<JSGlobalPropertyCell> cell = |
+ isolate()->factory()->NewJSGlobalPropertyCell(uninitialized); |
+ RecordTypeFeedbackCell(expr->id(), cell); |
+ __ mov(ebx, cell); |
CallConstructStub stub(flags); |
__ call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); |