| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1261 // we're running with the --always-opt or the --prepare-always-opt | 1261 // we're running with the --always-opt or the --prepare-always-opt |
| 1262 // flag, we need to use the runtime function so that the new function | 1262 // flag, we need to use the runtime function so that the new function |
| 1263 // we are creating here gets a chance to have its code optimized and | 1263 // we are creating here gets a chance to have its code optimized and |
| 1264 // doesn't just get a copy of the existing unoptimized code. | 1264 // doesn't just get a copy of the existing unoptimized code. |
| 1265 if (!FLAG_always_opt && | 1265 if (!FLAG_always_opt && |
| 1266 !FLAG_prepare_always_opt && | 1266 !FLAG_prepare_always_opt && |
| 1267 !pretenure && | 1267 !pretenure && |
| 1268 scope()->is_function_scope() && | 1268 scope()->is_function_scope() && |
| 1269 info->num_literals() == 0) { | 1269 info->num_literals() == 0) { |
| 1270 FastNewClosureStub stub(info->language_mode(), info->is_generator()); | 1270 FastNewClosureStub stub(info->language_mode(), info->is_generator()); |
| 1271 __ push(Immediate(info)); | 1271 __ mov(ebx, Immediate(info)); |
| 1272 __ CallStub(&stub); | 1272 __ CallStub(&stub); |
| 1273 } else { | 1273 } else { |
| 1274 __ push(esi); | 1274 __ push(esi); |
| 1275 __ push(Immediate(info)); | 1275 __ push(Immediate(info)); |
| 1276 __ push(Immediate(pretenure | 1276 __ push(Immediate(pretenure |
| 1277 ? isolate()->factory()->true_value() | 1277 ? isolate()->factory()->true_value() |
| 1278 : isolate()->factory()->false_value())); | 1278 : isolate()->factory()->false_value())); |
| 1279 __ CallRuntime(Runtime::kNewClosure, 3); | 1279 __ CallRuntime(Runtime::kNewClosure, 3); |
| 1280 } | 1280 } |
| 1281 context()->Plug(eax); | 1281 context()->Plug(eax); |
| (...skipping 3608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4890 *stack_depth = 0; | 4890 *stack_depth = 0; |
| 4891 *context_length = 0; | 4891 *context_length = 0; |
| 4892 return previous_; | 4892 return previous_; |
| 4893 } | 4893 } |
| 4894 | 4894 |
| 4895 #undef __ | 4895 #undef __ |
| 4896 | 4896 |
| 4897 } } // namespace v8::internal | 4897 } } // namespace v8::internal |
| 4898 | 4898 |
| 4899 #endif // V8_TARGET_ARCH_IA32 | 4899 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |