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

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

Issue 219030: Change the functions named AllocateObjectInNewSpace to AllocateInNewSpace (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 2 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/arm/builtins-arm.cc ('k') | src/arm/macro-assembler-arm.h » ('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-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 4942 matching lines...) Expand 10 before | Expand all | Expand 10 after
4953 // Allocates a heap number or jumps to the label if the young space is full and 4953 // Allocates a heap number or jumps to the label if the young space is full and
4954 // a scavenge is needed. 4954 // a scavenge is needed.
4955 static void AllocateHeapNumber( 4955 static void AllocateHeapNumber(
4956 MacroAssembler* masm, 4956 MacroAssembler* masm,
4957 Label* need_gc, // Jump here if young space is full. 4957 Label* need_gc, // Jump here if young space is full.
4958 Register result, // The tagged address of the new heap number. 4958 Register result, // The tagged address of the new heap number.
4959 Register scratch1, // A scratch register. 4959 Register scratch1, // A scratch register.
4960 Register scratch2) { // Another scratch register. 4960 Register scratch2) { // Another scratch register.
4961 // Allocate an object in the heap for the heap number and tag it as a heap 4961 // Allocate an object in the heap for the heap number and tag it as a heap
4962 // object. 4962 // object.
4963 __ AllocateObjectInNewSpace(HeapNumber::kSize / kPointerSize, 4963 __ AllocateInNewSpace(HeapNumber::kSize / kPointerSize,
4964 result, 4964 result,
4965 scratch1, 4965 scratch1,
4966 scratch2, 4966 scratch2,
4967 need_gc, 4967 need_gc,
4968 TAG_OBJECT); 4968 TAG_OBJECT);
4969 4969
4970 // Get heap number map and store it in the allocated object. 4970 // Get heap number map and store it in the allocated object.
4971 __ LoadRoot(scratch1, Heap::kHeapNumberMapRootIndex); 4971 __ LoadRoot(scratch1, Heap::kHeapNumberMapRootIndex);
4972 __ str(scratch1, FieldMemOperand(result, HeapObject::kMapOffset)); 4972 __ str(scratch1, FieldMemOperand(result, HeapObject::kMapOffset));
4973 } 4973 }
4974 4974
4975 4975
4976 // We fall into this code if the operands were Smis, but the result was 4976 // We fall into this code if the operands were Smis, but the result was
4977 // not (eg. overflow). We branch into this code (to the not_smi label) if 4977 // not (eg. overflow). We branch into this code (to the not_smi label) if
4978 // the operands were not both Smi. The operands are in r0 and r1. In order 4978 // the operands were not both Smi. The operands are in r0 and r1. In order
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after
6268 int CompareStub::MinorKey() { 6268 int CompareStub::MinorKey() {
6269 // Encode the two parameters in a unique 16 bit value. 6269 // Encode the two parameters in a unique 16 bit value.
6270 ASSERT(static_cast<unsigned>(cc_) >> 28 < (1 << 15)); 6270 ASSERT(static_cast<unsigned>(cc_) >> 28 < (1 << 15));
6271 return (static_cast<unsigned>(cc_) >> 27) | (strict_ ? 1 : 0); 6271 return (static_cast<unsigned>(cc_) >> 27) | (strict_ ? 1 : 0);
6272 } 6272 }
6273 6273
6274 6274
6275 #undef __ 6275 #undef __
6276 6276
6277 } } // namespace v8::internal 6277 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/builtins-arm.cc ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698