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

Side by Side Diff: src/arm/code-stubs-arm.cc

Issue 12114054: Supporting AllocationSiteInfo for Nested arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing a port compile failure Created 7 years, 9 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 | « no previous file | src/arm/full-codegen-arm.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 528
529 GenerateFastCloneShallowArrayCommon(masm, length_, mode, 529 GenerateFastCloneShallowArrayCommon(masm, length_, mode,
530 allocation_site_mode_, 530 allocation_site_mode_,
531 &slow_case); 531 &slow_case);
532 532
533 // Return and remove the on-stack parameters. 533 // Return and remove the on-stack parameters.
534 __ add(sp, sp, Operand(3 * kPointerSize)); 534 __ add(sp, sp, Operand(3 * kPointerSize));
535 __ Ret(); 535 __ Ret();
536 536
537 __ bind(&slow_case); 537 __ bind(&slow_case);
538 __ TailCallRuntime(Runtime::kCreateArrayLiteralShallow, 3, 1); 538
539 int flags = allocation_site_mode_ == TRACK_ALLOCATION_SITE
540 ? ArrayLiteral::kCreateAllocationSiteInfos
541 : ArrayLiteral::kNoFlags;
542 __ mov(r0, Operand(Smi::FromInt(flags)));
543 __ push(r0);
544 __ TailCallRuntime(Runtime::kCreateArrayLiteralShallow, 4, 1);
539 } 545 }
540 546
541 547
542 // Takes a Smi and converts to an IEEE 64 bit floating point value in two 548 // Takes a Smi and converts to an IEEE 64 bit floating point value in two
543 // registers. The format is 1 sign bit, 11 exponent bits (biased 1023) and 549 // registers. The format is 1 sign bit, 11 exponent bits (biased 1023) and
544 // 52 fraction bits (20 in the first word, 32 in the second). Zeros is a 550 // 52 fraction bits (20 in the first word, 32 in the second). Zeros is a
545 // scratch register. Destroys the source register. No GC occurs during this 551 // scratch register. Destroys the source register. No GC occurs during this
546 // stub so you don't have to set up the frame. 552 // stub so you don't have to set up the frame.
547 class ConvertToDoubleStub : public PlatformCodeStub { 553 class ConvertToDoubleStub : public PlatformCodeStub {
548 public: 554 public:
(...skipping 7502 matching lines...) Expand 10 before | Expand all | Expand 10 after
8051 8057
8052 __ Pop(lr, r5, r1); 8058 __ Pop(lr, r5, r1);
8053 __ Ret(); 8059 __ Ret();
8054 } 8060 }
8055 8061
8056 #undef __ 8062 #undef __
8057 8063
8058 } } // namespace v8::internal 8064 } } // namespace v8::internal
8059 8065
8060 #endif // V8_TARGET_ARCH_ARM 8066 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698