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

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

Issue 19560003: [v8-dev] ARM: Make double registers low/high safe (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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
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 1605 matching lines...) Expand 10 before | Expand all | Expand 10 after
1616 __ mov(r0, Operand(Smi::FromInt(size))); 1616 __ mov(r0, Operand(Smi::FromInt(size)));
1617 __ push(r0); 1617 __ push(r0);
1618 __ CallRuntime(Runtime::kAllocateInNewSpace, 1); 1618 __ CallRuntime(Runtime::kAllocateInNewSpace, 1);
1619 __ pop(r5); 1619 __ pop(r5);
1620 1620
1621 __ bind(&allocated); 1621 __ bind(&allocated);
1622 // After this, registers are used as follows: 1622 // After this, registers are used as follows:
1623 // r0: Newly allocated regexp. 1623 // r0: Newly allocated regexp.
1624 // r5: Materialized regexp. 1624 // r5: Materialized regexp.
1625 // r2: temp. 1625 // r2: temp.
1626 __ CopyFields(r0, r5, d0, s0, size / kPointerSize); 1626 __ CopyFields(r0, r5, d0, size / kPointerSize);
1627 context()->Plug(r0); 1627 context()->Plug(r0);
1628 } 1628 }
1629 1629
1630 1630
1631 void FullCodeGenerator::EmitAccessor(Expression* expression) { 1631 void FullCodeGenerator::EmitAccessor(Expression* expression) {
1632 if (expression == NULL) { 1632 if (expression == NULL) {
1633 __ LoadRoot(r1, Heap::kNullValueRootIndex); 1633 __ LoadRoot(r1, Heap::kNullValueRootIndex);
1634 __ push(r1); 1634 __ push(r1);
1635 } else { 1635 } else {
1636 VisitForStackValue(expression); 1636 VisitForStackValue(expression);
(...skipping 3278 matching lines...) Expand 10 before | Expand all | Expand 10 after
4915 *context_length = 0; 4915 *context_length = 0;
4916 return previous_; 4916 return previous_;
4917 } 4917 }
4918 4918
4919 4919
4920 #undef __ 4920 #undef __
4921 4921
4922 } } // namespace v8::internal 4922 } } // namespace v8::internal
4923 4923
4924 #endif // V8_TARGET_ARCH_ARM 4924 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/disasm-arm.cc ('k') | src/arm/ic-arm.cc » ('j') | src/arm/macro-assembler-arm.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698