Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(879)

Side by Side Diff: src/codegen-arm.cc

Issue 18842: Experimental: periodic merge of the bleeding_edge branch to the... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/checks.h ('k') | src/codegen-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2340 matching lines...) Expand 10 before | Expand all | Expand 10 after
2351 __ str(r0, FieldMemOperand(r1, offset)); 2351 __ str(r0, FieldMemOperand(r1, offset));
2352 2352
2353 // Update the write barrier for the array address. 2353 // Update the write barrier for the array address.
2354 __ mov(r3, Operand(offset)); 2354 __ mov(r3, Operand(offset));
2355 __ RecordWrite(r1, r3, r2); 2355 __ RecordWrite(r1, r3, r2);
2356 } 2356 }
2357 } 2357 }
2358 } 2358 }
2359 2359
2360 2360
2361 void CodeGenerator::VisitCatchExtensionObject(CatchExtensionObject* node) {
2362 // Call runtime routine to allocate the catch extension object and
2363 // assign the exception value to the catch variable.
2364 Comment cmnt(masm_, "[CatchExtensionObject ");
2365 Load(node->key());
2366 Load(node->value());
2367 __ CallRuntime(Runtime::kCreateCatchExtensionObject, 2);
2368 frame_->Push(r0);
2369 }
2370
2371
2361 void CodeGenerator::VisitAssignment(Assignment* node) { 2372 void CodeGenerator::VisitAssignment(Assignment* node) {
2362 Comment cmnt(masm_, "[ Assignment"); 2373 Comment cmnt(masm_, "[ Assignment");
2363 CodeForStatement(node); 2374 CodeForStatement(node);
2364 2375
2365 Reference target(this, node->target()); 2376 Reference target(this, node->target());
2366 if (target.is_illegal()) { 2377 if (target.is_illegal()) {
2367 // Fool the virtual frame into thinking that we left the assignment's 2378 // Fool the virtual frame into thinking that we left the assignment's
2368 // value on the frame. 2379 // value on the frame.
2369 __ mov(r0, Operand(Smi::FromInt(0))); 2380 __ mov(r0, Operand(Smi::FromInt(0)));
2370 frame_->EmitPush(r0); 2381 frame_->EmitPush(r0);
(...skipping 2142 matching lines...) Expand 10 before | Expand all | Expand 10 after
4513 __ mov(r2, Operand(0)); 4524 __ mov(r2, Operand(0));
4514 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION); 4525 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION);
4515 __ Jump(Handle<Code>(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)), 4526 __ Jump(Handle<Code>(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)),
4516 RelocInfo::CODE_TARGET); 4527 RelocInfo::CODE_TARGET);
4517 } 4528 }
4518 4529
4519 4530
4520 #undef __ 4531 #undef __
4521 4532
4522 } } // namespace v8::internal 4533 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/checks.h ('k') | src/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698