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

Side by Side Diff: src/arm/stub-cache-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, 3 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/macro-assembler-arm.cc ('k') | src/ia32/builtins-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-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 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after
1383 __ CompareInstanceType(r2, r3, JS_FUNCTION_TYPE); 1383 __ CompareInstanceType(r2, r3, JS_FUNCTION_TYPE);
1384 __ Check(ne, "Function constructed by construct stub."); 1384 __ Check(ne, "Function constructed by construct stub.");
1385 #endif 1385 #endif
1386 1386
1387 // Now allocate the JSObject in new space. 1387 // Now allocate the JSObject in new space.
1388 // r0: argc 1388 // r0: argc
1389 // r1: constructor function 1389 // r1: constructor function
1390 // r2: initial map 1390 // r2: initial map
1391 // r7: undefined 1391 // r7: undefined
1392 __ ldrb(r3, FieldMemOperand(r2, Map::kInstanceSizeOffset)); 1392 __ ldrb(r3, FieldMemOperand(r2, Map::kInstanceSizeOffset));
1393 __ AllocateObjectInNewSpace(r3, 1393 __ AllocateInNewSpace(r3,
1394 r4, 1394 r4,
1395 r5, 1395 r5,
1396 r6, 1396 r6,
1397 &generic_stub_call, 1397 &generic_stub_call,
1398 NO_ALLOCATION_FLAGS); 1398 NO_ALLOCATION_FLAGS);
1399 1399
1400 // Allocated the JSObject, now initialize the fields. Map is set to initial 1400 // Allocated the JSObject, now initialize the fields. Map is set to initial
1401 // map and properties and elements are set to empty fixed array. 1401 // map and properties and elements are set to empty fixed array.
1402 // r0: argc 1402 // r0: argc
1403 // r1: constructor function 1403 // r1: constructor function
1404 // r2: initial map 1404 // r2: initial map
1405 // r3: object size (in words) 1405 // r3: object size (in words)
1406 // r4: JSObject (not tagged) 1406 // r4: JSObject (not tagged)
1407 // r7: undefined 1407 // r7: undefined
1408 __ LoadRoot(r6, Heap::kEmptyFixedArrayRootIndex); 1408 __ LoadRoot(r6, Heap::kEmptyFixedArrayRootIndex);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
1481 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); 1481 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET);
1482 1482
1483 // Return the generated code. 1483 // Return the generated code.
1484 return GetCode(); 1484 return GetCode();
1485 } 1485 }
1486 1486
1487 1487
1488 #undef __ 1488 #undef __
1489 1489
1490 } } // namespace v8::internal 1490 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698