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

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

Issue 12413026: MIPS: Allow direct allocation in old pointer space. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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/mips/code-stubs-mips.cc ('k') | src/mips/lithium-codegen-mips.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 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 1535 matching lines...) Expand 10 before | Expand all | Expand 10 after
1546 __ li(a3, Operand(Smi::FromInt(expr->literal_index()))); 1546 __ li(a3, Operand(Smi::FromInt(expr->literal_index())));
1547 __ li(a2, Operand(expr->pattern())); 1547 __ li(a2, Operand(expr->pattern()));
1548 __ li(a1, Operand(expr->flags())); 1548 __ li(a1, Operand(expr->flags()));
1549 __ Push(t0, a3, a2, a1); 1549 __ Push(t0, a3, a2, a1);
1550 __ CallRuntime(Runtime::kMaterializeRegExpLiteral, 4); 1550 __ CallRuntime(Runtime::kMaterializeRegExpLiteral, 4);
1551 __ mov(t1, v0); 1551 __ mov(t1, v0);
1552 1552
1553 __ bind(&materialized); 1553 __ bind(&materialized);
1554 int size = JSRegExp::kSize + JSRegExp::kInObjectFieldCount * kPointerSize; 1554 int size = JSRegExp::kSize + JSRegExp::kInObjectFieldCount * kPointerSize;
1555 Label allocated, runtime_allocate; 1555 Label allocated, runtime_allocate;
1556 __ AllocateInNewSpace(size, v0, a2, a3, &runtime_allocate, TAG_OBJECT); 1556 __ Allocate(size, v0, a2, a3, &runtime_allocate, TAG_OBJECT);
1557 __ jmp(&allocated); 1557 __ jmp(&allocated);
1558 1558
1559 __ bind(&runtime_allocate); 1559 __ bind(&runtime_allocate);
1560 __ push(t1); 1560 __ push(t1);
1561 __ li(a0, Operand(Smi::FromInt(size))); 1561 __ li(a0, Operand(Smi::FromInt(size)));
1562 __ push(a0); 1562 __ push(a0);
1563 __ CallRuntime(Runtime::kAllocateInNewSpace, 1); 1563 __ CallRuntime(Runtime::kAllocateInNewSpace, 1);
1564 __ pop(t1); 1564 __ pop(t1);
1565 1565
1566 __ bind(&allocated); 1566 __ bind(&allocated);
(...skipping 3057 matching lines...) Expand 10 before | Expand all | Expand 10 after
4624 *context_length = 0; 4624 *context_length = 0;
4625 return previous_; 4625 return previous_;
4626 } 4626 }
4627 4627
4628 4628
4629 #undef __ 4629 #undef __
4630 4630
4631 } } // namespace v8::internal 4631 } } // namespace v8::internal
4632 4632
4633 #endif // V8_TARGET_ARCH_MIPS 4633 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698