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

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: Some updates Created 7 years, 10 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') | src/arm/lithium-codegen-arm.cc » ('J')
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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 489
490 GenerateFastCloneShallowArrayCommon(masm, length_, mode, 490 GenerateFastCloneShallowArrayCommon(masm, length_, mode,
491 allocation_site_mode_, 491 allocation_site_mode_,
492 &slow_case); 492 &slow_case);
493 493
494 // Return and remove the on-stack parameters. 494 // Return and remove the on-stack parameters.
495 __ add(sp, sp, Operand(3 * kPointerSize)); 495 __ add(sp, sp, Operand(3 * kPointerSize));
496 __ Ret(); 496 __ Ret();
497 497
498 __ bind(&slow_case); 498 __ bind(&slow_case);
499 __ TailCallRuntime(Runtime::kCreateArrayLiteralShallow, 3, 1); 499
500 // Add a flags argument, carefully preserving the return address on the stack.
danno 2013/02/11 15:05:21 The comment is a bit misleading for ARM, since the
mvstanton 2013/02/15 07:36:43 Done.
501 int flags = allocation_site_mode_ == TRACK_ALLOCATION_SITE
502 ? ArrayLiteral::kAllocationSiteInfoAllowed
503 : ArrayLiteral::kNoFlags;
504 __ mov(r0, Operand(Smi::FromInt(flags)));
505 __ push(r0);
506 __ TailCallRuntime(Runtime::kCreateArrayLiteralShallow, 4, 1);
500 } 507 }
501 508
502 509
503 void FastCloneShallowObjectStub::Generate(MacroAssembler* masm) { 510 void FastCloneShallowObjectStub::Generate(MacroAssembler* masm) {
504 // Stack layout on entry: 511 // Stack layout on entry:
505 // 512 //
506 // [sp]: object literal flags. 513 // [sp]: object literal flags.
507 // [sp + kPointerSize]: constant properties. 514 // [sp + kPointerSize]: constant properties.
508 // [sp + (2 * kPointerSize)]: literal index. 515 // [sp + (2 * kPointerSize)]: literal index.
509 // [sp + (3 * kPointerSize)]: literals array. 516 // [sp + (3 * kPointerSize)]: literals array.
(...skipping 7436 matching lines...) Expand 10 before | Expand all | Expand 10 after
7946 7953
7947 __ Pop(lr, r5, r1); 7954 __ Pop(lr, r5, r1);
7948 __ Ret(); 7955 __ Ret();
7949 } 7956 }
7950 7957
7951 #undef __ 7958 #undef __
7952 7959
7953 } } // namespace v8::internal 7960 } } // namespace v8::internal
7954 7961
7955 #endif // V8_TARGET_ARCH_ARM 7962 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/full-codegen-arm.cc » ('j') | src/arm/lithium-codegen-arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698