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 3959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3970 __ bind(&slow); | 3970 __ bind(&slow); |
3971 __ push(rsi); | 3971 __ push(rsi); |
3972 __ Push(proxy->name()); | 3972 __ Push(proxy->name()); |
3973 __ CallRuntime(Runtime::kLoadContextSlotNoReferenceError, 2); | 3973 __ CallRuntime(Runtime::kLoadContextSlotNoReferenceError, 2); |
3974 PrepareForBailout(expr, TOS_REG); | 3974 PrepareForBailout(expr, TOS_REG); |
3975 __ bind(&done); | 3975 __ bind(&done); |
3976 | 3976 |
3977 context()->Plug(rax); | 3977 context()->Plug(rax); |
3978 } else { | 3978 } else { |
3979 // This expression cannot throw a reference error at the top level. | 3979 // This expression cannot throw a reference error at the top level. |
3980 context()->HandleExpression(expr); | 3980 VisitInSameContext(expr); |
3981 } | 3981 } |
3982 } | 3982 } |
3983 | 3983 |
3984 | 3984 |
3985 bool FullCodeGenerator::TryLiteralCompare(Token::Value op, | 3985 bool FullCodeGenerator::TryLiteralCompare(Token::Value op, |
3986 Expression* left, | 3986 Expression* left, |
3987 Expression* right, | 3987 Expression* right, |
3988 Label* if_true, | 3988 Label* if_true, |
3989 Label* if_false, | 3989 Label* if_false, |
3990 Label* fall_through) { | 3990 Label* fall_through) { |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4309 __ ret(0); | 4309 __ ret(0); |
4310 } | 4310 } |
4311 | 4311 |
4312 | 4312 |
4313 #undef __ | 4313 #undef __ |
4314 | 4314 |
4315 | 4315 |
4316 } } // namespace v8::internal | 4316 } } // namespace v8::internal |
4317 | 4317 |
4318 #endif // V8_TARGET_ARCH_X64 | 4318 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |