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 2228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2239 int receiver_offset = 2 + info_->scope()->num_parameters(); | 2239 int receiver_offset = 2 + info_->scope()->num_parameters(); |
2240 __ ldr(r1, MemOperand(fp, receiver_offset * kPointerSize)); | 2240 __ ldr(r1, MemOperand(fp, receiver_offset * kPointerSize)); |
2241 __ push(r1); | 2241 __ push(r1); |
2242 // Push the strict mode flag. In harmony mode every eval call | 2242 // Push the strict mode flag. In harmony mode every eval call |
2243 // is a strict mode eval call. | 2243 // is a strict mode eval call. |
2244 StrictModeFlag strict_mode = | 2244 StrictModeFlag strict_mode = |
2245 FLAG_harmony_scoping ? kStrictMode : strict_mode_flag(); | 2245 FLAG_harmony_scoping ? kStrictMode : strict_mode_flag(); |
2246 __ mov(r1, Operand(Smi::FromInt(strict_mode))); | 2246 __ mov(r1, Operand(Smi::FromInt(strict_mode))); |
2247 __ push(r1); | 2247 __ push(r1); |
2248 | 2248 |
2249 __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 4); | 2249 // Push the start position of the scope the calls resides in. |
| 2250 __ mov(r1, Operand(Smi::FromInt(scope()->start_position()))); |
| 2251 __ push(r1); |
| 2252 |
| 2253 __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 5); |
2250 } | 2254 } |
2251 | 2255 |
2252 | 2256 |
2253 void FullCodeGenerator::VisitCall(Call* expr) { | 2257 void FullCodeGenerator::VisitCall(Call* expr) { |
2254 #ifdef DEBUG | 2258 #ifdef DEBUG |
2255 // We want to verify that RecordJSReturnSite gets called on all paths | 2259 // We want to verify that RecordJSReturnSite gets called on all paths |
2256 // through this function. Avoid early returns. | 2260 // through this function. Avoid early returns. |
2257 expr->return_is_recorded_ = false; | 2261 expr->return_is_recorded_ = false; |
2258 #endif | 2262 #endif |
2259 | 2263 |
(...skipping 2135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4395 *context_length = 0; | 4399 *context_length = 0; |
4396 return previous_; | 4400 return previous_; |
4397 } | 4401 } |
4398 | 4402 |
4399 | 4403 |
4400 #undef __ | 4404 #undef __ |
4401 | 4405 |
4402 } } // namespace v8::internal | 4406 } } // namespace v8::internal |
4403 | 4407 |
4404 #endif // V8_TARGET_ARCH_ARM | 4408 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |