| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1229 frame_->Pop(r0); | 1229 frame_->Pop(r0); |
| 1230 | 1230 |
| 1231 function_return_.Jump(); | 1231 function_return_.Jump(); |
| 1232 } | 1232 } |
| 1233 | 1233 |
| 1234 | 1234 |
| 1235 void CodeGenerator::VisitWithEnterStatement(WithEnterStatement* node) { | 1235 void CodeGenerator::VisitWithEnterStatement(WithEnterStatement* node) { |
| 1236 Comment cmnt(masm_, "[ WithEnterStatement"); | 1236 Comment cmnt(masm_, "[ WithEnterStatement"); |
| 1237 CodeForStatement(node); | 1237 CodeForStatement(node); |
| 1238 Load(node->expression()); | 1238 Load(node->expression()); |
| 1239 frame_->CallRuntime(Runtime::kPushContext, 1); | 1239 if (node->is_catch_block()) { |
| 1240 frame_->CallRuntime(Runtime::kPushCatchContext, 1); |
| 1241 } else { |
| 1242 frame_->CallRuntime(Runtime::kPushContext, 1); |
| 1243 } |
| 1240 if (kDebug) { | 1244 if (kDebug) { |
| 1241 JumpTarget verified_true(this); | 1245 JumpTarget verified_true(this); |
| 1242 __ cmp(r0, Operand(cp)); | 1246 __ cmp(r0, Operand(cp)); |
| 1243 verified_true.Branch(eq); | 1247 verified_true.Branch(eq); |
| 1244 __ stop("PushContext: r0 is expected to be the same as cp"); | 1248 __ stop("PushContext: r0 is expected to be the same as cp"); |
| 1245 verified_true.Bind(); | 1249 verified_true.Bind(); |
| 1246 } | 1250 } |
| 1247 // Update context local. | 1251 // Update context local. |
| 1248 __ str(cp, frame_->Context()); | 1252 __ str(cp, frame_->Context()); |
| 1249 } | 1253 } |
| (...skipping 3241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4491 __ mov(r2, Operand(0)); | 4495 __ mov(r2, Operand(0)); |
| 4492 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION); | 4496 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION); |
| 4493 __ Jump(Handle<Code>(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)), | 4497 __ Jump(Handle<Code>(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)), |
| 4494 RelocInfo::CODE_TARGET); | 4498 RelocInfo::CODE_TARGET); |
| 4495 } | 4499 } |
| 4496 | 4500 |
| 4497 | 4501 |
| 4498 #undef __ | 4502 #undef __ |
| 4499 | 4503 |
| 4500 } } // namespace v8::internal | 4504 } } // namespace v8::internal |
| OLD | NEW |