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 2217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2228 __ str(r0, FieldMemOperand(r1, offset)); | 2228 __ str(r0, FieldMemOperand(r1, offset)); |
2229 | 2229 |
2230 // Update the write barrier for the array address. | 2230 // Update the write barrier for the array address. |
2231 __ mov(r3, Operand(offset)); | 2231 __ mov(r3, Operand(offset)); |
2232 __ RecordWrite(r1, r3, r2); | 2232 __ RecordWrite(r1, r3, r2); |
2233 } | 2233 } |
2234 } | 2234 } |
2235 } | 2235 } |
2236 | 2236 |
2237 | 2237 |
| 2238 void CodeGenerator::VisitCatchExtensionObject(CatchExtensionObject* node) { |
| 2239 // Call runtime routine to allocate the catch extension object and |
| 2240 // assign the exception value to the catch variable. |
| 2241 Comment cmnt(masm_, "[CatchExtensionObject "); |
| 2242 Load(node->key()); |
| 2243 Load(node->value()); |
| 2244 __ CallRuntime(Runtime::kCreateCatchExtensionObject, 2); |
| 2245 frame_->Push(r0); |
| 2246 } |
| 2247 |
| 2248 |
2238 void CodeGenerator::VisitAssignment(Assignment* node) { | 2249 void CodeGenerator::VisitAssignment(Assignment* node) { |
2239 Comment cmnt(masm_, "[ Assignment"); | 2250 Comment cmnt(masm_, "[ Assignment"); |
2240 CodeForStatement(node); | 2251 CodeForStatement(node); |
2241 | 2252 |
2242 Reference target(this, node->target()); | 2253 Reference target(this, node->target()); |
2243 if (target.is_illegal()) return; | 2254 if (target.is_illegal()) return; |
2244 | 2255 |
2245 if (node->op() == Token::ASSIGN || | 2256 if (node->op() == Token::ASSIGN || |
2246 node->op() == Token::INIT_VAR || | 2257 node->op() == Token::INIT_VAR || |
2247 node->op() == Token::INIT_CONST) { | 2258 node->op() == Token::INIT_CONST) { |
(...skipping 2102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4350 __ mov(r2, Operand(0)); | 4361 __ mov(r2, Operand(0)); |
4351 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION); | 4362 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION); |
4352 __ Jump(Handle<Code>(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)), | 4363 __ Jump(Handle<Code>(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)), |
4353 RelocInfo::CODE_TARGET); | 4364 RelocInfo::CODE_TARGET); |
4354 } | 4365 } |
4355 | 4366 |
4356 | 4367 |
4357 #undef __ | 4368 #undef __ |
4358 | 4369 |
4359 } } // namespace v8::internal | 4370 } } // namespace v8::internal |
OLD | NEW |