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 4005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4016 __ bind(&slow); | 4016 __ bind(&slow); |
4017 __ mov(r0, Operand(proxy->name())); | 4017 __ mov(r0, Operand(proxy->name())); |
4018 __ Push(cp, r0); | 4018 __ Push(cp, r0); |
4019 __ CallRuntime(Runtime::kLoadContextSlotNoReferenceError, 2); | 4019 __ CallRuntime(Runtime::kLoadContextSlotNoReferenceError, 2); |
4020 PrepareForBailout(expr, TOS_REG); | 4020 PrepareForBailout(expr, TOS_REG); |
4021 __ bind(&done); | 4021 __ bind(&done); |
4022 | 4022 |
4023 context()->Plug(r0); | 4023 context()->Plug(r0); |
4024 } else { | 4024 } else { |
4025 // This expression cannot throw a reference error at the top level. | 4025 // This expression cannot throw a reference error at the top level. |
4026 context()->HandleExpression(expr); | 4026 VisitInSameContext(expr); |
4027 } | 4027 } |
4028 } | 4028 } |
4029 | 4029 |
4030 | 4030 |
4031 bool FullCodeGenerator::TryLiteralCompare(Token::Value op, | 4031 bool FullCodeGenerator::TryLiteralCompare(Token::Value op, |
4032 Expression* left, | 4032 Expression* left, |
4033 Expression* right, | 4033 Expression* right, |
4034 Label* if_true, | 4034 Label* if_true, |
4035 Label* if_false, | 4035 Label* if_false, |
4036 Label* fall_through) { | 4036 Label* fall_through) { |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4366 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. | 4366 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. |
4367 __ add(pc, r1, Operand(masm_->CodeObject())); | 4367 __ add(pc, r1, Operand(masm_->CodeObject())); |
4368 } | 4368 } |
4369 | 4369 |
4370 | 4370 |
4371 #undef __ | 4371 #undef __ |
4372 | 4372 |
4373 } } // namespace v8::internal | 4373 } } // namespace v8::internal |
4374 | 4374 |
4375 #endif // V8_TARGET_ARCH_ARM | 4375 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |