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

Side by Side Diff: src/x64/codegen-x64.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/x64/builtins-x64.cc ('k') | src/x64/macro-assembler-x64.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 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 7186 matching lines...) Expand 10 before | Expand all | Expand 10 after
7197 Runtime::Function* f = Runtime::FunctionForId(Runtime::kStackGuard); 7197 Runtime::Function* f = Runtime::FunctionForId(Runtime::kStackGuard);
7198 __ TailCallRuntime(ExternalReference(f), 1, f->result_size); 7198 __ TailCallRuntime(ExternalReference(f), 1, f->result_size);
7199 } 7199 }
7200 7200
7201 7201
7202 void FloatingPointHelper::AllocateHeapNumber(MacroAssembler* masm, 7202 void FloatingPointHelper::AllocateHeapNumber(MacroAssembler* masm,
7203 Label* need_gc, 7203 Label* need_gc,
7204 Register scratch, 7204 Register scratch,
7205 Register result) { 7205 Register result) {
7206 // Allocate heap number in new space. 7206 // Allocate heap number in new space.
7207 __ AllocateObjectInNewSpace(HeapNumber::kSize, 7207 __ AllocateInNewSpace(HeapNumber::kSize,
7208 result, 7208 result,
7209 scratch, 7209 scratch,
7210 no_reg, 7210 no_reg,
7211 need_gc, 7211 need_gc,
7212 TAG_OBJECT); 7212 TAG_OBJECT);
7213 7213
7214 // Set the map and tag the result. 7214 // Set the map and tag the result.
7215 __ LoadRoot(kScratchRegister, Heap::kHeapNumberMapRootIndex); 7215 __ LoadRoot(kScratchRegister, Heap::kHeapNumberMapRootIndex);
7216 __ movq(FieldOperand(result, HeapObject::kMapOffset), kScratchRegister); 7216 __ movq(FieldOperand(result, HeapObject::kMapOffset), kScratchRegister);
7217 } 7217 }
7218 7218
7219 7219
7220 void FloatingPointHelper::LoadFloatOperand(MacroAssembler* masm, 7220 void FloatingPointHelper::LoadFloatOperand(MacroAssembler* masm,
7221 Register number) { 7221 Register number) {
7222 Label load_smi, done; 7222 Label load_smi, done;
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
7683 int CompareStub::MinorKey() { 7683 int CompareStub::MinorKey() {
7684 // Encode the two parameters in a unique 16 bit value. 7684 // Encode the two parameters in a unique 16 bit value.
7685 ASSERT(static_cast<unsigned>(cc_) < (1 << 15)); 7685 ASSERT(static_cast<unsigned>(cc_) < (1 << 15));
7686 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0); 7686 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0);
7687 } 7687 }
7688 7688
7689 7689
7690 #undef __ 7690 #undef __
7691 7691
7692 } } // namespace v8::internal 7692 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/x64/builtins-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698