| 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 2118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2129 __ LoadRoot(a1, Heap::kUndefinedValueRootIndex); | 2129 __ LoadRoot(a1, Heap::kUndefinedValueRootIndex); |
| 2130 } | 2130 } |
| 2131 __ push(a1); | 2131 __ push(a1); |
| 2132 | 2132 |
| 2133 // Push the receiver of the enclosing function and do runtime call. | 2133 // Push the receiver of the enclosing function and do runtime call. |
| 2134 int receiver_offset = 2 + info_->scope()->num_parameters(); | 2134 int receiver_offset = 2 + info_->scope()->num_parameters(); |
| 2135 __ lw(a1, MemOperand(fp, receiver_offset * kPointerSize)); | 2135 __ lw(a1, MemOperand(fp, receiver_offset * kPointerSize)); |
| 2136 __ push(a1); | 2136 __ push(a1); |
| 2137 // Push the strict mode flag. In harmony mode every eval call | 2137 // Push the strict mode flag. In harmony mode every eval call |
| 2138 // is a strict mode eval call. | 2138 // is a strict mode eval call. |
| 2139 StrictModeFlag strict_mode = strict_mode_flag(); | 2139 StrictModeFlag strict_mode = |
| 2140 if (FLAG_harmony_block_scoping) { | 2140 FLAG_harmony_scoping ? kStrictMode : strict_mode_flag(); |
| 2141 strict_mode = kStrictMode; | |
| 2142 } | |
| 2143 __ li(a1, Operand(Smi::FromInt(strict_mode))); | 2141 __ li(a1, Operand(Smi::FromInt(strict_mode))); |
| 2144 __ push(a1); | 2142 __ push(a1); |
| 2145 | 2143 |
| 2146 __ CallRuntime(flag == SKIP_CONTEXT_LOOKUP | 2144 __ CallRuntime(flag == SKIP_CONTEXT_LOOKUP |
| 2147 ? Runtime::kResolvePossiblyDirectEvalNoLookup | 2145 ? Runtime::kResolvePossiblyDirectEvalNoLookup |
| 2148 : Runtime::kResolvePossiblyDirectEval, 4); | 2146 : Runtime::kResolvePossiblyDirectEval, 4); |
| 2149 } | 2147 } |
| 2150 | 2148 |
| 2151 | 2149 |
| 2152 void FullCodeGenerator::VisitCall(Call* expr) { | 2150 void FullCodeGenerator::VisitCall(Call* expr) { |
| (...skipping 2098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4251 *context_length = 0; | 4249 *context_length = 0; |
| 4252 return previous_; | 4250 return previous_; |
| 4253 } | 4251 } |
| 4254 | 4252 |
| 4255 | 4253 |
| 4256 #undef __ | 4254 #undef __ |
| 4257 | 4255 |
| 4258 } } // namespace v8::internal | 4256 } } // namespace v8::internal |
| 4259 | 4257 |
| 4260 #endif // V8_TARGET_ARCH_MIPS | 4258 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |