OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 2315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2326 Handle<JSGlobalPropertyCell> cell = | 2326 Handle<JSGlobalPropertyCell> cell = |
2327 isolate()->factory()->NewJSGlobalPropertyCell(uninitialized); | 2327 isolate()->factory()->NewJSGlobalPropertyCell(uninitialized); |
2328 RecordTypeFeedbackCell(expr->id(), cell); | 2328 RecordTypeFeedbackCell(expr->id(), cell); |
2329 __ mov(ebx, cell); | 2329 __ mov(ebx, cell); |
2330 } else { | 2330 } else { |
2331 flags = NO_CALL_FUNCTION_FLAGS; | 2331 flags = NO_CALL_FUNCTION_FLAGS; |
2332 } | 2332 } |
2333 | 2333 |
2334 CallConstructStub stub(flags); | 2334 CallConstructStub stub(flags); |
2335 __ call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); | 2335 __ call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); |
| 2336 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); |
2336 context()->Plug(eax); | 2337 context()->Plug(eax); |
2337 } | 2338 } |
2338 | 2339 |
2339 | 2340 |
2340 void FullCodeGenerator::EmitIsSmi(CallRuntime* expr) { | 2341 void FullCodeGenerator::EmitIsSmi(CallRuntime* expr) { |
2341 ZoneList<Expression*>* args = expr->arguments(); | 2342 ZoneList<Expression*>* args = expr->arguments(); |
2342 ASSERT(args->length() == 1); | 2343 ASSERT(args->length() == 1); |
2343 | 2344 |
2344 VisitForAccumulatorValue(args->at(0)); | 2345 VisitForAccumulatorValue(args->at(0)); |
2345 | 2346 |
(...skipping 2039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4385 *context_length = 0; | 4386 *context_length = 0; |
4386 return previous_; | 4387 return previous_; |
4387 } | 4388 } |
4388 | 4389 |
4389 | 4390 |
4390 #undef __ | 4391 #undef __ |
4391 | 4392 |
4392 } } // namespace v8::internal | 4393 } } // namespace v8::internal |
4393 | 4394 |
4394 #endif // V8_TARGET_ARCH_IA32 | 4395 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |