| 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 2334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2345 __ Push(r0, r1); // Function, receiver. | 2345 __ Push(r0, r1); // Function, receiver. |
| 2346 EmitCallWithStub(expr); | 2346 EmitCallWithStub(expr); |
| 2347 } else { | 2347 } else { |
| 2348 { PreservePositionScope scope(masm()->positions_recorder()); | 2348 { PreservePositionScope scope(masm()->positions_recorder()); |
| 2349 VisitForStackValue(prop->obj()); | 2349 VisitForStackValue(prop->obj()); |
| 2350 } | 2350 } |
| 2351 EmitKeyedCallWithIC(expr, prop->key(), RelocInfo::CODE_TARGET); | 2351 EmitKeyedCallWithIC(expr, prop->key(), RelocInfo::CODE_TARGET); |
| 2352 } | 2352 } |
| 2353 } | 2353 } |
| 2354 } else { | 2354 } else { |
| 2355 // Call to some other expression. If the expression is an anonymous | |
| 2356 // function literal not called in a loop, mark it as one that should | |
| 2357 // also use the fast code generator. | |
| 2358 FunctionLiteral* lit = fun->AsFunctionLiteral(); | |
| 2359 if (lit != NULL && | |
| 2360 lit->name()->Equals(isolate()->heap()->empty_string()) && | |
| 2361 loop_depth() == 0) { | |
| 2362 lit->set_try_full_codegen(true); | |
| 2363 } | |
| 2364 | |
| 2365 { PreservePositionScope scope(masm()->positions_recorder()); | 2355 { PreservePositionScope scope(masm()->positions_recorder()); |
| 2366 VisitForStackValue(fun); | 2356 VisitForStackValue(fun); |
| 2367 } | 2357 } |
| 2368 // Load global receiver object. | 2358 // Load global receiver object. |
| 2369 __ ldr(r1, GlobalObjectOperand()); | 2359 __ ldr(r1, GlobalObjectOperand()); |
| 2370 __ ldr(r1, FieldMemOperand(r1, GlobalObject::kGlobalReceiverOffset)); | 2360 __ ldr(r1, FieldMemOperand(r1, GlobalObject::kGlobalReceiverOffset)); |
| 2371 __ push(r1); | 2361 __ push(r1); |
| 2372 // Emit function call. | 2362 // Emit function call. |
| 2373 EmitCallWithStub(expr); | 2363 EmitCallWithStub(expr); |
| 2374 } | 2364 } |
| (...skipping 1997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4372 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. | 4362 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. |
| 4373 __ add(pc, r1, Operand(masm_->CodeObject())); | 4363 __ add(pc, r1, Operand(masm_->CodeObject())); |
| 4374 } | 4364 } |
| 4375 | 4365 |
| 4376 | 4366 |
| 4377 #undef __ | 4367 #undef __ |
| 4378 | 4368 |
| 4379 } } // namespace v8::internal | 4369 } } // namespace v8::internal |
| 4380 | 4370 |
| 4381 #endif // V8_TARGET_ARCH_ARM | 4371 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |